Lines Matching defs:req
260 } req;
294 memset(&req, 0, sizeof(req));
297 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.r));
298 req.n.nlmsg_type = action;
299 req.n.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK;
300 req.n.nlmsg_pid = getpid();
303 req.r.ifa_family = ss.ss_family;
304 req.r.ifa_prefixlen = prefixlen;
305 req.r.ifa_index = ifindex;
308 rta = (struct rtattr *) (((char *) &req) + NLMSG_ALIGN(req.n.nlmsg_len));
311 req.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len) + RTA_LENGTH(addrlen);
315 if (send(s, &req, req.n.nlmsg_len, 0) < 0) {