Home
last modified time | relevance | path

Searched refs:RTA_DATA (Results 1 – 25 of 105) sorted by relevance

12345

/external/iproute2/ip/
Dlink_vti.c100 ikey = *(__u32 *)RTA_DATA(vtiinfo[IFLA_VTI_IKEY]); in vti_parse_opt()
103 okey = *(__u32 *)RTA_DATA(vtiinfo[IFLA_VTI_OKEY]); in vti_parse_opt()
106 saddr = *(__u32 *)RTA_DATA(vtiinfo[IFLA_VTI_LOCAL]); in vti_parse_opt()
109 daddr = *(__u32 *)RTA_DATA(vtiinfo[IFLA_VTI_REMOTE]); in vti_parse_opt()
112 link = *(__u8 *)RTA_DATA(vtiinfo[IFLA_VTI_LINK]); in vti_parse_opt()
210 unsigned addr = *(__u32 *)RTA_DATA(tb[IFLA_VTI_REMOTE]); in vti_print_opt()
219 unsigned addr = *(__u32 *)RTA_DATA(tb[IFLA_VTI_LOCAL]); in vti_print_opt()
227 if (tb[IFLA_VTI_LINK] && *(__u32 *)RTA_DATA(tb[IFLA_VTI_LINK])) { in vti_print_opt()
228 unsigned link = *(__u32 *)RTA_DATA(tb[IFLA_VTI_LINK]); in vti_print_opt()
238 inet_ntop(AF_INET, RTA_DATA(tb[IFLA_VTI_IKEY]), s2, sizeof(s2)); in vti_print_opt()
[all …]
Dipaddress.c175 qlen = *(int *)RTA_DATA(tb[IFLA_TXQLEN]); in print_queuelen()
218 return RTA_DATA(linkinfo[IFLA_INFO_KIND]); in parse_link_kind()
234 kind = RTA_DATA(linkinfo[IFLA_INFO_KIND]); in print_linktype()
257 slave_kind = RTA_DATA(linkinfo[IFLA_INFO_SLAVE_KIND]); in print_linktype()
329 vf_mac = RTA_DATA(vf[IFLA_VF_MAC]); in print_vfinfo()
330 vf_vlan = RTA_DATA(vf[IFLA_VF_VLAN]); in print_vfinfo()
331 vf_tx_rate = RTA_DATA(vf[IFLA_VF_TX_RATE]); in print_vfinfo()
342 vf_spoofchk = RTA_DATA(vf[IFLA_VF_SPOOFCHK]); in print_vfinfo()
354 vf_linkstate = RTA_DATA(vf[IFLA_VF_LINK_STATE]); in print_vfinfo()
369 struct ifla_vf_rate *vf_rate = RTA_DATA(vf[IFLA_VF_RATE]); in print_vfinfo()
[all …]
Dlink_vti6.c102 memcpy(&saddr, RTA_DATA(vtiinfo[IFLA_VTI_LOCAL]), sizeof(saddr)); in vti6_parse_opt()
105 memcpy(&daddr, RTA_DATA(vtiinfo[IFLA_VTI_REMOTE]), sizeof(daddr)); in vti6_parse_opt()
209 memcpy(&daddr, RTA_DATA(tb[IFLA_VTI_REMOTE]), sizeof(daddr)); in vti6_print_opt()
217 memcpy(&saddr, RTA_DATA(tb[IFLA_VTI_LOCAL]), sizeof(saddr)); in vti6_print_opt()
224 if (tb[IFLA_VTI_LINK] && *(__u32 *)RTA_DATA(tb[IFLA_VTI_LINK])) { in vti6_print_opt()
225 unsigned link = *(__u32 *)RTA_DATA(tb[IFLA_VTI_LINK]); in vti6_print_opt()
235 inet_ntop(AF_INET, RTA_DATA(tb[IFLA_VTI_IKEY]), s2, sizeof(s2)); in vti6_print_opt()
240 inet_ntop(AF_INET, RTA_DATA(tb[IFLA_VTI_OKEY]), s2, sizeof(s2)); in vti6_print_opt()
Diplink_can.c263 struct can_ctrlmode *cm = RTA_DATA(tb[IFLA_CAN_CTRLMODE]); in can_print_opt()
270 int *state = RTA_DATA(tb[IFLA_CAN_STATE]); in can_print_opt()
278 RTA_DATA(tb[IFLA_CAN_BERR_COUNTER]); in can_print_opt()
284 __u32 *restart_ms = RTA_DATA(tb[IFLA_CAN_RESTART_MS]); in can_print_opt()
290 struct can_bittiming *bt = RTA_DATA(tb[IFLA_CAN_BITTIMING]); in can_print_opt()
303 RTA_DATA(tb[IFLA_CAN_BITTIMING_CONST]); in can_print_opt()
315 RTA_DATA(tb[IFLA_CAN_DATA_BITTIMING]); in can_print_opt()
329 RTA_DATA(tb[IFLA_CAN_DATA_BITTIMING_CONST]); in can_print_opt()
340 struct can_clock *clock = RTA_DATA(tb[IFLA_CAN_CLOCK]); in can_print_opt()
353 stats = RTA_DATA(xstats); in can_print_xstats()
Dipmroute.c93 iif = *(int*)RTA_DATA(tb[RTA_IIF]); in print_mroute()
105 memcpy(&dst.data, RTA_DATA(tb[RTA_DST]), RTA_PAYLOAD(tb[RTA_DST])); in print_mroute()
115 memcpy(&src.data, RTA_DATA(tb[RTA_SRC]), RTA_PAYLOAD(tb[RTA_SRC])); in print_mroute()
129 RTA_DATA(tb[RTA_SRC]), in print_mroute()
137 RTA_DATA(tb[RTA_DST]), in print_mroute()
149 struct rtnexthop *nh = RTA_DATA(tb[RTA_MULTIPATH]); in print_mroute()
174 struct rta_mfc_stats *mfcs = RTA_DATA(tb[RTA_MFC_STATS]); in print_mroute()
Dipnetconf.c84 int *ifindex = (int *)RTA_DATA(tb[NETCONFA_IFINDEX]); in print_netconf()
101 *(int *)RTA_DATA(tb[NETCONFA_FORWARDING])?"on":"off"); in print_netconf()
103 int rp_filter = *(int *)RTA_DATA(tb[NETCONFA_RP_FILTER]); in print_netconf()
116 *(int *)RTA_DATA(tb[NETCONFA_MC_FORWARDING])); in print_netconf()
120 *(int *)RTA_DATA(tb[NETCONFA_PROXY_NEIGH])?"on":"off"); in print_netconf()
Diproute.c202 struct rtvia *via = RTA_DATA(tb[RTA_VIA]); in filter_nlmsg()
214 memcpy(&dst.data, RTA_DATA(tb[RTA_DST]), (r->rtm_dst_len+7)/8); in filter_nlmsg()
219 memcpy(&src.data, RTA_DATA(tb[RTA_SRC]), (r->rtm_src_len+7)/8); in filter_nlmsg()
225 memcpy(&via.data, RTA_DATA(tb[RTA_GATEWAY]), host_len/8); in filter_nlmsg()
228 struct rtvia *rtvia = RTA_DATA(tb[RTA_VIA]); in filter_nlmsg()
237 memcpy(&prefsrc.data, RTA_DATA(tb[RTA_PREFSRC]), host_len/8); in filter_nlmsg()
266 iif = *(int*)RTA_DATA(tb[RTA_IIF]); in filter_nlmsg()
273 oif = *(int*)RTA_DATA(tb[RTA_OIF]); in filter_nlmsg()
280 mark = *(int *)RTA_DATA(tb[RTA_MARK]); in filter_nlmsg()
289 *(int*)RTA_DATA(tb[RTA_PRIORITY]) == -1) in filter_nlmsg()
[all …]
Diproute_lwtunnel.c68 RTA_DATA(tb[MPLS_IPTUNNEL_DST]), in print_encap_mpls()
86 RTA_DATA(tb[LWTUNNEL_IP_SRC]), in print_encap_ip()
93 RTA_DATA(tb[LWTUNNEL_IP_DST]), in print_encap_ip()
112 addr64_n2a(*(__u64 *)RTA_DATA(tb[ILA_ATTR_LOCATOR]), in print_encap_ila()
132 RTA_DATA(tb[LWTUNNEL_IP6_SRC]), in print_encap_ip6()
139 RTA_DATA(tb[LWTUNNEL_IP6_DST]), in print_encap_ip6()
Dlink_gre6.c132 memcpy(&laddr, RTA_DATA(greinfo[IFLA_GRE_LOCAL]), sizeof(laddr)); in gre_parse_opt()
135 memcpy(&raddr, RTA_DATA(greinfo[IFLA_GRE_REMOTE]), sizeof(raddr)); in gre_parse_opt()
321 memcpy(&addr, RTA_DATA(tb[IFLA_GRE_REMOTE]), sizeof(addr)); in gre_print_opt()
331 memcpy(&addr, RTA_DATA(tb[IFLA_GRE_LOCAL]), sizeof(addr)); in gre_print_opt()
375 inet_ntop(AF_INET, RTA_DATA(tb[IFLA_GRE_IKEY]), s2, sizeof(s2)); in gre_print_opt()
380 inet_ntop(AF_INET, RTA_DATA(tb[IFLA_GRE_OKEY]), s2, sizeof(s2)); in gre_print_opt()
Dipxfrm.c694 struct xfrm_mark *m = (struct xfrm_mark *) RTA_DATA(rta); in xfrm_xfrma_print()
701 xfrm_algo_print((struct xfrm_algo *) RTA_DATA(rta), in xfrm_xfrma_print()
707 xfrm_auth_trunc_print((struct xfrm_algo_auth *) RTA_DATA(rta), in xfrm_xfrma_print()
713 xfrm_aead_print((struct xfrm_algo_aead *)RTA_DATA(rta), in xfrm_xfrma_print()
719 xfrm_algo_print((struct xfrm_algo *) RTA_DATA(rta), in xfrm_xfrma_print()
725 xfrm_algo_print((struct xfrm_algo *) RTA_DATA(rta), in xfrm_xfrma_print()
742 e = (struct xfrm_encap_tmpl *) RTA_DATA(tb[XFRMA_ENCAP]); in xfrm_xfrma_print()
768 xfrm_tmpl_print((struct xfrm_user_tmpl *) RTA_DATA(rta), in xfrm_xfrma_print()
780 coa = (xfrm_address_t *)RTA_DATA(tb[XFRMA_COADDR]); in xfrm_xfrma_print()
827 replay = (struct xfrm_replay_state *)RTA_DATA(tb[XFRMA_REPLAY_VAL]); in xfrm_xfrma_print()
[all …]
/external/iproute2/include/
Dlibnetlink.h119 (parse_rtattr((tb), (max), RTA_DATA(rta), RTA_PAYLOAD(rta)))
122 (parse_rtattr_one(type, RTA_DATA(rta), RTA_PAYLOAD(rta)))
125 ({ data = RTA_PAYLOAD(rta) >= len ? RTA_DATA(rta) : NULL; \
130 return *(__u8 *)RTA_DATA(rta); in rta_getattr_u8()
134 return *(__u16 *)RTA_DATA(rta); in rta_getattr_u16()
138 return *(__u32 *)RTA_DATA(rta); in rta_getattr_u32()
143 memcpy(&tmp, RTA_DATA(rta), sizeof(__u64)); in rta_getattr_u64()
148 return (const char *)RTA_DATA(rta); in rta_getattr_str()
/external/iproute2/genl/
Dctrl.c145 __u32 *id = RTA_DATA(tb[CTRL_ATTR_OP_ID]); in print_ctrl_cmds()
150 __u32 *fl = RTA_DATA(tb[CTRL_ATTR_OP_FLAGS]); in print_ctrl_cmds()
166 __u32 *id = RTA_DATA(tb[CTRL_ATTR_MCAST_GRP_ID]); in print_ctrl_grp()
170 char *name = RTA_DATA(tb[CTRL_ATTR_MCAST_GRP_NAME]); in print_ctrl_grp()
217 char *name = RTA_DATA(tb[CTRL_ATTR_FAMILY_NAME]); in print_ctrl()
221 __u16 *id = RTA_DATA(tb[CTRL_ATTR_FAMILY_ID]); in print_ctrl()
225 __u32 *v = RTA_DATA(tb[CTRL_ATTR_VERSION]); in print_ctrl()
230 __u32 *h = RTA_DATA(tb[CTRL_ATTR_HDRSIZE]); in print_ctrl()
234 __u32 *ma = RTA_DATA(tb[CTRL_ATTR_MAXATTR]); in print_ctrl()
/external/iproute2/tc/
Dm_skbedit.c179 p = RTA_DATA(tb[TCA_SKBEDIT_PARMS]); in print_skbedit()
184 queue_mapping = RTA_DATA(tb[TCA_SKBEDIT_QUEUE_MAPPING]); in print_skbedit()
188 priority = RTA_DATA(tb[TCA_SKBEDIT_PRIORITY]); in print_skbedit()
192 mark = RTA_DATA(tb[TCA_SKBEDIT_MARK]); in print_skbedit()
200 struct tcf_t *tm = RTA_DATA(tb[TCA_SKBEDIT_TM]); in print_skbedit()
Dq_netem.c557 memcpy(&qopt, RTA_DATA(opt), sizeof(qopt)); in netem_print_opt()
561 parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt), in netem_print_opt()
567 cor = RTA_DATA(tb[TCA_NETEM_CORR]); in netem_print_opt()
572 reorder = RTA_DATA(tb[TCA_NETEM_REORDER]); in netem_print_opt()
577 corrupt = RTA_DATA(tb[TCA_NETEM_CORRUPT]); in netem_print_opt()
584 gimodel = RTA_DATA(lb[NETEM_LOSS_GI]); in netem_print_opt()
586 gemodel = RTA_DATA(lb[NETEM_LOSS_GE]); in netem_print_opt()
591 rate = RTA_DATA(tb[TCA_NETEM_RATE]); in netem_print_opt()
596 ecn = RTA_DATA(tb[TCA_NETEM_ECN]); in netem_print_opt()
Dm_simple.c174 sel = RTA_DATA(tb[TCA_DEF_PARMS]); in print_simple()
181 simpdata = RTA_DATA(tb[TCA_DEF_DATA]); in print_simple()
189 struct tcf_t *tm = RTA_DATA(tb[TCA_DEF_TM]); in print_simple()
Dq_hfsc.c115 qopt = RTA_DATA(opt); in hfsc_print_opt()
132 st = RTA_DATA(xstats); in hfsc_print_xstats()
252 rsc = RTA_DATA(tb[TCA_HFSC_RSC]); in hfsc_print_class_opt()
258 fsc = RTA_DATA(tb[TCA_HFSC_FSC]); in hfsc_print_class_opt()
264 usc = RTA_DATA(tb[TCA_HFSC_USC]); in hfsc_print_class_opt()
Df_tcindex.c161 shift = *(int *) RTA_DATA(tb[TCA_TCINDEX_SHIFT]); in tcindex_print_opt()
170 fall_through = *(int *) RTA_DATA(tb[TCA_TCINDEX_FALL_THROUGH]); in tcindex_print_opt()
176 RTA_DATA(tb[TCA_TCINDEX_CLASSID]), b1)); in tcindex_print_opt()
Df_flower.c341 fprintf(f, "\n %s %s", name, ll_addr_n2a(RTA_DATA(addr_attr), ETH_ALEN, in flower_print_eth_addr()
345 bits = __mask_bits(RTA_DATA(mask_attr), ETH_ALEN); in flower_print_eth_addr()
347 fprintf(f, "/%s", ll_addr_n2a(RTA_DATA(mask_attr), ETH_ALEN, in flower_print_eth_addr()
421 RTA_DATA(addr_attr), in flower_print_ip_addr()
425 bits = __mask_bits(RTA_DATA(mask_attr), len); in flower_print_ip_addr()
429 RTA_DATA(mask_attr), in flower_print_ip_addr()
Dm_gact.c227 p = RTA_DATA(tb[TCA_GACT_PARMS]); in print_gact()
232 pp = RTA_DATA(tb[TCA_GACT_PROB]); in print_gact()
243 struct tcf_t *tm = RTA_DATA(tb[TCA_GACT_TM]); in print_gact()
Dtc_util.c524 memcpy(&bs, RTA_DATA(tbs[TCA_STATS_BASIC]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_BASIC]), sizeof(bs))); in print_tcstats2_attr()
531 memcpy(&q, RTA_DATA(tbs[TCA_STATS_QUEUE]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_QUEUE]), sizeof(q))); in print_tcstats2_attr()
539 memcpy(&re, RTA_DATA(tbs[TCA_STATS_RATE_EST64]), in print_tcstats2_attr()
547 memcpy(&re, RTA_DATA(tbs[TCA_STATS_RATE_EST]), in print_tcstats2_attr()
555 memcpy(&q, RTA_DATA(tbs[TCA_STATS_QUEUE]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_QUEUE]), sizeof(q))); in print_tcstats2_attr()
582 memcpy(&st, RTA_DATA(tb[TCA_STATS]), MIN(RTA_PAYLOAD(tb[TCA_STATS]), sizeof(st))); in print_tcstats_attr()
Dq_atm.c206 RTA_DATA(tb[TCA_ATM_ADDR]),A2T_PRETTY | A2T_NAME) < in atm_print_opt()
213 const __u8 *hdr = RTA_DATA(tb[TCA_ATM_HDR]); in atm_print_opt()
244 state = *(int *) RTA_DATA(tb[TCA_ATM_STATE]); in atm_print_opt()
/external/iproute2/bridge/
Dmdb.c43 for (i = RTA_DATA(attr); RTA_OK(i, rem); i = RTA_NEXT(i, rem)) { in br_print_router_ports()
44 port_ifindex = RTA_DATA(i); in br_print_router_ports()
80 for (i = RTA_DATA(attr); RTA_OK(i, rem); i = RTA_NEXT(i, rem)) { in br_print_mdb_entry()
81 e = RTA_DATA(i); in br_print_mdb_entry()
114 for (i = RTA_DATA(tb[MDBA_MDB]); RTA_OK(i, rem); i = RTA_NEXT(i, rem)) in print_mdb()
128 i = RTA_DATA(tb[MDBA_ROUTER]); in print_mdb()
129 port_ifindex = RTA_DATA(i); in print_mdb()
/external/toybox/toys/pending/
Dip.c437 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/avahi/avahi-core/
Diface-linux.c121 hw->name = avahi_strndup(RTA_DATA(a), RTA_PAYLOAD(a)); in netlink_callback()
128 hw->mtu = *((unsigned int*) RTA_DATA(a)); in netlink_callback()
138 memcpy(hw->mac_address, RTA_DATA(a), hw->mac_address_size); in netlink_callback()
213 memcpy(rlocal.data.data, RTA_DATA(a), RTA_PAYLOAD(a)); in netlink_callback()
230 memcpy(raddr.data.data, RTA_DATA(a), RTA_PAYLOAD(a)); in netlink_callback()
/external/dhcpcd-6.8.2/
Dif-linux.c423 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()
488 memcpy(&rt->dest.s6_addr, RTA_DATA(rta), in if_copyrt6()
492 memcpy(&rt->gate.s6_addr, RTA_DATA(rta), in if_copyrt6()
497 *(unsigned int *)RTA_DATA(rta)); in if_copyrt6()
500 rt->metric = *(unsigned int *)RTA_DATA(rta); in if_copyrt6()
617 memcpy(&dest.s_addr, RTA_DATA(rta), in link_addr()
[all …]

12345