diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index a78fd61da0ec50a0cf2f8f6216a15944086d0e89..d4bcdcc68e9268f0c6b4bbf918d5af2e6b71be4e 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -3854,6 +3854,9 @@ static int rtnl_fill_statsinfo(struct sk_buff *skb, struct net_device *dev, return -EMSGSIZE; ifsm = nlmsg_data(nlh); + ifsm->family = PF_UNSPEC; + ifsm->pad1 = 0; + ifsm->pad2 = 0; ifsm->ifindex = dev->ifindex; ifsm->filter_mask = filter_mask;