Home
last modified time | relevance | path

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

/net/bridge/
Dbr_fdb.c636 struct ndmsg *ndm; in fdb_fill_info() local
638 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in fdb_fill_info()
642 ndm = nlmsg_data(nlh); in fdb_fill_info()
643 ndm->ndm_family = AF_BRIDGE; in fdb_fill_info()
644 ndm->ndm_pad1 = 0; in fdb_fill_info()
645 ndm->ndm_pad2 = 0; in fdb_fill_info()
646 ndm->ndm_flags = 0; in fdb_fill_info()
647 ndm->ndm_type = 0; in fdb_fill_info()
648 ndm->ndm_ifindex = fdb->dst ? fdb->dst->dev->ifindex : br->dev->ifindex; in fdb_fill_info()
649 ndm->ndm_state = fdb_to_nud(br, fdb); in fdb_fill_info()
[all …]
Dbr_private.h571 int br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[],
/net/core/
Dneighbour.c1803 struct ndmsg *ndm; in neigh_delete() local
1811 if (nlmsg_len(nlh) < sizeof(*ndm)) in neigh_delete()
1814 dst_attr = nlmsg_find_attr(nlh, sizeof(*ndm), NDA_DST); in neigh_delete()
1820 ndm = nlmsg_data(nlh); in neigh_delete()
1821 if (ndm->ndm_ifindex) { in neigh_delete()
1822 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in neigh_delete()
1829 tbl = neigh_find_table(ndm->ndm_family); in neigh_delete()
1838 if (ndm->ndm_flags & NTF_PROXY) { in neigh_delete()
1870 struct ndmsg *ndm; in neigh_add() local
1880 err = nlmsg_parse_deprecated(nlh, sizeof(*ndm), tb, NDA_MAX, in neigh_add()
[all …]
Drtnetlink.c3591 struct ndmsg *ndm; in nlmsg_populate_fdb_fill() local
3593 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), nlflags); in nlmsg_populate_fdb_fill()
3597 ndm = nlmsg_data(nlh); in nlmsg_populate_fdb_fill()
3598 ndm->ndm_family = AF_BRIDGE; in nlmsg_populate_fdb_fill()
3599 ndm->ndm_pad1 = 0; in nlmsg_populate_fdb_fill()
3600 ndm->ndm_pad2 = 0; in nlmsg_populate_fdb_fill()
3601 ndm->ndm_flags = flags; in nlmsg_populate_fdb_fill()
3602 ndm->ndm_type = 0; in nlmsg_populate_fdb_fill()
3603 ndm->ndm_ifindex = dev->ifindex; in nlmsg_populate_fdb_fill()
3604 ndm->ndm_state = ndm_state; in nlmsg_populate_fdb_fill()
[all …]
/net/dsa/
Dslave.c198 struct ndmsg *ndm; in dsa_slave_port_fdb_do_dump() local
204 sizeof(*ndm), NLM_F_MULTI); in dsa_slave_port_fdb_do_dump()
208 ndm = nlmsg_data(nlh); in dsa_slave_port_fdb_do_dump()
209 ndm->ndm_family = AF_BRIDGE; in dsa_slave_port_fdb_do_dump()
210 ndm->ndm_pad1 = 0; in dsa_slave_port_fdb_do_dump()
211 ndm->ndm_pad2 = 0; in dsa_slave_port_fdb_do_dump()
212 ndm->ndm_flags = NTF_SELF; in dsa_slave_port_fdb_do_dump()
213 ndm->ndm_type = 0; in dsa_slave_port_fdb_do_dump()
214 ndm->ndm_ifindex = dump->dev->ifindex; in dsa_slave_port_fdb_do_dump()
215 ndm->ndm_state = is_static ? NUD_NOARP : NUD_REACHABLE; in dsa_slave_port_fdb_do_dump()
[all …]
Ddsa_priv.h92 int dsa_legacy_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
97 int dsa_legacy_fdb_del(struct ndmsg *ndm, struct nlattr *tb[],