diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-28 22:38:52 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-28 23:02:38 -0700 |
commit | b189db5d299c6824780af5590564ff608adb3dea (patch) | |
tree | 4648900a716af759045c82791d61d935510861bb /include/linux/kernel.h | |
parent | a20fd0a783551831bb6b9b69710e5bbb93dc2730 (diff) | |
download | linux-rpi-b189db5d299c6824780af5590564ff608adb3dea.tar.gz linux-rpi-b189db5d299c6824780af5590564ff608adb3dea.tar.bz2 linux-rpi-b189db5d299c6824780af5590564ff608adb3dea.zip |
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) ((unsigned char *)&addr)[3] #define NIPQUAD_FMT "%u.%u.%u.%u" -#define NIP6(addr) \ - ntohs((addr).s6_addr16[0]), \ - ntohs((addr).s6_addr16[1]), \ - ntohs((addr).s6_addr16[2]), \ - ntohs((addr).s6_addr16[3]), \ - ntohs((addr).s6_addr16[4]), \ - ntohs((addr).s6_addr16[5]), \ - ntohs((addr).s6_addr16[6]), \ - ntohs((addr).s6_addr16[7]) -#define NIP6_FMT "%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x" -#define NIP6_SEQFMT "%04x%04x%04x%04x%04x%04x%04x%04x" - #if defined(__LITTLE_ENDIAN) #define HIPQUAD(addr) \ ((unsigned char *)&addr)[3], \ |