Home
last modified time | relevance | path

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

12

/external/strace/
Drtnl_route.c85 const struct rtmsg *const rtmsg = opaque_data; in decode_route_addr() local
87 decode_inet_addr(tcp, addr, len, rtmsg->rtm_family, NULL); in decode_route_addr()
293 struct rtmsg rtmsg = { .rtm_family = family }; in DECL_NETLINK_ROUTE_DECODER() local
294 size_t offset = sizeof(rtmsg.rtm_family); in DECL_NETLINK_ROUTE_DECODER()
297 PRINT_FIELD_XVAL("{", rtmsg, rtm_family, addrfams, "AF_???"); in DECL_NETLINK_ROUTE_DECODER()
300 if (len >= sizeof(rtmsg)) { in DECL_NETLINK_ROUTE_DECODER()
302 sizeof(rtmsg) - offset, in DECL_NETLINK_ROUTE_DECODER()
303 (char *) &rtmsg + offset)) { in DECL_NETLINK_ROUTE_DECODER()
304 PRINT_FIELD_U("", rtmsg, rtm_dst_len); in DECL_NETLINK_ROUTE_DECODER()
305 PRINT_FIELD_U(", ", rtmsg, rtm_src_len); in DECL_NETLINK_ROUTE_DECODER()
[all …]
Drtnl_rule.c52 const struct rtmsg *const rtmsg = opaque_data; in decode_rule_addr() local
54 decode_inet_addr(tcp, addr, len, rtmsg->rtm_family, NULL); in decode_rule_addr()
134 struct rtmsg msg = { .rtm_family = family }; in DECL_NETLINK_ROUTE_DECODER()
/external/toybox/toys/pending/
Droute.c105 struct rtmsg rt; in display_routes()
109 struct rtmsg *route_entry; in display_routes()
115 req.nl.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in display_routes()
260 struct rtmsg *rtMsg; in setroute()
269 rtMsg = (struct rtmsg *) NLMSG_DATA(nlMsg); in setroute()
271 nlMsg->nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in setroute()
Dip.c1573 struct rtmsg *msg = NLMSG_DATA(mhdr); in display_route_info()
1575 int32_t tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in display_route_info()
1709 struct rtmsg *msg = NLMSG_DATA(mhdr); in display_route_info()
1710 int tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in display_route_info()
1785 struct rtmsg msg; in route_get()
1790 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in route_get()
1840 struct rtmsg *msg = NLMSG_DATA(mhdr); in route_get()
1841 int tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in route_get()
1879 struct rtmsg msg; in route_show_flush()
1986 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof (struct rtmsg)); in route_show_flush()
[all …]
/external/strace/tests/
Dnlattr_fib_rule_hdr.c65 struct rtmsg *const msg = NLMSG_DATA(nlh); in init_rtmsg()
66 SET_STRUCT(struct rtmsg, msg, in init_rtmsg()
94 const unsigned int hdrlen = sizeof(struct rtmsg); in main()
Dnlattr_rtmsg.c50 struct rtmsg *const msg = NLMSG_DATA(nlh); in init_rtmsg()
51 SET_STRUCT(struct rtmsg, msg, in init_rtmsg()
83 const unsigned int hdrlen = sizeof(struct rtmsg); in main()
Dnetlink_route.c250 static const struct rtmsg msg = { in test_rtnl_route()
279 struct rtmsg msg = { in test_rtnl_rule()
/external/strace/tests-mx32/
Dnlattr_fib_rule_hdr.c65 struct rtmsg *const msg = NLMSG_DATA(nlh); in init_rtmsg()
66 SET_STRUCT(struct rtmsg, msg, in init_rtmsg()
94 const unsigned int hdrlen = sizeof(struct rtmsg); in main()
Dnlattr_rtmsg.c50 struct rtmsg *const msg = NLMSG_DATA(nlh); in init_rtmsg()
51 SET_STRUCT(struct rtmsg, msg, in init_rtmsg()
83 const unsigned int hdrlen = sizeof(struct rtmsg); in main()
Dnetlink_route.c250 static const struct rtmsg msg = { in test_rtnl_route()
279 struct rtmsg msg = { in test_rtnl_rule()
/external/strace/tests-m32/
Dnlattr_fib_rule_hdr.c65 struct rtmsg *const msg = NLMSG_DATA(nlh); in init_rtmsg()
66 SET_STRUCT(struct rtmsg, msg, in init_rtmsg()
94 const unsigned int hdrlen = sizeof(struct rtmsg); in main()
Dnlattr_rtmsg.c50 struct rtmsg *const msg = NLMSG_DATA(nlh); in init_rtmsg()
51 SET_STRUCT(struct rtmsg, msg, in init_rtmsg()
83 const unsigned int hdrlen = sizeof(struct rtmsg); in main()
Dnetlink_route.c250 static const struct rtmsg msg = { in test_rtnl_route()
279 struct rtmsg msg = { in test_rtnl_rule()
/external/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()
/external/android-clat/
Dnetlink_msg.h24 struct nl_msg *nlmsg_alloc_rtmsg(uint16_t type, uint16_t flags, struct rtmsg *rt);
Dnetlink_msg.c104 struct nl_msg *nlmsg_alloc_rtmsg(uint16_t type, uint16_t flags, struct rtmsg *rt) { in nlmsg_alloc_rtmsg()
/external/iproute2/include/uapi/linux/
Drtnetlink.h193 struct rtmsg { struct
335 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
336 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
/external/iproute2/ip/
Diprule.c79 struct rtmsg *r = NLMSG_DATA(n); in filter_nlmsg()
175 struct rtmsg *r = NLMSG_DATA(n); in print_rule()
379 struct rtmsg *r = NLMSG_DATA(n); in flush_rule()
581 struct rtmsg r; in iprule_modify()
585 .n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)), in iprule_modify()
Diproute.c148 struct rtmsg *r = NLMSG_DATA(n); in filter_nlmsg()
317 struct rtmsg *r = NLMSG_DATA(n); in print_route()
740 static int parse_one_nh(struct nlmsghdr *n, struct rtmsg *r, in parse_one_nh()
814 static int parse_nexthops(struct nlmsghdr *n, struct rtmsg *r, in parse_nexthops()
850 struct rtmsg r; in iproute_modify()
853 .n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)), in iproute_modify()
1313 struct rtmsg rtm; in rtnl_rtcache_request()
1359 struct rtmsg *r = NLMSG_DATA(n); in save_route()
1673 struct rtmsg r; in iproute_get()
1676 .n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)), in iproute_get()
[all …]
/external/usrsctp/usrsctplib/
Duser_recv_thread.c188 struct ifaddrmsg *rtmsg;
226 rtmsg = (struct ifaddrmsg *)NLMSG_DATA(nh);
227 rtatp = (struct rtattr *)IFA_RTA(rtmsg);
230 switch (rtmsg->ifa_family) {
234 sa->sin_family = rtmsg->ifa_family;
237 sctp_handle_ifamsg(nh->nlmsg_type, rtmsg->ifa_index, (struct sockaddr *)sa);
243 sa6->sin6_family = rtmsg->ifa_family;
246 sctp_handle_ifamsg(nh->nlmsg_type, rtmsg->ifa_index, (struct sockaddr *)sa6);
250 SCTPDBG(SCTP_DEBUG_USR, "Address family %d not supported.\n", rtmsg->ifa_family);
/external/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))
/external/libnl/src/
Dnl-route-get.c64 struct rtmsg rmsg = { in main()
/external/kernel-headers/original/uapi/linux/
Drtnetlink.h221 struct rtmsg { struct
380 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
381 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))

12