diff options
| author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-29 01:38:52 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2008-10-29 02:02:38 -0400 |
| commit | b189db5d299c6824780af5590564ff608adb3dea (patch) | |
| tree | 4648900a716af759045c82791d61d935510861bb /include/linux/kernel.h | |
| parent | a20fd0a783551831bb6b9b69710e5bbb93dc2730 (diff) | |
net: remove NIP6(), NIP6_FMT, NIP6_SEQFMT and final users
Open code NIP6_FMT in the one call inside sscanf and one user
of NIP6() that could use %p6 in the netfilter code.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 396a350b87a6..77777c460099 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -357,18 +357,6 @@ static inline char *pack_hex_byte(char *buf, u8 byte) | |||
| 357 | ((unsigned char *)&addr)[3] | 357 | ((unsigned char *)&addr)[3] |
| 358 | #define NIPQUAD_FMT "%u.%u.%u.%u" | 358 | #define NIPQUAD_FMT "%u.%u.%u.%u" |
| 359 | 359 | ||
| 360 | #define NIP6(addr) \ | ||
| 361 | ntohs((addr).s6_addr16[0]), \ | ||
| 362 | ntohs((addr).s6_addr16[1]), \ | ||
| 363 | ntohs((addr).s6_addr16[2]), \ | ||
| 364 | ntohs((addr).s6_addr16[3]), \ | ||
| 365 | ntohs((addr).s6_addr16[4]), \ | ||
| 366 | ntohs((addr).s6_addr16[5]), \ | ||
| 367 | ntohs((addr).s6_addr16[6]), \ | ||
| 368 | ntohs((addr).s6_addr16[7]) | ||
| 369 | #define NIP6_FMT "%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x" | ||
| 370 | #define NIP6_SEQFMT "%04x%04x%04x%04x%04x%04x%04x%04x" | ||
| 371 | |||
| 372 | #if defined(__LITTLE_ENDIAN) | 360 | #if defined(__LITTLE_ENDIAN) |
| 373 | #define HIPQUAD(addr) \ | 361 | #define HIPQUAD(addr) \ |
| 374 | ((unsigned char *)&addr)[3], \ | 362 | ((unsigned char *)&addr)[3], \ |
