aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2005-06-28 15:56:45 -0400
committerDavid S. Miller <davem@davemloft.net>2005-06-28 15:56:45 -0400
commit8a47077a0b5aa2649751c46e7a27884e6686ccbf (patch)
tree60e7c40a375057a31b5340226cd446ffa199413c /net/ipv6/addrconf.c
parent9ef1d4c7c7aca1cd436612b6ca785b726ffb8ed8 (diff)
[NETLINK]: Missing padding fields in dumped structures
Plug holes with padding fields and initialized them to zero. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 8140bed78a26..1b2902d8eb98 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -3031,9 +3031,12 @@ static int inet6_fill_prefix(struct sk_buff *skb, struct inet6_dev *idev,
3031 nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*pmsg), flags); 3031 nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*pmsg), flags);
3032 pmsg = NLMSG_DATA(nlh); 3032 pmsg = NLMSG_DATA(nlh);
3033 pmsg->prefix_family = AF_INET6; 3033 pmsg->prefix_family = AF_INET6;
3034 pmsg->prefix_pad1 = 0;
3035 pmsg->prefix_pad2 = 0;
3034 pmsg->prefix_ifindex = idev->dev->ifindex; 3036 pmsg->prefix_ifindex = idev->dev->ifindex;
3035 pmsg->prefix_len = pinfo->prefix_len; 3037 pmsg->prefix_len = pinfo->prefix_len;
3036 pmsg->prefix_type = pinfo->type; 3038 pmsg->prefix_type = pinfo->type;
3039 pmsg->prefix_pad3 = 0;
3037 3040
3038 pmsg->prefix_flags = 0; 3041 pmsg->prefix_flags = 0;
3039 if (pinfo->onlink) 3042 if (pinfo->onlink)