/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/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-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/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/syzkaller/sys/linux/ |
D | socket_netlink_route.txt | 45 ipv4_newroute netlink_msg[RTM_NEWROUTE, rtmsg[AF_INET], rtm_ipv4_policy] 46 ipv4_delroute netlink_msg[RTM_DELROUTE, rtmsg[AF_INET], rtm_ipv4_policy] 47 ipv4_getroute netlink_msg[RTM_GETROUTE, rtmsg[AF_INET], void] 56 ipv6_newroute netlink_msg[RTM_NEWROUTE, rtmsg[AF_INET6], rtm_ipv6_policy] 57 ipv6_delroute netlink_msg[RTM_DELROUTE, rtmsg[AF_INET6], rtm_ipv6_policy] 58 ipv6_getroute netlink_msg[RTM_GETROUTE, rtmsg[AF_INET6], rtm_ipv6_policy] 66 ipmr_newroute netlink_msg[RTM_NEWROUTE, rtmsg[RTNL_FAMILY_IPMR], rtm_ipv4_policy] 67 ipmr_delroute netlink_msg[RTM_DELROUTE, rtmsg[RTNL_FAMILY_IPMR], rtm_ipv4_policy] 68 ipmr_getroute netlink_msg[RTM_GETROUTE, rtmsg[RTNL_FAMILY_IPMR], void] 70 mpls_newroute netlink_msg[RTM_NEWROUTE, rtmsg[AF_MPLS], rtm_mpls_policy] [all …]
|
/external/libnl/lib/route/ |
D | route_obj.c | 1009 struct rtmsg *rtm; in rtnl_route_parse() 1024 err = nlmsg_parse(nlh, sizeof(struct rtmsg), tb, RTA_MAX, route_policy); in rtnl_route_parse() 1184 struct rtmsg rtmsg = { in rtnl_route_build_msg() local 1197 rtmsg.rtm_dst_len = nl_addr_get_prefixlen(route->rt_dst); in rtnl_route_build_msg() 1199 rtmsg.rtm_src_len = nl_addr_get_prefixlen(route->rt_src); in rtnl_route_build_msg() 1202 rtmsg.rtm_scope = rtnl_route_guess_scope(route); in rtnl_route_build_msg() 1207 rtmsg.rtm_flags |= nh->rtnh_flags; in rtnl_route_build_msg() 1210 if (nlmsg_append(msg, &rtmsg, sizeof(rtmsg), NLMSG_ALIGNTO) < 0) in rtnl_route_build_msg()
|
D | route.c | 47 struct rtmsg rhdr = { in route_request_update() 182 .co_hdrsize = sizeof(struct rtmsg),
|
D | neightbl.c | 127 struct rtgenmsg *rtmsg; in neightbl_msg_parser() local 137 rtmsg = nlmsg_data(n); in neightbl_msg_parser() 139 err = nlmsg_parse(n, sizeof(*rtmsg), tb, NDTA_MAX, neightbl_policy); in neightbl_msg_parser() 143 ntbl->nt_family = rtmsg->rtgen_family; in neightbl_msg_parser()
|
/external/libnl/include/linux-private/linux/ |
D | rtnetlink.h | 163 struct rtmsg { struct 291 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 292 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct 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 …]
|
D | ip_common.h | 100 static inline int rtm_get_table(struct rtmsg *r, struct rtattr **tb) in rtm_get_table()
|
/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/kernel-headers/original/uapi/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/toybox/toys/pending/ |
D | ip.c | 1466 struct rtmsg *msg = NLMSG_DATA(mhdr); in display_route_info() 1468 int32_t tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in display_route_info() 1598 struct rtmsg *msg = NLMSG_DATA(mhdr); in display_route_info() 1599 int tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in display_route_info() 1674 struct rtmsg msg; in route_get() 1679 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in route_get() 1729 struct rtmsg *msg = NLMSG_DATA(mhdr); in route_get() 1730 int tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in route_get() 1768 struct rtmsg msg; in route_show_flush() 1875 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof (struct rtmsg)); in route_show_flush() [all …]
|
/external/libnl/src/ |
D | nl-route-get.c | 62 struct rtmsg rmsg = { in main()
|