Lines Matching defs:req
64 struct req {
69 } req;
78 memset(&req, 0, sizeof(req));
80 req.rtm.rtm_type = RTM_GET;
81 req.rtm.rtm_version = RTM_VERSION;
82 req.rtm.rtm_msglen = sizeof(req);
83 req.rtm.rtm_seq = 0x12345;
85 req.rtm.rtm_flags = RTF_UP;
86 req.rtm.rtm_addrs = RTA_DST | RTA_NETMASK | RTA_IFP;
88 req.dst.sin6_family = AF_INET6;
90 req.dst.sin6_len = sizeof(req.dst);
93 req.mask.sin6_family = AF_INET6;
95 req.mask.sin6_len = sizeof(req.mask);
98 req.ifp.sdl_family = AF_LINK;
100 req.ifp.sdl_len = sizeof(req.ifp);
103 nsent = write(rtsock, &req, req.rtm.rtm_msglen);