Home
last modified time | relevance | path

Searched refs:ndm (Results 1 – 13 of 13) sorted by relevance

/linux-4.4.14/net/bridge/
Dbr_fdb.c637 struct ndmsg *ndm; in fdb_fill_info() local
639 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in fdb_fill_info()
643 ndm = nlmsg_data(nlh); in fdb_fill_info()
644 ndm->ndm_family = AF_BRIDGE; in fdb_fill_info()
645 ndm->ndm_pad1 = 0; in fdb_fill_info()
646 ndm->ndm_pad2 = 0; in fdb_fill_info()
647 ndm->ndm_flags = fdb->added_by_external_learn ? NTF_EXT_LEARNED : 0; in fdb_fill_info()
648 ndm->ndm_type = 0; in fdb_fill_info()
649 ndm->ndm_ifindex = fdb->dst ? fdb->dst->dev->ifindex : br->dev->ifindex; in fdb_fill_info()
650 ndm->ndm_state = fdb_to_nud(br, fdb); in fdb_fill_info()
[all …]
Dbr_private.h470 int br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[],
/linux-4.4.14/net/core/
Drtnetlink.c2572 struct ndmsg *ndm; in nlmsg_populate_fdb_fill() local
2574 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), nlflags); in nlmsg_populate_fdb_fill()
2578 ndm = nlmsg_data(nlh); in nlmsg_populate_fdb_fill()
2579 ndm->ndm_family = AF_BRIDGE; in nlmsg_populate_fdb_fill()
2580 ndm->ndm_pad1 = 0; in nlmsg_populate_fdb_fill()
2581 ndm->ndm_pad2 = 0; in nlmsg_populate_fdb_fill()
2582 ndm->ndm_flags = flags; in nlmsg_populate_fdb_fill()
2583 ndm->ndm_type = 0; in nlmsg_populate_fdb_fill()
2584 ndm->ndm_ifindex = dev->ifindex; in nlmsg_populate_fdb_fill()
2585 ndm->ndm_state = NUD_PERMANENT; in nlmsg_populate_fdb_fill()
[all …]
Dneighbour.c1597 struct ndmsg *ndm; in neigh_delete() local
1605 if (nlmsg_len(nlh) < sizeof(*ndm)) in neigh_delete()
1608 dst_attr = nlmsg_find_attr(nlh, sizeof(*ndm), NDA_DST); in neigh_delete()
1612 ndm = nlmsg_data(nlh); in neigh_delete()
1613 if (ndm->ndm_ifindex) { in neigh_delete()
1614 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in neigh_delete()
1621 tbl = neigh_find_table(ndm->ndm_family); in neigh_delete()
1628 if (ndm->ndm_flags & NTF_PROXY) { in neigh_delete()
1655 struct ndmsg *ndm; in neigh_add() local
1664 err = nlmsg_parse(nlh, sizeof(*ndm), tb, NDA_MAX, NULL); in neigh_add()
[all …]
/linux-4.4.14/net/switchdev/
Dswitchdev.c974 int switchdev_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in switchdev_port_fdb_add() argument
999 int switchdev_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in switchdev_port_fdb_del() argument
1029 struct ndmsg *ndm; in switchdev_port_fdb_dump_cb() local
1035 sizeof(*ndm), NLM_F_MULTI); in switchdev_port_fdb_dump_cb()
1039 ndm = nlmsg_data(nlh); in switchdev_port_fdb_dump_cb()
1040 ndm->ndm_family = AF_BRIDGE; in switchdev_port_fdb_dump_cb()
1041 ndm->ndm_pad1 = 0; in switchdev_port_fdb_dump_cb()
1042 ndm->ndm_pad2 = 0; in switchdev_port_fdb_dump_cb()
1043 ndm->ndm_flags = NTF_SELF; in switchdev_port_fdb_dump_cb()
1044 ndm->ndm_type = 0; in switchdev_port_fdb_dump_cb()
[all …]
/linux-4.4.14/include/net/
Dswitchdev.h198 int switchdev_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
201 int switchdev_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[],
305 static inline int switchdev_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in switchdev_port_fdb_add() argument
313 static inline int switchdev_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in switchdev_port_fdb_del() argument
/linux-4.4.14/include/linux/
Drtnetlink.h103 extern int ndo_dflt_fdb_add(struct ndmsg *ndm,
109 extern int ndo_dflt_fdb_del(struct ndmsg *ndm,
Dnetdevice.h1179 int (*ndo_fdb_add)(struct ndmsg *ndm,
1185 int (*ndo_fdb_del)(struct ndmsg *ndm,
/linux-4.4.14/drivers/net/
Dvxlan.c280 struct ndmsg *ndm; in vxlan_fdb_info() local
283 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in vxlan_fdb_info()
287 ndm = nlmsg_data(nlh); in vxlan_fdb_info()
288 memset(ndm, 0, sizeof(*ndm)); in vxlan_fdb_info()
293 ndm->ndm_family = AF_INET; in vxlan_fdb_info()
297 ndm->ndm_family = AF_BRIDGE; in vxlan_fdb_info()
298 ndm->ndm_state = fdb->state; in vxlan_fdb_info()
299 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info()
300 ndm->ndm_flags = fdb->flags; in vxlan_fdb_info()
301 ndm->ndm_type = RTN_UNICAST; in vxlan_fdb_info()
[all …]
Dmacvlan.c890 static int macvlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in macvlan_fdb_add() argument
915 static int macvlan_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in macvlan_fdb_del() argument
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c377 static int qlcnic_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_del() argument
385 return ndo_dflt_fdb_del(ndm, tb, netdev, addr, vid); in qlcnic_fdb_del()
402 static int qlcnic_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_add() argument
410 return ndo_dflt_fdb_add(ndm, tb, netdev, addr, vid, flags); in qlcnic_fdb_add()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_main.c8398 static int i40e_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in i40e_ndo_fdb_add() argument
8418 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { in i40e_ndo_fdb_add()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c8151 static int ixgbe_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in ixgbe_ndo_fdb_add() argument
8162 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags); in ixgbe_ndo_fdb_add()