/external/strace/ |
D | rtnl_route.c | 85 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 …]
|
D | rtnl_rule.c | 52 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/ |
D | route.c | 105 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()
|
D | ip.c | 1573 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/ |
D | nlattr_fib_rule_hdr.c | 65 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()
|
D | nlattr_rtmsg.c | 50 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()
|
D | netlink_route.c | 250 static const struct rtmsg msg = { in test_rtnl_route() 279 struct rtmsg msg = { in test_rtnl_rule()
|
/external/strace/tests-mx32/ |
D | nlattr_fib_rule_hdr.c | 65 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()
|
D | nlattr_rtmsg.c | 50 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()
|
D | netlink_route.c | 250 static const struct rtmsg msg = { in test_rtnl_route() 279 struct rtmsg msg = { in test_rtnl_rule()
|
/external/strace/tests-m32/ |
D | nlattr_fib_rule_hdr.c | 65 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()
|
D | nlattr_rtmsg.c | 50 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()
|
D | netlink_route.c | 250 static const struct rtmsg msg = { in test_rtnl_route() 279 struct rtmsg msg = { in test_rtnl_rule()
|
/external/libnl/lib/route/ |
D | route.c | 48 struct rtmsg rhdr = { in route_request_update() 184 .co_hdrsize = sizeof(struct rtmsg),
|
D | route_obj.c | 1121 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()
|
D | neightbl.c | 128 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/ |
D | netlink_msg.h | 24 struct nl_msg *nlmsg_alloc_rtmsg(uint16_t type, uint16_t flags, struct rtmsg *rt);
|
D | netlink_msg.c | 104 struct nl_msg *nlmsg_alloc_rtmsg(uint16_t type, uint16_t flags, struct rtmsg *rt) { in nlmsg_alloc_rtmsg()
|
/external/iproute2/include/uapi/linux/ |
D | rtnetlink.h | 193 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/ |
D | iprule.c | 79 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()
|
D | iproute.c | 148 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/ |
D | user_recv_thread.c | 188 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/ |
D | rtnetlink.h | 200 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/ |
D | nl-route-get.c | 64 struct rtmsg rmsg = { in main()
|
/external/kernel-headers/original/uapi/linux/ |
D | rtnetlink.h | 221 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))
|