| /linux/net/bridge/ |
| H A D | br_fdb.c | 97 struct ndmsg *ndm; in fdb_fill_info() local 100 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in fdb_fill_info() 104 ndm = nlmsg_data(nlh); in fdb_fill_info() 105 ndm->ndm_family = AF_BRIDGE; in fdb_fill_info() 106 ndm->ndm_pad1 = 0; in fdb_fill_info() 107 ndm->ndm_pad2 = 0; in fdb_fill_info() 108 ndm->ndm_flags = 0; in fdb_fill_info() 109 ndm->ndm_type = 0; in fdb_fill_info() 110 ndm->ndm_ifindex = dst ? dst->dev->ifindex : br->dev->ifindex; in fdb_fill_info() 111 ndm in fdb_fill_info() 798 struct ndmsg *ndm = nlmsg_data(nlh); br_fdb_delete_bulk() local 1148 fdb_add_entry(struct net_bridge * br,struct net_bridge_port * source,const u8 * addr,struct ndmsg * ndm,u16 flags,u16 vid,struct nlattr * nfea_tb[]) fdb_add_entry() argument 1244 __br_fdb_add(struct ndmsg * ndm,struct net_bridge * br,struct net_bridge_port * p,const unsigned char * addr,u16 nlh_flags,u16 vid,struct nlattr * nfea_tb[],bool * notified,struct netlink_ext_ack * extack) __br_fdb_add() argument 1289 br_fdb_add(struct ndmsg * ndm,struct nlattr * tb[],struct net_device * dev,const unsigned char * addr,u16 vid,u16 nlh_flags,bool * notified,struct netlink_ext_ack * extack) br_fdb_add() argument 1410 br_fdb_delete(struct ndmsg * ndm,struct nlattr * tb[],struct net_device * dev,const unsigned char * addr,u16 vid,bool * notified,struct netlink_ext_ack * extack) br_fdb_delete() argument [all...] |
| H A D | br_private.h | 867 int br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[],
|
| /linux/net/core/ |
| H A D | neighbour.c | 1949 struct ndmsg *ndm; 1957 if (nlmsg_len(nlh) < sizeof(*ndm)) in neigh_delete() 1960 dst_attr = nlmsg_find_attr(nlh, sizeof(*ndm), NDA_DST); in neigh_delete() 1966 ndm = nlmsg_data(nlh); in neigh_delete() 1967 if (ndm->ndm_ifindex) { in neigh_delete() 1968 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in neigh_delete() 1975 tbl = neigh_find_table(ndm->ndm_family); in neigh_delete() 1984 if (ndm->ndm_flags & NTF_PROXY) { in neigh_delete() 2016 struct ndmsg *ndm; 2027 err = nlmsg_parse_deprecated(nlh, sizeof(*ndm), t in neigh_add() 1956 struct ndmsg *ndm; neigh_delete() local 2023 struct ndmsg *ndm; neigh_add() local 2657 struct ndmsg *ndm; __neigh_fill_info() local 2728 struct ndmsg *ndm; pneigh_fill_info() local 2889 struct ndmsg *ndm; neigh_valid_dump_req() local 2994 struct ndmsg *ndm; neigh_valid_get_req() local 3074 struct ndmsg *ndm; neigh_get() local [all...] |
| H A D | rtnetlink.c | 4593 struct ndmsg *ndm; in ndo_dflt_fdb_add() 4595 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), nlflags); in ndo_dflt_fdb_add() 4599 ndm = nlmsg_data(nlh); in ndo_dflt_fdb_add() 4600 ndm->ndm_family = AF_BRIDGE; in ndo_dflt_fdb_add() 4601 ndm->ndm_pad1 = 0; in ndo_dflt_fdb_add() 4602 ndm->ndm_pad2 = 0; in ndo_dflt_fdb_add() 4603 ndm->ndm_flags = flags; in ndo_dflt_fdb_add() 4604 ndm->ndm_type = 0; in ndo_dflt_fdb_add() 4605 ndm->ndm_ifindex = dev->ifindex; in ndo_dflt_fdb_add() 4606 ndm in ndo_dflt_fdb_add() 4514 struct ndmsg *ndm; nlmsg_populate_fdb_fill() local 4578 ndo_dflt_fdb_add(struct ndmsg * ndm,struct nlattr * tb[],struct net_device * dev,const unsigned char * addr,u16 vid,u16 flags) ndo_dflt_fdb_add() argument 4643 struct ndmsg *ndm; rtnl_fdb_add() local 4726 ndo_dflt_fdb_del(struct ndmsg * ndm,struct nlattr * tb[],struct net_device * dev,const unsigned char * addr,u16 vid) ndo_dflt_fdb_del() argument 4756 struct ndmsg *ndm; rtnl_fdb_del() local 4925 struct ndmsg *ndm; valid_fdb_dump_strict() local 5093 struct ndmsg *ndm; valid_fdb_get_strict() local [all...] |
| /linux/net/mctp/ |
| H A D | neigh.c | 121 struct ndmsg *ndm; in mctp_rtm_newneigh() local 128 rc = nlmsg_parse(nlh, sizeof(*ndm), tb, NDA_MAX, nd_mctp_policy, in mctp_rtm_newneigh() 154 ndm = nlmsg_data(nlh); in mctp_rtm_newneigh() 156 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in mctp_rtm_newneigh() 180 struct ndmsg *ndm; in mctp_rtm_delneigh() local 184 rc = nlmsg_parse(nlh, sizeof(*ndm), tb, NDA_MAX, nd_mctp_policy, in mctp_rtm_delneigh() 197 ndm = nlmsg_data(nlh); in mctp_rtm_delneigh() 198 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in mctp_rtm_delneigh()
|
| /linux/include/trace/events/ |
| H A D | bridge.h | 14 TP_PROTO(struct ndmsg *ndm, struct net_device *dev, 17 TP_ARGS(ndm, dev, addr, vid, nlh_flags), 32 __entry->ndm_flags = ndm->ndm_flags;
|
| /linux/drivers/net/ethernet/mscc/ |
| H A D | ocelot_net.c | 767 static int ocelot_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in ocelot_port_fdb_add() argument 781 static int ocelot_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in ocelot_port_fdb_del() argument 802 struct ndmsg *ndm; in ocelot_port_fdb_do_dump() local 808 sizeof(*ndm), NLM_F_MULTI); in ocelot_port_fdb_do_dump() 812 ndm = nlmsg_data(nlh); in ocelot_port_fdb_do_dump() 813 ndm->ndm_family = AF_BRIDGE; in ocelot_port_fdb_do_dump() 814 ndm->ndm_pad1 = 0; in ocelot_port_fdb_do_dump() 815 ndm->ndm_pad2 = 0; in ocelot_port_fdb_do_dump() 816 ndm->ndm_flags = NTF_SELF; in ocelot_port_fdb_do_dump() 817 ndm in ocelot_port_fdb_do_dump() [all...] |
| /linux/include/linux/ |
| H A D | rtnetlink.h | 199 extern int ndo_dflt_fdb_add(struct ndmsg *ndm, 205 extern int ndo_dflt_fdb_del(struct ndmsg *ndm,
|
| H A D | netdevice.h | 1311 * int (*ndo_fdb_add)(struct ndmsg *ndm, struct nlattr *tb[], 1318 * int (*ndo_fdb_del)(struct ndmsg *ndm, struct nlattr *tb[], 1596 int (*ndo_fdb_add)(struct ndmsg *ndm, 1604 int (*ndo_fdb_del)(struct ndmsg *ndm,
|
| /linux/tools/testing/selftests/net/ |
| H A D | netlink-dumps.c | 92 struct ndmsg ndm; member 102 .ndm = {
|
| /linux/drivers/net/vxlan/ |
| H A D | vxlan_core.c | 165 struct ndmsg *ndm; in vxlan_fdb_info() local 169 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in vxlan_fdb_info() 173 ndm = nlmsg_data(nlh); in vxlan_fdb_info() 174 memset(ndm, 0, sizeof(*ndm)); in vxlan_fdb_info() 189 ndm->ndm_family = send_ip ? rdst->remote_ip.sa.sa_family : AF_INET; in vxlan_fdb_info() 191 ndm->ndm_family = nh_family; in vxlan_fdb_info() 195 ndm->ndm_family = AF_BRIDGE; in vxlan_fdb_info() 196 ndm->ndm_state = fdb->state; in vxlan_fdb_info() 197 ndm in vxlan_fdb_info() 1229 vxlan_fdb_add(struct ndmsg * ndm,struct nlattr * tb[],struct net_device * dev,const unsigned char * addr,u16 vid,u16 flags,bool * notified,struct netlink_ext_ack * extack) vxlan_fdb_add() argument 1306 vxlan_fdb_delete(struct ndmsg * ndm,struct nlattr * tb[],struct net_device * dev,const unsigned char * addr,u16 vid,bool * notified,struct netlink_ext_ack * extack) vxlan_fdb_delete() argument 3119 struct ndmsg *ndm = nlmsg_data(nlh); vxlan_fdb_delete_bulk() local [all...] |
| /linux/drivers/net/ethernet/freescale/dpaa2/ |
| H A D | dpaa2-switch.c | 836 struct ndmsg *ndm; in dpaa2_switch_fdb_iterate() 842 sizeof(*ndm), NLM_F_MULTI); in dpaa2_switch_fdb_iterate() 846 ndm = nlmsg_data(nlh); in dpaa2_switch_fdb_iterate() 847 ndm->ndm_family = AF_BRIDGE; in dpaa2_switch_fdb_iterate() 848 ndm->ndm_pad1 = 0; in dpaa2_switch_fdb_iterate() 849 ndm->ndm_pad2 = 0; in dpaa2_switch_fdb_iterate() 850 ndm->ndm_flags = NTF_SELF; in dpaa2_switch_fdb_iterate() 851 ndm->ndm_type = 0; in dpaa2_switch_fdb_iterate() 852 ndm->ndm_ifindex = dump->dev->ifindex; in dpaa2_switch_fdb_iterate() 853 ndm in dpaa2_switch_fdb_iterate() 788 struct ndmsg *ndm; dpaa2_switch_fdb_dump_nl() local [all...] |
| /linux/net/dsa/ |
| H A D | user.c | 522 struct ndmsg *ndm; in dsa_user_port_fdb_do_dump() local 528 sizeof(*ndm), NLM_F_MULTI); in dsa_user_port_fdb_do_dump() 532 ndm = nlmsg_data(nlh); in dsa_user_port_fdb_do_dump() 533 ndm->ndm_family = AF_BRIDGE; in dsa_user_port_fdb_do_dump() 534 ndm->ndm_pad1 = 0; in dsa_user_port_fdb_do_dump() 535 ndm->ndm_pad2 = 0; in dsa_user_port_fdb_do_dump() 536 ndm->ndm_flags = NTF_SELF; in dsa_user_port_fdb_do_dump() 537 ndm->ndm_type = 0; in dsa_user_port_fdb_do_dump() 538 ndm->ndm_ifindex = dump->dev->ifindex; in dsa_user_port_fdb_do_dump() 539 ndm in dsa_user_port_fdb_do_dump() [all...] |
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_main.c | 368 static int qlcnic_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_del() argument 377 return ndo_dflt_fdb_del(ndm, tb, netdev, addr, vid); in qlcnic_fdb_del() 394 static int qlcnic_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_add() argument 403 return ndo_dflt_fdb_add(ndm, tb, netdev, addr, vid, flags); in qlcnic_fdb_add()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_main.c | 6086 * @ndm: the input from the stack in ice_set_tx_maxrate() 6096 ice_fdb_add(struct ndmsg *ndm, struct nlattr __always_unused *tb[], 6107 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { in ice_fdb_add() 6128 * @ndm: the input from the stack in ice_fdb_add() 6137 ice_fdb_del(struct ndmsg *ndm, __always_unused struct nlattr *tb[], 6144 if (ndm->ndm_state & NUD_PERMANENT) { in ice_fdb_del() 6102 ice_fdb_add(struct ndmsg * ndm,struct nlattr __always_unused * tb[],struct net_device * dev,const unsigned char * addr,u16 vid,u16 flags,bool * notified,struct netlink_ext_ack __always_unused * extack) ice_fdb_add() argument 6143 ice_fdb_del(struct ndmsg * ndm,__always_unused struct nlattr * tb[],struct net_device * dev,const unsigned char * addr,__always_unused u16 vid,bool * notified,struct netlink_ext_ack * extack) ice_fdb_del() argument
|
| /linux/drivers/net/ethernet/intel/igb/ |
| H A D | igb_main.c | 2519 static int igb_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in igb_ndo_fdb_add() argument 2534 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags); in igb_ndo_fdb_add()
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_main.c | 13025 * @ndm: the input from the stack 13034 static int i40e_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in i40e_ndo_fdb_add() 13055 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { in i40e_ndo_fdb_add() 13031 i40e_ndo_fdb_add(struct ndmsg * ndm,struct nlattr * tb[],struct net_device * dev,const unsigned char * addr,u16 vid,u16 flags,bool * notified,struct netlink_ext_ack * extack) i40e_ndo_fdb_add() argument
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_main.c | 10606 static int ixgbe_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], 10621 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags); in ixgbe_configure_bridge_mode() 10586 ixgbe_ndo_fdb_add(struct ndmsg * ndm,struct nlattr * tb[],struct net_device * dev,const unsigned char * addr,u16 vid,u16 flags,bool * notified,struct netlink_ext_ack * extack) ixgbe_ndo_fdb_add() argument
|