Lines Matching refs:ndm
207 struct ndmsg *ndm; in vxlan_fdb_info() local
211 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in vxlan_fdb_info()
215 ndm = nlmsg_data(nlh); in vxlan_fdb_info()
216 memset(ndm, 0, sizeof(*ndm)); in vxlan_fdb_info()
231 ndm->ndm_family = send_ip ? rdst->remote_ip.sa.sa_family : AF_INET; in vxlan_fdb_info()
233 ndm->ndm_family = nh_family; in vxlan_fdb_info()
237 ndm->ndm_family = AF_BRIDGE; in vxlan_fdb_info()
238 ndm->ndm_state = fdb->state; in vxlan_fdb_info()
239 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info()
240 ndm->ndm_flags = fdb->flags; in vxlan_fdb_info()
242 ndm->ndm_flags |= NTF_OFFLOADED; in vxlan_fdb_info()
243 ndm->ndm_type = RTN_UNICAST; in vxlan_fdb_info()
1217 static int vxlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in vxlan_fdb_add() argument
1231 if (!(ndm->ndm_state & (NUD_PERMANENT|NUD_REACHABLE))) { in vxlan_fdb_add()
1233 ndm->ndm_state); in vxlan_fdb_add()
1250 err = vxlan_fdb_update(vxlan, addr, &ip, ndm->ndm_state, flags, in vxlan_fdb_add()
1252 ndm->ndm_flags | NTF_VXLAN_ADDED_BY_USER, in vxlan_fdb_add()
1293 static int vxlan_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[], in vxlan_fdb_delete() argument