diff options
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 269df5a17b30..ca9ff6411dfa 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -372,18 +372,6 @@ static inline char *pack_hex_byte(char *buf, u8 byte) | |||
372 | ((unsigned char *)&addr)[3] | 372 | ((unsigned char *)&addr)[3] |
373 | #define NIPQUAD_FMT "%u.%u.%u.%u" | 373 | #define NIPQUAD_FMT "%u.%u.%u.%u" |
374 | 374 | ||
375 | #define NIP6(addr) \ | ||
376 | ntohs((addr).s6_addr16[0]), \ | ||
377 | ntohs((addr).s6_addr16[1]), \ | ||
378 | ntohs((addr).s6_addr16[2]), \ | ||
379 | ntohs((addr).s6_addr16[3]), \ | ||
380 | ntohs((addr).s6_addr16[4]), \ | ||
381 | ntohs((addr).s6_addr16[5]), \ | ||
382 | ntohs((addr).s6_addr16[6]), \ | ||
383 | ntohs((addr).s6_addr16[7]) | ||
384 | #define NIP6_FMT "%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x" | ||
385 | #define NIP6_SEQFMT "%04x%04x%04x%04x%04x%04x%04x%04x" | ||
386 | |||
387 | #if defined(__LITTLE_ENDIAN) | 375 | #if defined(__LITTLE_ENDIAN) |
388 | #define HIPQUAD(addr) \ | 376 | #define HIPQUAD(addr) \ |
389 | ((unsigned char *)&addr)[3], \ | 377 | ((unsigned char *)&addr)[3], \ |