Searched refs:ndm (Results 1 – 6 of 6) sorted by relevance
/net/bridge/ |
D | br_fdb.c | 662 struct ndmsg *ndm; in fdb_fill_info() local 664 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in fdb_fill_info() 668 ndm = nlmsg_data(nlh); in fdb_fill_info() 669 ndm->ndm_family = AF_BRIDGE; in fdb_fill_info() 670 ndm->ndm_pad1 = 0; in fdb_fill_info() 671 ndm->ndm_pad2 = 0; in fdb_fill_info() 672 ndm->ndm_flags = 0; in fdb_fill_info() 673 ndm->ndm_type = 0; in fdb_fill_info() 674 ndm->ndm_ifindex = dst ? dst->dev->ifindex : br->dev->ifindex; in fdb_fill_info() 675 ndm->ndm_state = fdb_to_nud(br, fdb); in fdb_fill_info() [all …]
|
D | br_private.h | 777 int br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[],
|
/net/mctp/ |
D | neigh.c | 120 struct ndmsg *ndm; in mctp_rtm_newneigh() local 127 rc = nlmsg_parse(nlh, sizeof(*ndm), tb, NDA_MAX, nd_mctp_policy, in mctp_rtm_newneigh() 153 ndm = nlmsg_data(nlh); in mctp_rtm_newneigh() 155 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in mctp_rtm_newneigh() 179 struct ndmsg *ndm; in mctp_rtm_delneigh() local 183 rc = nlmsg_parse(nlh, sizeof(*ndm), tb, NDA_MAX, nd_mctp_policy, in mctp_rtm_delneigh() 196 ndm = nlmsg_data(nlh); in mctp_rtm_delneigh() 197 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in mctp_rtm_delneigh()
|
/net/core/ |
D | neighbour.c | 1802 struct ndmsg *ndm; in neigh_delete() local 1810 if (nlmsg_len(nlh) < sizeof(*ndm)) in neigh_delete() 1813 dst_attr = nlmsg_find_attr(nlh, sizeof(*ndm), NDA_DST); in neigh_delete() 1819 ndm = nlmsg_data(nlh); in neigh_delete() 1820 if (ndm->ndm_ifindex) { in neigh_delete() 1821 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in neigh_delete() 1828 tbl = neigh_find_table(ndm->ndm_family); in neigh_delete() 1837 if (ndm->ndm_flags & NTF_PROXY) { in neigh_delete() 1869 struct ndmsg *ndm; in neigh_add() local 1879 err = nlmsg_parse_deprecated(nlh, sizeof(*ndm), tb, NDA_MAX, in neigh_add() [all …]
|
D | rtnetlink.c | 3926 struct ndmsg *ndm; in nlmsg_populate_fdb_fill() local 3928 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), nlflags); in nlmsg_populate_fdb_fill() 3932 ndm = nlmsg_data(nlh); in nlmsg_populate_fdb_fill() 3933 ndm->ndm_family = AF_BRIDGE; in nlmsg_populate_fdb_fill() 3934 ndm->ndm_pad1 = 0; in nlmsg_populate_fdb_fill() 3935 ndm->ndm_pad2 = 0; in nlmsg_populate_fdb_fill() 3936 ndm->ndm_flags = flags; in nlmsg_populate_fdb_fill() 3937 ndm->ndm_type = 0; in nlmsg_populate_fdb_fill() 3938 ndm->ndm_ifindex = dev->ifindex; in nlmsg_populate_fdb_fill() 3939 ndm->ndm_state = ndm_state; in nlmsg_populate_fdb_fill() [all …]
|
/net/dsa/ |
D | slave.c | 197 struct ndmsg *ndm; in dsa_slave_port_fdb_do_dump() local 203 sizeof(*ndm), NLM_F_MULTI); in dsa_slave_port_fdb_do_dump() 207 ndm = nlmsg_data(nlh); in dsa_slave_port_fdb_do_dump() 208 ndm->ndm_family = AF_BRIDGE; in dsa_slave_port_fdb_do_dump() 209 ndm->ndm_pad1 = 0; in dsa_slave_port_fdb_do_dump() 210 ndm->ndm_pad2 = 0; in dsa_slave_port_fdb_do_dump() 211 ndm->ndm_flags = NTF_SELF; in dsa_slave_port_fdb_do_dump() 212 ndm->ndm_type = 0; in dsa_slave_port_fdb_do_dump() 213 ndm->ndm_ifindex = dump->dev->ifindex; in dsa_slave_port_fdb_do_dump() 214 ndm->ndm_state = is_static ? NUD_NOARP : NUD_REACHABLE; in dsa_slave_port_fdb_do_dump()
|