Lines Matching refs:req
273 } req; in ifc_act_on_address() local
304 memset(&req, 0, sizeof(req)); in ifc_act_on_address()
307 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.r)); in ifc_act_on_address()
308 req.n.nlmsg_type = action; in ifc_act_on_address()
309 req.n.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in ifc_act_on_address()
310 req.n.nlmsg_pid = getpid(); in ifc_act_on_address()
313 req.r.ifa_family = ss.ss_family; in ifc_act_on_address()
314 req.r.ifa_flags = nodad ? IFA_F_NODAD : 0; in ifc_act_on_address()
315 req.r.ifa_prefixlen = prefixlen; in ifc_act_on_address()
316 req.r.ifa_index = ifindex; in ifc_act_on_address()
319 rta = (struct rtattr *) (((char *) &req) + NLMSG_ALIGN(req.n.nlmsg_len)); in ifc_act_on_address()
322 req.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len) + RTA_LENGTH(addrlen); in ifc_act_on_address()
327 rta = (struct rtattr *) (((char *) &req) + NLMSG_ALIGN(req.n.nlmsg_len)); in ifc_act_on_address()
330 req.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len) + RTA_LENGTH(addrlen); in ifc_act_on_address()
340 if (send(s, &req, req.n.nlmsg_len, 0) < 0) { in ifc_act_on_address()
346 char buf[NLMSG_ALIGN(sizeof(struct nlmsgerr)) + sizeof(req)]; in ifc_act_on_address()