Home
last modified time | relevance | path

Searched refs:rtmsg (Results 1 – 8 of 8) sorted by relevance

/third_party/glib/gio/
Dgnetworkmonitornetlink.c306 struct rtmsg *rtmsg; in read_netlink_messages() local
362 rtmsg = NLMSG_DATA (msg); in read_netlink_messages()
364 if (rtmsg->rtm_family != AF_INET && rtmsg->rtm_family != AF_INET6) in read_netlink_messages()
366 if (rtmsg->rtm_type == RTN_UNREACHABLE) in read_netlink_messages()
369 attrlen = NLMSG_PAYLOAD (msg, sizeof (struct rtmsg)); in read_netlink_messages()
370 attr = RTM_RTA (rtmsg); in read_netlink_messages()
393 rtmsg->rtm_family == AF_INET6 && in read_netlink_messages()
394 rtmsg->rtm_dst_len != 0 && in read_netlink_messages()
399 add_network (nl, rtmsg->rtm_family, dest, rtmsg->rtm_dst_len); in read_netlink_messages()
401 remove_network (nl, rtmsg->rtm_family, dest, rtmsg->rtm_dst_len); in read_netlink_messages()
/third_party/libnl/lib/route/
Droute.c48 struct rtmsg rhdr = { in route_request_update()
184 .co_hdrsize = sizeof(struct rtmsg),
Droute_obj.c1121 struct rtmsg *rtm; in rtnl_route_parse()
1134 err = nlmsg_parse(nlh, sizeof(struct rtmsg), tb, RTA_MAX, route_policy); in rtnl_route_parse()
1353 struct rtmsg rtmsg = { in rtnl_route_build_msg() local
1366 rtmsg.rtm_dst_len = nl_addr_get_prefixlen(route->rt_dst); in rtnl_route_build_msg()
1368 rtmsg.rtm_src_len = nl_addr_get_prefixlen(route->rt_src); in rtnl_route_build_msg()
1371 rtmsg.rtm_scope = rtnl_route_guess_scope(route); in rtnl_route_build_msg()
1376 rtmsg.rtm_flags |= nh->rtnh_flags; in rtnl_route_build_msg()
1379 if (nlmsg_append(msg, &rtmsg, sizeof(rtmsg), NLMSG_ALIGNTO) < 0) in rtnl_route_build_msg()
Dneightbl.c128 struct rtgenmsg *rtmsg; in neightbl_msg_parser() local
138 rtmsg = nlmsg_data(n); in neightbl_msg_parser()
140 err = nlmsg_parse(n, sizeof(*rtmsg), tb, NDTA_MAX, neightbl_policy); in neightbl_msg_parser()
144 ntbl->nt_family = rtmsg->rtgen_family; in neightbl_msg_parser()
/third_party/libnl/src/
Dnl-route-get.c64 struct rtmsg rmsg = { in main()
/third_party/libnl/include/linux-private/linux/
Drtnetlink.h200 struct rtmsg { struct
350 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
351 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
/third_party/toybox/toys/pending/
Dip.c1574 struct rtmsg *msg = NLMSG_DATA(mhdr); in display_route_info()
1576 int32_t tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in display_route_info()
1710 struct rtmsg *msg = NLMSG_DATA(mhdr); in display_route_info()
1711 int tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in display_route_info()
1786 struct rtmsg msg; in route_get()
1791 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in route_get()
1841 struct rtmsg *msg = NLMSG_DATA(mhdr); in route_get()
1842 int tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in route_get()
1880 struct rtmsg msg; in route_show_flush()
1987 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof (struct rtmsg)); in route_show_flush()
[all …]
/third_party/ltp/testcases/network/stress/route/
Droute-change-netlink.c198 struct rtmsg *rtm; in rtnl_route()
213 rtm = mnl_nlmsg_put_extra_header(nlh, sizeof(struct rtmsg)); in rtnl_route()