netlink: properly zero all fields in the ndmsg header.
MFC after: 3 days
This commit is contained in:
parent
30d7e724db
commit
dc81813497
@ -156,9 +156,12 @@ dump_lle_locked(struct llentry *lle, void *arg)
|
||||
|
||||
ndm = nlmsg_reserve_object(nw, struct ndmsg);
|
||||
ndm->ndm_family = wa->family;
|
||||
ndm->ndm_pad1 = 0;
|
||||
ndm->ndm_pad2 = 0;
|
||||
ndm->ndm_ifindex = wa->ifp->if_index;
|
||||
ndm->ndm_state = lle_state_to_nl_state(wa->family, lle);
|
||||
ndm->ndm_flags = lle_flags_to_nl_flags(lle);
|
||||
ndm->ndm_type = 0;
|
||||
|
||||
switch (wa->family) {
|
||||
#ifdef INET
|
||||
|
Loading…
Reference in New Issue
Block a user