/external/iproute2/include/ |
D | libnetlink.h | 124 int rta_addattr8(struct rtattr *rta, int maxlen, int type, __u8 data); 125 int rta_addattr16(struct rtattr *rta, int maxlen, int type, __u16 data); 126 int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data); 127 int rta_addattr64(struct rtattr *rta, int maxlen, int type, __u64 data); 128 int rta_addattr_l(struct rtattr *rta, int maxlen, int type, 131 int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len); 132 int parse_rtattr_flags(struct rtattr *tb[], int max, struct rtattr *rta, 135 struct rtattr *rta, int len); 136 struct rtattr *parse_rtattr_one(int type, struct rtattr *rta, int len); 137 int __parse_rtattr_nested_compat(struct rtattr *tb[], int max, struct rtattr *rta, int len); [all …]
|
D | utils.h | 122 #define format_host_rta(af, rta) \ argument 123 format_host(af, RTA_PAYLOAD(rta), RTA_DATA(rta)) 127 #define rt_addr_n2a_rta(af, rta) \ argument 128 rt_addr_n2a(af, RTA_PAYLOAD(rta), RTA_DATA(rta))
|
/external/iproute2/lib/ |
D | libnetlink.c | 864 struct rtattr *rta; in addattr_l() local 872 rta = NLMSG_TAIL(n); in addattr_l() 873 rta->rta_type = type; in addattr_l() 874 rta->rta_len = len; in addattr_l() 876 memcpy(RTA_DATA(rta), data, alen); in addattr_l() 929 int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data) in rta_addattr32() argument 934 if (RTA_ALIGN(rta->rta_len) + len > maxlen) { in rta_addattr32() 940 subrta = (struct rtattr *)(((char *)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr32() 944 rta->rta_len = NLMSG_ALIGN(rta->rta_len) + len; in rta_addattr32() 948 int rta_addattr_l(struct rtattr *rta, int maxlen, int type, in rta_addattr_l() argument [all …]
|
/external/iproute2/ip/ |
D | iproute_lwtunnel.c | 467 static int parse_encap_seg6(struct rtattr *rta, size_t len, int *argcp, in parse_encap_seg6() argument 518 rta_addattr_l(rta, len, SEG6_IPTUNNEL_SRH, tuninfo, in parse_encap_seg6() 530 static int parse_encap_seg6local(struct rtattr *rta, size_t len, int *argcp, in parse_encap_seg6local() argument 551 rta_addattr32(rta, len, SEG6_LOCAL_ACTION, action); in parse_encap_seg6local() 557 rta_addattr32(rta, len, SEG6_LOCAL_TABLE, table); in parse_encap_seg6local() 563 rta_addattr_l(rta, len, SEG6_LOCAL_NH4, &addr.data, in parse_encap_seg6local() 570 rta_addattr_l(rta, len, SEG6_LOCAL_NH6, &addr.data, in parse_encap_seg6local() 579 rta_addattr32(rta, len, SEG6_LOCAL_IIF, iif); in parse_encap_seg6local() 587 rta_addattr32(rta, len, SEG6_LOCAL_OIF, oif); in parse_encap_seg6local() 628 rta_addattr_l(rta, len, SEG6_LOCAL_SRH, srh, srhlen); in parse_encap_seg6local() [all …]
|
D | iplink_macvlan.c | 186 struct rtattr *rta; in macvlan_print_opt() local 230 rta = RTA_DATA(tb[IFLA_MACVLAN_MACADDR_DATA]); in macvlan_print_opt() 234 for (; RTA_OK(rta, len); rta = RTA_NEXT(rta, len)) { in macvlan_print_opt() 235 if (rta->rta_type != IFLA_MACVLAN_MACADDR || in macvlan_print_opt() 236 RTA_PAYLOAD(rta) < 6) in macvlan_print_opt() 238 addr = RTA_DATA(rta); in macvlan_print_opt()
|
D | ipxfrm.c | 677 struct rtattr *rta = tb[XFRMA_MARK]; in xfrm_xfrma_print() local 678 struct xfrm_mark *m = RTA_DATA(rta); in xfrm_xfrma_print() 685 struct rtattr *rta = tb[XFRMA_ALG_AUTH]; in xfrm_xfrma_print() local 687 xfrm_algo_print(RTA_DATA(rta), in xfrm_xfrma_print() 688 XFRMA_ALG_AUTH, RTA_PAYLOAD(rta), fp, prefix); in xfrm_xfrma_print() 692 struct rtattr *rta = tb[XFRMA_ALG_AUTH_TRUNC]; in xfrm_xfrma_print() local 694 xfrm_auth_trunc_print(RTA_DATA(rta), in xfrm_xfrma_print() 695 RTA_PAYLOAD(rta), fp, prefix); in xfrm_xfrma_print() 699 struct rtattr *rta = tb[XFRMA_ALG_AEAD]; in xfrm_xfrma_print() local 701 xfrm_aead_print(RTA_DATA(rta), in xfrm_xfrma_print() [all …]
|
D | iproute.c | 741 struct rtattr *rta, struct rtnexthop *rtnh, in parse_one_nh() argument 762 rta_addattr_l(rta, 4096, RTA_GATEWAY, &addr.data, addr.bytelen); in parse_one_nh() 765 rta_addattr_l(rta, 4096, RTA_VIA, &addr.family, addr.bytelen+2); in parse_one_nh() 789 rta_addattr32(rta, 4096, RTA_FLOW, realm); in parse_one_nh() 792 int len = rta->rta_len; in parse_one_nh() 794 lwt_parse_encap(rta, 4096, &argc, &argv); in parse_one_nh() 795 rtnh->rtnh_len += rta->rta_len - len; in parse_one_nh() 803 rta_addattr_l(rta, 4096, RTA_NEWDST, &addr.data, in parse_one_nh() 818 struct rtattr *rta = (void *)buf; in parse_nexthops() local 821 rta->rta_type = RTA_MULTIPATH; in parse_nexthops() [all …]
|
/external/wpa_supplicant_8/src/drivers/ |
D | priv_netlink.h | 64 #define RTA_OK(rta,len) \ argument 65 ((len) > 0 && (rta)->rta_len >= sizeof(struct rtattr) && \ 66 (rta)->rta_len <= (len)) 67 #define RTA_NEXT(rta,attrlen) \ argument 68 ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ 69 (struct rtattr *) (((char *)(rta)) + RTA_ALIGN((rta)->rta_len))) 72 #define RTA_DATA(rta) ((void *) (((char *) (rta)) + RTA_LENGTH(0))) argument 73 #define RTA_PAYLOAD(rta) ((int) ((rta)->rta_len) - RTA_LENGTH(0)) argument
|
D | netlink.c | 177 struct rtattr *rta; in netlink_send_oper_ifla() local 196 rta = aliasing_hide_typecast( in netlink_send_oper_ifla() 199 rta->rta_type = IFLA_LINKMODE; in netlink_send_oper_ifla() 200 rta->rta_len = RTA_LENGTH(sizeof(char)); in netlink_send_oper_ifla() 201 *((char *) RTA_DATA(rta)) = linkmode; in netlink_send_oper_ifla() 205 rta = aliasing_hide_typecast( in netlink_send_oper_ifla() 208 rta->rta_type = IFLA_OPERSTATE; in netlink_send_oper_ifla() 209 rta->rta_len = RTA_LENGTH(sizeof(char)); in netlink_send_oper_ifla() 210 *((char *) RTA_DATA(rta)) = operstate; in netlink_send_oper_ifla()
|
/external/dhcpcd-6.8.2/ |
D | if-linux.c | 399 struct rtattr *rta; in if_copyrt() local 418 rta = (struct rtattr *)RTM_RTA(rtm); in if_copyrt() 420 while (RTA_OK(rta, len)) { in if_copyrt() 421 switch (rta->rta_type) { in if_copyrt() 423 memcpy(&rt->dest.s_addr, RTA_DATA(rta), in if_copyrt() 427 memcpy(&rt->gate.s_addr, RTA_DATA(rta), in if_copyrt() 431 memcpy(&prefsrc.s_addr, RTA_DATA(rta), in if_copyrt() 436 *(unsigned int *)RTA_DATA(rta)); in if_copyrt() 439 rt->metric = *(unsigned int *)RTA_DATA(rta); in if_copyrt() 442 rta = RTA_NEXT(rta, len); in if_copyrt() [all …]
|
/external/dnsmasq/src/ |
D | netlink.c | 189 struct rtattr *rta = IFA_RTA(ifa); in iface_enumerate() local 200 while (RTA_OK(rta, len1)) in iface_enumerate() 202 if (rta->rta_type == IFA_LOCAL) in iface_enumerate() 203 addr = *((struct in_addr *)(rta+1)); in iface_enumerate() 204 else if (rta->rta_type == IFA_BROADCAST) in iface_enumerate() 205 broadcast = *((struct in_addr *)(rta+1)); in iface_enumerate() 207 rta = RTA_NEXT(rta, len1); in iface_enumerate() 218 while (RTA_OK(rta, len1)) in iface_enumerate() 220 if (rta->rta_type == IFA_ADDRESS) in iface_enumerate() 221 addrp = ((struct in6_addr *)(rta+1)); in iface_enumerate() [all …]
|
/external/libnl/include/linux-private/linux/ |
D | rtnetlink.h | 146 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument 147 (rta)->rta_len >= sizeof(struct rtattr) && \ 148 (rta)->rta_len <= (len)) 149 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument 150 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 153 #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0))) argument 154 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0)) argument
|
/external/iproute2/tc/ |
D | em_meta.c | 436 static inline int print_value(FILE *fd, int type, struct rtattr *rta) in print_value() argument 438 if (rta == NULL) { in print_value() 445 if (RTA_PAYLOAD(rta) < sizeof(__u32)) { in print_value() 450 fprintf(fd, "%d", rta_getattr_u32(rta)); in print_value() 454 print_binary(fd, RTA_DATA(rta), RTA_PAYLOAD(rta)); in print_value() 461 static int print_object(FILE *fd, struct tcf_meta_val *obj, struct rtattr *rta) in print_object() argument 468 return print_value(fd, type, rta); in print_object() 482 if (rta) { in print_object() 483 if (RTA_PAYLOAD(rta) < sizeof(__u32)) in print_object() 486 if (rta_getattr_u32(rta)) in print_object() [all …]
|
D | tc_stab.c | 107 void print_size_table(FILE *fp, const char *prefix, struct rtattr *rta) in print_size_table() argument 113 parse_rtattr_nested(tb, TCA_STAB_MAX, rta); in print_size_table()
|
/external/ltp/testcases/kernel/containers/share/ |
D | ns_ifmove.c | 80 struct rtattr *rta; in main() local 110 rta = (struct rtattr *)(((char *) &req) + in main() 112 rta->rta_type = IFLA_NET_NS_PID; in main() 113 rta->rta_len = RTA_LENGTH(sizeof(int)); in main() 116 memcpy(RTA_DATA(rta), &pid, sizeof(pid)); in main()
|
/external/kernel-headers/original/uapi/linux/ |
D | rtnetlink.h | 176 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument 177 (rta)->rta_len >= sizeof(struct rtattr) && \ 178 (rta)->rta_len <= (len)) 179 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument 180 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 183 #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0))) argument 184 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0)) argument
|
/external/iproute2/include/uapi/linux/ |
D | rtnetlink.h | 176 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument 177 (rta)->rta_len >= sizeof(struct rtattr) && \ 178 (rta)->rta_len <= (len)) 179 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument 180 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 183 #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0))) argument 184 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0)) argument
|
/external/webrtc/webrtc/base/ |
D | ifaddrs-android.cc | 174 rtattr* rta = IFA_RTA(address_msg); in getifaddrs() local 176 while (RTA_OK(rta, payload_len)) { in getifaddrs() 177 if (rta->rta_type == IFA_ADDRESS) { in getifaddrs() 187 if (populate_ifaddrs(newest, address_msg, RTA_DATA(rta), in getifaddrs() 188 RTA_PAYLOAD(rta)) != 0) { in getifaddrs() 196 rta = RTA_NEXT(rta, payload_len); in getifaddrs()
|
/external/libnfnetlink/src/ |
D | rtnl.c | 94 int rtnl_parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len) in rtnl_parse_rtattr() argument 98 while (RTA_OK(rta, len)) { in rtnl_parse_rtattr() 99 if (rta->rta_type <= max) in rtnl_parse_rtattr() 100 tb[rta->rta_type] = rta; in rtnl_parse_rtattr() 101 rta = RTA_NEXT(rta,len); in rtnl_parse_rtattr()
|
/external/toybox/toys/pending/ |
D | ip.c | 431 struct rtattr *rta; in add_string_to_rtattr() local 434 rta = (struct rtattr*)(((char*)n) + NLMSG_ALIGN(n->nlmsg_len)); in add_string_to_rtattr() 435 rta->rta_type = type; in add_string_to_rtattr() 436 rta->rta_len = len; in add_string_to_rtattr() 437 memcpy(RTA_DATA(rta), data, alen); in add_string_to_rtattr() 950 struct rtattr *rta, *rta_tb[IFA_MAX+1] = {0,}; in print_addrinfo() local 962 for (rta = IFA_RTA(ifa); RTA_OK(rta, len); rta=RTA_NEXT(rta, len)) in print_addrinfo() 963 if (rta->rta_type <= IFA_MAX) rta_tb[rta->rta_type] = rta; in print_addrinfo() 1351 struct rtattr *rta, *rta_tb[IFA_MAX+1] = {0,}; in ipaddr_print() local 1365 for (rta = IFA_RTA(addressInfo); RTA_OK(rta, rt_len); rta=RTA_NEXT(rta, rt_len)) { in ipaddr_print() [all …]
|
/external/iputils/ninfod/ |
D | ni_ifaddrs.c | 387 struct rtattr *rta; in ni_ifaddrs() local 433 for (rta = (struct rtattr *) (((char *) NLMSG_DATA(nlh)) + in ni_ifaddrs() 435 RTA_OK(rta, rtasize); in ni_ifaddrs() 436 rta = RTA_NEXT(rta, rtasize)) { in ni_ifaddrs() 437 void *rtadata = RTA_DATA(rta); in ni_ifaddrs() 438 size_t rtapayload = RTA_PAYLOAD(rta); in ni_ifaddrs() 444 switch (rta->rta_type) { in ni_ifaddrs()
|
/external/lisa/ipynb/profiling/ |
D | kernel_functions_profiling.ipynb | 194 "01:50:59 INFO : Executor - rta\n", 259 " \"rta\" : {\n", 311 "01:51:05 INFO : WlGen - Setup new workload rta\n", 357 "01:51:06 INFO : Executor - Experiment 0/6, [base:rta] 1/3\n", 362 "01:51:30 INFO : Executor - <res_dir>/rtapp:base:rta/1/trace.dat\n", 364 "01:51:31 INFO : Executor - <res_dir>/rtapp:base:rta/1/trace_stat.json\n", 367 "01:51:31 INFO : Executor - Experiment 1/6, [base:rta] 2/3\n", 372 "01:51:52 INFO : Executor - <res_dir>/rtapp:base:rta/2/trace.dat\n", 374 "01:51:53 INFO : Executor - <res_dir>/rtapp:base:rta/2/trace_stat.json\n", 377 "01:51:53 INFO : Executor - Experiment 2/6, [base:rta] 3/3\n", [all …]
|
/external/lisa/ipynb/tutorial/ |
D | 04_ExecutorUsage.ipynb | 292 " \"rta\" : {\n", 341 "05:01:07 INFO : Executor - rta, perf\n", 379 "05:01:10 INFO : WlGen - Setup new workload rta\n", 395 "05:01:12 INFO : Executor - Experiment 0/4, [base:rta] 1/1\n", 409 …t/run_dir/*task_p200*.log' /home/bjackman/sources/lisa/results/ExecutorExample/rtapp:base:rta/1\n", 410 …target/run_dir/rta_00.json /home/bjackman/sources/lisa/results/ExecutorExample/rtapp:base:rta/1\n", 418 …target/trace.dat /home/bjackman/sources/lisa/results/ExecutorExample/rtapp:base:rta/1/trace.dat\n", 420 "05:01:35 INFO : Executor - <res_dir>/rtapp:base:rta/1/trace.dat\n", 422 "05:01:35 INFO : Executor - <res_dir>/rtapp:base:rta/1/trace_stat.json\n", 462 "05:01:56 INFO : WlGen - Setup new workload rta\n", [all …]
|
/external/ipsec-tools/src/racoon/ |
D | grabmyaddr.c | 117 static int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len) in parse_rtattr() argument 119 while (RTA_OK(rta, len)) { in parse_rtattr() 120 if (rta->rta_type <= max) in parse_rtattr() 121 tb[rta->rta_type] = rta; in parse_rtattr() 122 rta = RTA_NEXT(rta,len); in parse_rtattr()
|
/external/lisa/ipynb/examples/utils/ |
D | executor_example.ipynb | 164 " \"rta\" : {\n", 255 "2016-12-07 10:17:52,257 INFO : Executor : rta, perf\n", 286 "2016-12-07 10:18:02,274 INFO : Workload : Setup new workload rta\n", 297 "2016-12-07 10:18:05,734 INFO : Executor : Experiment 0/4, [base:rta] 1/1\n", 313 "2016-12-07 10:18:18,325 INFO : Workload : Setup new workload rta\n", 324 "2016-12-07 10:18:21,415 INFO : Executor : Experiment 2/4, [eas:rta] 1/1\n", 376 "├── rtapp:base:rta\r\n", 385 "└── rtapp:eas:rta\r\n",
|