Lines Matching defs:req
272 } req;
306 memset(&req, 0, sizeof(req));
309 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.r));
310 req.n.nlmsg_type = action;
311 req.n.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK;
312 req.n.nlmsg_pid = getpid();
315 req.r.ifa_family = ss.ss_family;
316 req.r.ifa_prefixlen = prefixlen;
317 req.r.ifa_index = ifindex;
320 rta = (struct rtattr *) (((char *) &req) + NLMSG_ALIGN(req.n.nlmsg_len));
323 req.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len) + RTA_LENGTH(addrlen);
328 rta = (struct rtattr *) (((char *) &req) + NLMSG_ALIGN(req.n.nlmsg_len));
331 req.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len) + RTA_LENGTH(addrlen);
341 if (send(s, &req, req.n.nlmsg_len, 0) < 0) {