projects
/
h-e-n
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[IPV6] MIP6: Use our standard definitions for paddings.
[h-e-n]
/
net
/
ipv6
/
mip6.c
diff --git
a/net/ipv6/mip6.c
b/net/ipv6/mip6.c
index
42403c6
..
ad1cc5b
100644
(file)
--- a/
net/ipv6/mip6.c
+++ b/
net/ipv6/mip6.c
@@
-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]);