Lines Matching refs:ndm
160 struct ndmsg *ndm; in vxlan_fdb_info() local
164 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in vxlan_fdb_info()
168 ndm = nlmsg_data(nlh); in vxlan_fdb_info()
169 memset(ndm, 0, sizeof(*ndm)); in vxlan_fdb_info()
184 ndm->ndm_family = send_ip ? rdst->remote_ip.sa.sa_family : AF_INET; in vxlan_fdb_info()
186 ndm->ndm_family = nh_family; in vxlan_fdb_info()
190 ndm->ndm_family = AF_BRIDGE; in vxlan_fdb_info()
191 ndm->ndm_state = fdb->state; in vxlan_fdb_info()
192 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info()
193 ndm->ndm_flags = fdb->flags; in vxlan_fdb_info()
195 ndm->ndm_flags |= NTF_OFFLOADED; in vxlan_fdb_info()
196 ndm->ndm_type = RTN_UNICAST; in vxlan_fdb_info()
1245 static int vxlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in vxlan_fdb_add() argument
1259 if (!(ndm->ndm_state & (NUD_PERMANENT|NUD_REACHABLE))) { in vxlan_fdb_add()
1261 ndm->ndm_state); in vxlan_fdb_add()
1278 err = vxlan_fdb_update(vxlan, addr, &ip, ndm->ndm_state, flags, in vxlan_fdb_add()
1280 ndm->ndm_flags | NTF_VXLAN_ADDED_BY_USER, in vxlan_fdb_add()
1321 static int vxlan_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[], in vxlan_fdb_delete() argument