Lines Matching refs:req
177 } req; in fdb_show() local
183 memset(&req, 0, sizeof(req)); in fdb_show()
184 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in fdb_show()
185 req.ifm.ifi_family = PF_BRIDGE; in fdb_show()
207 addattr32(&req.n, sizeof(req), IFLA_MASTER, br_ifindex); in fdb_show()
219 req.ifm.ifi_index = filter_index; in fdb_show()
222 if (rtnl_dump_request(&rth, RTM_GETNEIGH, &req.ifm, msg_size) < 0) { in fdb_show()
241 } req; in fdb_modify() local
253 memset(&req, 0, sizeof(req)); in fdb_modify()
255 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ndmsg)); in fdb_modify()
256 req.n.nlmsg_flags = NLM_F_REQUEST|flags; in fdb_modify()
257 req.n.nlmsg_type = cmd; in fdb_modify()
258 req.ndm.ndm_family = PF_BRIDGE; in fdb_modify()
259 req.ndm.ndm_state = NUD_NOARP; in fdb_modify()
296 req.ndm.ndm_flags |= NTF_SELF; in fdb_modify()
298 req.ndm.ndm_flags |= NTF_MASTER; in fdb_modify()
300 req.ndm.ndm_flags |= NTF_ROUTER; in fdb_modify()
303 req.ndm.ndm_state |= NUD_PERMANENT; in fdb_modify()
305 req.ndm.ndm_state |= NUD_REACHABLE; in fdb_modify()
312 req.ndm.ndm_flags |= NTF_USE; in fdb_modify()
332 if (!(req.ndm.ndm_flags&(NTF_SELF|NTF_MASTER))) in fdb_modify()
333 req.ndm.ndm_flags |= NTF_SELF; in fdb_modify()
336 if (!(req.ndm.ndm_state&(NUD_PERMANENT|NUD_REACHABLE))) in fdb_modify()
337 req.ndm.ndm_state |= NUD_PERMANENT; in fdb_modify()
346 addattr_l(&req.n, sizeof(req), NDA_LLADDR, abuf, ETH_ALEN); in fdb_modify()
348 addattr_l(&req.n, sizeof(req), NDA_DST, &dst.data, dst.bytelen); in fdb_modify()
351 addattr16(&req.n, sizeof(req), NDA_VLAN, vid); in fdb_modify()
357 addattr16(&req.n, sizeof(req), NDA_PORT, dport); in fdb_modify()
360 addattr32(&req.n, sizeof(req), NDA_VNI, vni); in fdb_modify()
362 addattr32(&req.n, sizeof(req), NDA_IFINDEX, via); in fdb_modify()
364 req.ndm.ndm_ifindex = ll_name_to_index(d); in fdb_modify()
365 if (req.ndm.ndm_ifindex == 0) { in fdb_modify()
370 if (rtnl_talk(&rth, &req.n, NULL, 0) < 0) in fdb_modify()