Lines Matching refs:req
265 } req; in ifc_act_on_address() local
299 memset(&req, 0, sizeof(req)); in ifc_act_on_address()
302 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.r)); in ifc_act_on_address()
303 req.n.nlmsg_type = action; in ifc_act_on_address()
304 req.n.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in ifc_act_on_address()
305 req.n.nlmsg_pid = getpid(); in ifc_act_on_address()
308 req.r.ifa_family = ss.ss_family; in ifc_act_on_address()
309 req.r.ifa_prefixlen = prefixlen; in ifc_act_on_address()
310 req.r.ifa_index = ifindex; in ifc_act_on_address()
313 rta = (struct rtattr *) (((char *) &req) + NLMSG_ALIGN(req.n.nlmsg_len)); in ifc_act_on_address()
316 req.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len) + RTA_LENGTH(addrlen); in ifc_act_on_address()
320 if (send(s, &req, req.n.nlmsg_len, 0) < 0) { in ifc_act_on_address()