Lines Matching refs:ndm
266 struct ndmsg *ndm; in vxlan_fdb_info() local
270 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in vxlan_fdb_info()
274 ndm = nlmsg_data(nlh); in vxlan_fdb_info()
275 memset(ndm, 0, sizeof(*ndm)); in vxlan_fdb_info()
290 ndm->ndm_family = send_ip ? rdst->remote_ip.sa.sa_family : AF_INET; in vxlan_fdb_info()
292 ndm->ndm_family = nh_family; in vxlan_fdb_info()
296 ndm->ndm_family = AF_BRIDGE; in vxlan_fdb_info()
297 ndm->ndm_state = fdb->state; in vxlan_fdb_info()
298 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info()
299 ndm->ndm_flags = fdb->flags; in vxlan_fdb_info()
301 ndm->ndm_flags |= NTF_OFFLOADED; in vxlan_fdb_info()
302 ndm->ndm_type = RTN_UNICAST; in vxlan_fdb_info()
1266 static int vxlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in vxlan_fdb_add() argument
1280 if (!(ndm->ndm_state & (NUD_PERMANENT|NUD_REACHABLE))) { in vxlan_fdb_add()
1282 ndm->ndm_state); in vxlan_fdb_add()
1299 err = vxlan_fdb_update(vxlan, addr, &ip, ndm->ndm_state, flags, in vxlan_fdb_add()
1301 ndm->ndm_flags | NTF_VXLAN_ADDED_BY_USER, in vxlan_fdb_add()
1342 static int vxlan_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[], in vxlan_fdb_delete() argument