/external/dhcpcd/ |
if-bsd.c | 201 struct rtm struct 205 } rtm; local 206 char *bp = rtm.buffer; 223 memset(&rtm, 0, sizeof(rtm)); 224 rtm.hdr.rtm_version = RTM_VERSION; 225 rtm.hdr.rtm_seq = 1; 227 rtm.hdr.rtm_type = RTM_CHANGE; 229 rtm.hdr.rtm_type = RTM_ADD; 231 rtm.hdr.rtm_type = RTM_DELETE 317 struct rt_msghdr *rtm; local [all...] |
if-linux.c | 233 struct rtmsg *rtm; local 241 if ((size_t)len < sizeof(*rtm)) { 245 rtm = NLMSG_DATA(nlm); 246 if (rtm->rtm_type != RTN_UNICAST || 247 rtm->rtm_table != RT_TABLE_MAIN || 248 rtm->rtm_family != AF_INET || 251 rta = (struct rtattr *) ((char *)rtm + NLMSG_ALIGN(sizeof(*rtm))); 252 len = NLMSG_PAYLOAD(nlm, sizeof(*rtm)); 282 inet_cidrtoaddr(rtm->rtm_dst_len, &rt.net) [all...] |
/external/libnl/lib/route/ |
rule.c | 390 struct rtmsg rtm = { local 395 rtm.rtm_type = RTN_UNICAST; 398 rtm.rtm_family = tmpl->r_family; 401 rtm.rtm_table = tmpl->r_table; 404 rtm.rtm_tos = tmpl->r_dsfield; 407 rtm.rtm_type = tmpl->r_type; 410 rtm.rtm_src_len = tmpl->r_src_len; 413 rtm.rtm_dst_len = tmpl->r_dst_len; 419 if (nlmsg_append(msg, &rtm, sizeof(rtm), NLMSG_ALIGNTO) < 0 [all...] |
route_obj.c | 913 struct rtmsg *rtm; local 932 rtm = nlmsg_data(nlh); 933 route->rt_family = family = rtm->rtm_family; 934 route->rt_tos = rtm->rtm_tos; 935 route->rt_table = rtm->rtm_table; 936 route->rt_type = rtm->rtm_type; 937 route->rt_scope = rtm->rtm_scope; 938 route->rt_protocol = rtm->rtm_protocol; 939 route->rt_flags = rtm->rtm_flags; 952 nl_addr_set_family(dst, rtm->rtm_family) [all...] |
/external/dnsmasq/src/ |
netlink.c | 277 struct rtmsg *rtm = NLMSG_DATA(h); local 280 if (rtm->rtm_type != RTN_UNICAST || rtm->rtm_scope != RT_SCOPE_LINK)
|
/external/ipsec-tools/src/racoon/ |
grabmyaddr.c | 643 struct rt_msghdr *rtm; 652 rtm = (struct rt_msghdr *)msg; 653 if (len < rtm->rtm_msglen) { 658 if (rtm->rtm_version != RTM_VERSION) { 665 switch (rtm->rtm_type) { 676 "msg %d not interesting\n", rtm->rtm_type); 682 "caught rtm:%d, need update interface address list\n", 683 rtm->rtm_type);
|
/external/iproute2/ip/ |
iproute.c | 1027 struct rtmsg rtm; member in struct:__anon1951 1040 req.rtm.rtm_family = family; 1041 req.rtm.rtm_flags |= RTM_F_CLONED; [all...] |