/external/ltp/testcases/kernel/crypto/ |
D | crypto_user01.c | 52 const struct crypto_report_larval *p = RTA_DATA(rta); in validate_attr() 58 const struct crypto_report_hash *p = RTA_DATA(rta); in validate_attr() 64 const struct crypto_report_blkcipher *p = RTA_DATA(rta); in validate_attr() 71 const struct crypto_report_aead *p = RTA_DATA(rta); in validate_attr() 78 const struct crypto_report_comp *p = RTA_DATA(rta); in validate_attr() 84 const struct crypto_report_rng *p = RTA_DATA(rta); in validate_attr() 90 const struct crypto_report_cipher *p = RTA_DATA(rta); in validate_attr() 96 const struct crypto_report_akcipher *p = RTA_DATA(rta); in validate_attr() 102 const struct crypto_report_kpp *p = RTA_DATA(rta); in validate_attr() 108 const struct crypto_report_acomp *p = RTA_DATA(rta); in validate_attr()
|
/external/iproute2/ip/ |
D | iplink_can.c | 277 struct can_ctrlmode *cm = RTA_DATA(tb[IFLA_CAN_CTRLMODE]); in can_print_opt() 292 RTA_DATA(tb[IFLA_CAN_BERR_COUNTER]); in can_print_opt() 306 __u32 *restart_ms = RTA_DATA(tb[IFLA_CAN_RESTART_MS]); in can_print_opt() 316 struct can_bittiming *bt = RTA_DATA(tb[IFLA_CAN_BITTIMING]); in can_print_opt() 346 RTA_DATA(tb[IFLA_CAN_BITTIMING_CONST]); in can_print_opt() 373 __u32 *bitrate_const = RTA_DATA(tb[IFLA_CAN_BITRATE_CONST]); in can_print_opt() 381 RTA_DATA(tb[IFLA_CAN_BITTIMING]); in can_print_opt() 415 RTA_DATA(tb[IFLA_CAN_DATA_BITTIMING]); in can_print_opt() 447 RTA_DATA(tb[IFLA_CAN_DATA_BITTIMING_CONST]); in can_print_opt() 476 RTA_DATA(tb[IFLA_CAN_DATA_BITRATE_CONST]); in can_print_opt() [all …]
|
D | link_vti6.c | 103 memcpy(&saddr, RTA_DATA(vtiinfo[IFLA_VTI_LOCAL]), sizeof(saddr)); in vti6_parse_opt() 106 memcpy(&daddr, RTA_DATA(vtiinfo[IFLA_VTI_REMOTE]), sizeof(daddr)); in vti6_parse_opt() 223 memcpy(&daddr, RTA_DATA(tb[IFLA_VTI_REMOTE]), sizeof(daddr)); in vti6_print_opt() 231 memcpy(&saddr, RTA_DATA(tb[IFLA_VTI_LOCAL]), sizeof(saddr)); in vti6_print_opt() 248 inet_ntop(AF_INET, RTA_DATA(tb[IFLA_VTI_IKEY]), s2, sizeof(s2)); in vti6_print_opt() 253 inet_ntop(AF_INET, RTA_DATA(tb[IFLA_VTI_OKEY]), s2, sizeof(s2)); in vti6_print_opt()
|
D | ipaddress.c | 217 return RTA_DATA(linkinfo[attr]); in parse_link_kind() 366 vf_mac = RTA_DATA(vf[IFLA_VF_MAC]); in print_vfinfo() 367 vf_tx_rate = RTA_DATA(vf[IFLA_VF_TX_RATE]); in print_vfinfo() 380 for (i = RTA_DATA(vfvlanlist); in print_vfinfo() 382 struct ifla_vf_vlan_info *vf_vlan_info = RTA_DATA(i); in print_vfinfo() 408 struct ifla_vf_vlan *vf_vlan = RTA_DATA(vf[IFLA_VF_VLAN]); in print_vfinfo() 426 struct ifla_vf_rate *vf_rate = RTA_DATA(vf[IFLA_VF_RATE]); in print_vfinfo() 445 RTA_DATA(vf[IFLA_VF_SPOOFCHK]); in print_vfinfo() 457 RTA_DATA(vf[IFLA_VF_LINK_STATE]); in print_vfinfo() 477 struct ifla_vf_trust *vf_trust = RTA_DATA(vf[IFLA_VF_TRUST]); in print_vfinfo() [all …]
|
D | ipxfrm.c | 685 struct xfrm_mark *m = RTA_DATA(rta); in xfrm_xfrma_print() 702 xfrm_algo_print(RTA_DATA(rta), in xfrm_xfrma_print() 709 xfrm_auth_trunc_print(RTA_DATA(rta), in xfrm_xfrma_print() 716 xfrm_aead_print(RTA_DATA(rta), in xfrm_xfrma_print() 723 xfrm_algo_print(RTA_DATA(rta), in xfrm_xfrma_print() 730 xfrm_algo_print(RTA_DATA(rta), in xfrm_xfrma_print() 746 e = RTA_DATA(tb[XFRMA_ENCAP]); in xfrm_xfrma_print() 771 xfrm_tmpl_print(RTA_DATA(rta), in xfrm_xfrma_print() 782 coa = RTA_DATA(tb[XFRMA_COADDR]); in xfrm_xfrma_print() 826 replay = RTA_DATA(tb[XFRMA_REPLAY_VAL]); in xfrm_xfrma_print() [all …]
|
D | ipmroute.c | 102 memcpy(&dst.data, RTA_DATA(tb[RTA_DST]), RTA_PAYLOAD(tb[RTA_DST])); in print_mroute() 110 memcpy(&src.data, RTA_DATA(tb[RTA_SRC]), RTA_PAYLOAD(tb[RTA_SRC])); in print_mroute() 138 struct rtnexthop *nh = RTA_DATA(tb[RTA_MULTIPATH]); in print_mroute() 165 struct rta_mfc_stats *mfcs = RTA_DATA(tb[RTA_MFC_STATS]); in print_mroute()
|
/external/iproute2/genl/ |
D | ctrl.c | 140 __u32 *id = RTA_DATA(tb[CTRL_ATTR_OP_ID]); in print_ctrl_cmds() 145 __u32 *fl = RTA_DATA(tb[CTRL_ATTR_OP_FLAGS]); in print_ctrl_cmds() 161 __u32 *id = RTA_DATA(tb[CTRL_ATTR_MCAST_GRP_ID]); in print_ctrl_grp() 165 char *name = RTA_DATA(tb[CTRL_ATTR_MCAST_GRP_NAME]); in print_ctrl_grp() 212 char *name = RTA_DATA(tb[CTRL_ATTR_FAMILY_NAME]); in print_ctrl() 216 __u16 *id = RTA_DATA(tb[CTRL_ATTR_FAMILY_ID]); in print_ctrl() 220 __u32 *v = RTA_DATA(tb[CTRL_ATTR_VERSION]); in print_ctrl() 225 __u32 *h = RTA_DATA(tb[CTRL_ATTR_HDRSIZE]); in print_ctrl() 229 __u32 *ma = RTA_DATA(tb[CTRL_ATTR_MAXATTR]); in print_ctrl()
|
/external/iproute2/bridge/ |
D | mdb.c | 51 parse_rtattr(tb, MDBA_ROUTER_PATTR_MAX, MDB_RTR_RTA(RTA_DATA(pattr)), in __print_router_port_stats() 89 for (i = RTA_DATA(attr); RTA_OK(i, rem); i = RTA_NEXT(i, rem)) { in br_print_router_ports() 90 port_ifindex = RTA_DATA(i); in br_print_router_ports() 104 for (i = RTA_DATA(attr); RTA_OK(i, rem); i = RTA_NEXT(i, rem)) { in br_print_router_ports() 105 port_ifindex = RTA_DATA(i); in br_print_router_ports() 212 for (i = RTA_DATA(attr); RTA_OK(i, rem); i = RTA_NEXT(i, rem)) { in br_print_mdb_entry() 213 e = RTA_DATA(i); in br_print_mdb_entry() 214 parse_rtattr(etb, MDBA_MDB_EATTR_MAX, MDB_RTA(RTA_DATA(i)), in br_print_mdb_entry() 248 for (i = RTA_DATA(tb[MDBA_MDB]); RTA_OK(i, rem); i = RTA_NEXT(i, rem)) in print_mdb() 260 i = RTA_DATA(tb[MDBA_ROUTER]); in print_mdb() [all …]
|
D | vlan.c | 268 parse_rtattr(brtb, LINK_XSTATS_TYPE_MAX, RTA_DATA(attr), in print_vlan_stats_attr() 275 for (i = RTA_DATA(list); RTA_OK(i, rem); i = RTA_NEXT(i, rem)) { in print_vlan_stats_attr() 278 print_one_vlan_stats(fp, RTA_DATA(i), ifindex); in print_vlan_stats_attr() 415 for (i = RTA_DATA(list); RTA_OK(i, rem); i = RTA_NEXT(i, rem)) { in print_vlan_info() 422 vinfo = RTA_DATA(i); in print_vlan_info()
|
/external/iproute2/tc/ |
D | m_skbedit.c | 186 p = RTA_DATA(tb[TCA_SKBEDIT_PARMS]); in print_skbedit() 191 queue_mapping = RTA_DATA(tb[TCA_SKBEDIT_QUEUE_MAPPING]); in print_skbedit() 195 priority = RTA_DATA(tb[TCA_SKBEDIT_PRIORITY]); in print_skbedit() 199 mark = RTA_DATA(tb[TCA_SKBEDIT_MARK]); in print_skbedit() 203 ptype = RTA_DATA(tb[TCA_SKBEDIT_PTYPE]); in print_skbedit() 223 struct tcf_t *tm = RTA_DATA(tb[TCA_SKBEDIT_TM]); in print_skbedit()
|
D | q_netem.c | 554 memcpy(&qopt, RTA_DATA(opt), sizeof(qopt)); in netem_print_opt() 559 parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt), in netem_print_opt() 565 cor = RTA_DATA(tb[TCA_NETEM_CORR]); in netem_print_opt() 570 reorder = RTA_DATA(tb[TCA_NETEM_REORDER]); in netem_print_opt() 575 corrupt = RTA_DATA(tb[TCA_NETEM_CORRUPT]); in netem_print_opt() 582 gimodel = RTA_DATA(lb[NETEM_LOSS_GI]); in netem_print_opt() 584 gemodel = RTA_DATA(lb[NETEM_LOSS_GE]); in netem_print_opt() 589 rate = RTA_DATA(tb[TCA_NETEM_RATE]); in netem_print_opt() 594 ecn = RTA_DATA(tb[TCA_NETEM_ECN]); in netem_print_opt()
|
D | m_skbmod.c | 183 p = RTA_DATA(tb[TCA_SKBMOD_PARMS]); in print_skbmod() 200 ll_addr_n2a(RTA_DATA(tb[TCA_SKBMOD_DMAC]), in print_skbmod() 209 ll_addr_n2a(RTA_DATA(tb[TCA_SKBMOD_SMAC]), in print_skbmod() 221 struct tcf_t *tm = RTA_DATA(tb[TCA_SKBMOD_TM]); in print_skbmod()
|
D | m_simple.c | 177 sel = RTA_DATA(tb[TCA_DEF_PARMS]); in print_simple() 184 simpdata = RTA_DATA(tb[TCA_DEF_DATA]); in print_simple() 192 struct tcf_t *tm = RTA_DATA(tb[TCA_DEF_TM]); in print_simple()
|
D | q_hfsc.c | 113 qopt = RTA_DATA(opt); in hfsc_print_opt() 130 st = RTA_DATA(xstats); in hfsc_print_xstats() 244 rsc = RTA_DATA(tb[TCA_HFSC_RSC]); in hfsc_print_class_opt() 250 fsc = RTA_DATA(tb[TCA_HFSC_FSC]); in hfsc_print_class_opt() 256 usc = RTA_DATA(tb[TCA_HFSC_USC]); in hfsc_print_class_opt()
|
D | m_gact.c | 182 p = RTA_DATA(tb[TCA_GACT_PARMS]); in print_gact() 188 pp = RTA_DATA(tb[TCA_GACT_PROB]); in print_gact() 202 struct tcf_t *tm = RTA_DATA(tb[TCA_GACT_TM]); in print_gact()
|
D | m_ife.c | 249 p = RTA_DATA(tb[TCA_IFE_PARMS]); in print_ife() 303 ll_addr_n2a(RTA_DATA(tb[TCA_IFE_DMAC]), in print_ife() 312 ll_addr_n2a(RTA_DATA(tb[TCA_IFE_SMAC]), in print_ife() 321 struct tcf_t *tm = RTA_DATA(tb[TCA_IFE_TM]); in print_ife()
|
D | m_bpf.c | 169 parm = RTA_DATA(tb[TCA_ACT_BPF_PARMS]); in bpf_print_opt() 187 hexstring_n2a(RTA_DATA(tb[TCA_ACT_BPF_TAG]), in bpf_print_opt() 198 struct tcf_t *tm = RTA_DATA(tb[TCA_ACT_BPF_TM]); in bpf_print_opt()
|
/external/iproute2/include/ |
D | libnetlink.h | 147 (parse_rtattr((tb), (max), RTA_DATA(rta), RTA_PAYLOAD(rta))) 150 (parse_rtattr_one(type, RTA_DATA(rta), RTA_PAYLOAD(rta))) 153 ({ data = RTA_PAYLOAD(rta) >= len ? RTA_DATA(rta) : NULL; \ 158 return *(__u8 *)RTA_DATA(rta); in rta_getattr_u8() 162 return *(__u16 *)RTA_DATA(rta); in rta_getattr_u16() 170 return *(__u32 *)RTA_DATA(rta); in rta_getattr_u32() 180 memcpy(&tmp, RTA_DATA(rta), sizeof(__u64)); in rta_getattr_u64() 185 return (const char *)RTA_DATA(rta); in rta_getattr_str()
|
/external/toybox/toys/pending/ |
D | ip.c | 437 memcpy(RTA_DATA(rta), data, alen); in add_string_to_rtattr() 845 snprintf(link->iface, IFNAMSIZ, "%s",(char *) RTA_DATA(attr)); in get_link_info() 851 inet_ntop(AF_INET, RTA_DATA(attr), link->laddr, 64); in get_link_info() 852 else fill_address(RTA_DATA(attr), link->laddr); in get_link_info() 858 inet_ntop(AF_INET, RTA_DATA(attr), link->bcast, 64); in get_link_info() 859 else fill_address(RTA_DATA(attr), link->bcast); in get_link_info() 862 link->mtu = *((int*)(RTA_DATA(attr))); in get_link_info() 865 snprintf(link->qdiscpline, IFNAMSIZ, "%s", (char *) RTA_DATA(attr)); in get_link_info() 868 link->rt_stat = *((struct rtnl_link_stats*) RTA_DATA(attr)); in get_link_info() 871 link->parent = *((int*)(RTA_DATA(attr))); in get_link_info() [all …]
|
/external/strace/tests-m32/ |
D | nlattr_inet_diag_req_v2.c | 139 printf("%p}", RTA_DATA(TEST_NLATTR_nla) + sizeof(op))); in test_inet_diag_bc_s_cond() 196 RTA_DATA(TEST_NLATTR_nla) in test_in_addr() 247 RTA_DATA(TEST_NLATTR_nla) in test_in6_addr() 284 printf("%p}", RTA_DATA(TEST_NLATTR_nla) + sizeof(op))); in test_inet_diag_bc_dev_cond() 328 printf("%p}", RTA_DATA(TEST_NLATTR_nla) + sizeof(op[0]))); in test_inet_diag_bc_s_le() 371 printf("%p}", RTA_DATA(TEST_NLATTR_nla) + sizeof(op))); in test_inet_diag_bc_mark_cond()
|
D | test_nlattr.h | 50 memcpy(RTA_DATA(nla), src, n); in init_nlattr() 138 RTA_DATA(NLMSG_ATTR(nlh, (hdrlen_))))); \ 206 RTA_DATA(NLMSG_ATTR(nlh, (hdrlen_))) \ 250 printf("%p", RTA_DATA(TEST_NLATTR_nla)); \ 335 RTA_DATA(TEST_NLATTR_nla) \
|
/external/strace/tests/ |
D | nlattr_inet_diag_req_v2.c | 139 printf("%p}", RTA_DATA(TEST_NLATTR_nla) + sizeof(op))); in test_inet_diag_bc_s_cond() 196 RTA_DATA(TEST_NLATTR_nla) in test_in_addr() 247 RTA_DATA(TEST_NLATTR_nla) in test_in6_addr() 284 printf("%p}", RTA_DATA(TEST_NLATTR_nla) + sizeof(op))); in test_inet_diag_bc_dev_cond() 328 printf("%p}", RTA_DATA(TEST_NLATTR_nla) + sizeof(op[0]))); in test_inet_diag_bc_s_le() 371 printf("%p}", RTA_DATA(TEST_NLATTR_nla) + sizeof(op))); in test_inet_diag_bc_mark_cond()
|
D | test_nlattr.h | 50 memcpy(RTA_DATA(nla), src, n); in init_nlattr() 138 RTA_DATA(NLMSG_ATTR(nlh, (hdrlen_))))); \ 206 RTA_DATA(NLMSG_ATTR(nlh, (hdrlen_))) \ 250 printf("%p", RTA_DATA(TEST_NLATTR_nla)); \ 335 RTA_DATA(TEST_NLATTR_nla) \
|
/external/strace/tests-mx32/ |
D | nlattr_inet_diag_req_v2.c | 139 printf("%p}", RTA_DATA(TEST_NLATTR_nla) + sizeof(op))); in test_inet_diag_bc_s_cond() 196 RTA_DATA(TEST_NLATTR_nla) in test_in_addr() 247 RTA_DATA(TEST_NLATTR_nla) in test_in6_addr() 284 printf("%p}", RTA_DATA(TEST_NLATTR_nla) + sizeof(op))); in test_inet_diag_bc_dev_cond() 328 printf("%p}", RTA_DATA(TEST_NLATTR_nla) + sizeof(op[0]))); in test_inet_diag_bc_s_le() 371 printf("%p}", RTA_DATA(TEST_NLATTR_nla) + sizeof(op))); in test_inet_diag_bc_mark_cond()
|
D | test_nlattr.h | 50 memcpy(RTA_DATA(nla), src, n); in init_nlattr() 138 RTA_DATA(NLMSG_ATTR(nlh, (hdrlen_))))); \ 206 RTA_DATA(NLMSG_ATTR(nlh, (hdrlen_))) \ 250 printf("%p", RTA_DATA(TEST_NLATTR_nla)); \ 335 RTA_DATA(TEST_NLATTR_nla) \
|