Skip to content

Commit

Permalink
[IPV6] MIP6: Use our standard definitions for paddings.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YOSHIFUJI Hideaki committed Apr 12, 2008
1 parent d7aabf2 commit 7f1eced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions include/net/mip6.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
4 changes: 2 additions & 2 deletions net/ipv6/mip6.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 7f1eced

Please sign in to comment.