]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IPV6] MIP6: Use our standard definitions for paddings.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Thu, 10 Apr 2008 06:42:12 +0000 (15:42 +0900)
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Sat, 12 Apr 2008 04:43:22 +0000 (13:43 +0900)
MIP6_OPT_PAD_X are actually for paddings in destination
option header.  Replace them with our standard IPV6_TLV_PADX.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
include/net/mip6.h
net/ipv6/mip6.c

index 63272610a24a4cd3c9f32951c78174189d5d3529..a83ad1982a90893abb1d369f8b679b1eed9fa24a 100644 (file)
@@ -28,9 +28,6 @@
 #include <linux/skbuff.h>
 #include <net/sock.h>
 
-#define MIP6_OPT_PAD_1 0
-#define MIP6_OPT_PAD_N 1
-
 /*
  * Mobility Header
  */
index 42403c626c272e521c619a6ae142478765b696a2..ad1cc5bbf977a9d766a78a065277d7aa457f7806 100644 (file)
@@ -44,9 +44,9 @@ static inline void *mip6_padn(__u8 *data, __u8 padlen)
        if (!data)
                return NULL;
        if (padlen == 1) {
-               data[0] = MIP6_OPT_PAD_1;
+               data[0] = IPV6_TLV_PAD0;
        } else if (padlen > 1) {
-               data[0] = MIP6_OPT_PAD_N;
+               data[0] = IPV6_TLV_PADN;
                data[1] = padlen - 2;
                if (padlen > 2)
                        memset(data+2, 0, data[1]);