Searched refs:RTA_DATA (Results 1 - 25 of 80) sorted by relevance

1234

/external/iproute2/ip/
H A Diplink_can.c202 struct can_ctrlmode *cm = RTA_DATA(tb[IFLA_CAN_CTRLMODE]);
209 int *state = RTA_DATA(tb[IFLA_CAN_STATE]);
217 RTA_DATA(tb[IFLA_CAN_BERR_COUNTER]);
223 __u32 *restart_ms = RTA_DATA(tb[IFLA_CAN_RESTART_MS]);
229 struct can_bittiming *bt = RTA_DATA(tb[IFLA_CAN_BITTIMING]);
242 RTA_DATA(tb[IFLA_CAN_BITTIMING_CONST]);
253 struct can_clock *clock = RTA_DATA(tb[IFLA_CAN_CLOCK]);
266 stats = RTA_DATA(xstats);
H A Dipprefix.c78 pfx = (struct in6_addr *)RTA_DATA(tb[PREFIX_ADDRESS]);
95 pc = (struct prefix_cacheinfo *)RTA_DATA(tb[PREFIX_CACHEINFO]);
H A Dipaddress.c149 qlen = *(int *)RTA_DATA(tb[IFLA_TXQLEN]);
195 kind = RTA_DATA(linkinfo[IFLA_INFO_KIND]);
237 vf_mac = RTA_DATA(vf[IFLA_VF_MAC]);
238 vf_vlan = RTA_DATA(vf[IFLA_VF_VLAN]);
239 vf_tx_rate = RTA_DATA(vf[IFLA_VF_TX_RATE]);
250 vf_spoofchk = RTA_DATA(vf[IFLA_VF_SPOOFCHK]);
387 fnmatch(filter.label, RTA_DATA(tb[IFLA_IFNAME]), 0))
391 int group = *(int*)RTA_DATA(tb[IFLA_GROUP]);
404 int iflink = *(int*)RTA_DATA(tb[IFLA_LINK]);
418 fprintf(fp, "mtu %u ", *(int*)RTA_DATA(t
[all...]
H A Diplink_vlan.c153 for (i = RTA_DATA(attr); RTA_OK(i, rem); i = RTA_NEXT(i, rem)) {
154 m = RTA_DATA(i);
191 flags = RTA_DATA(tb[IFLA_VLAN_FLAGS]);
H A Diproute.c191 memcpy(&dst.data, RTA_DATA(tb[RTA_DST]), (r->rtm_dst_len+7)/8);
196 memcpy(&src.data, RTA_DATA(tb[RTA_SRC]), (r->rtm_src_len+7)/8);
202 memcpy(&via.data, RTA_DATA(tb[RTA_GATEWAY]), host_len/8);
208 memcpy(&prefsrc.data, RTA_DATA(tb[RTA_PREFSRC]), host_len/8);
237 iif = *(int*)RTA_DATA(tb[RTA_IIF]);
244 oif = *(int*)RTA_DATA(tb[RTA_OIF]);
251 mark = *(int *)RTA_DATA(tb[RTA_MARK]);
260 *(int*)RTA_DATA(tb[RTA_PRIORITY]) == -1)
339 RTA_DATA(tb[RTA_DST]),
346 RTA_DATA(t
[all...]
H A Diprule.c79 fprintf(fp, "%u:\t", *(unsigned*)RTA_DATA(tb[FRA_PRIORITY]));
90 RTA_DATA(tb[FRA_SRC]),
97 RTA_DATA(tb[FRA_SRC]),
111 RTA_DATA(tb[FRA_DST]),
118 RTA_DATA(tb[FRA_DST]),
189 RTA_DATA(tb[RTA_GATEWAY]),
/external/iproute2/include/
H A Dlibnetlink.h68 (parse_rtattr((tb), (max), RTA_DATA(rta), RTA_PAYLOAD(rta)))
71 ({ data = RTA_PAYLOAD(rta) >= len ? RTA_DATA(rta) : NULL; \
76 return *(__u8 *)RTA_DATA(rta);
80 return *(__u16 *)RTA_DATA(rta);
84 return *(__u32 *)RTA_DATA(rta);
89 memcpy(&tmp, RTA_DATA(rta), sizeof(__u64));
94 return (const char *)RTA_DATA(rta);
/external/iproute2/genl/
H A Dctrl.c145 __u32 *id = RTA_DATA(tb[CTRL_ATTR_OP_ID]);
150 __u32 *fl = RTA_DATA(tb[CTRL_ATTR_OP_FLAGS]);
166 __u32 *id = RTA_DATA(tb[CTRL_ATTR_MCAST_GRP_ID]);
170 char *name = RTA_DATA(tb[CTRL_ATTR_MCAST_GRP_NAME]);
216 char *name = RTA_DATA(tb[CTRL_ATTR_FAMILY_NAME]);
220 __u16 *id = RTA_DATA(tb[CTRL_ATTR_FAMILY_ID]);
224 __u32 *v = RTA_DATA(tb[CTRL_ATTR_VERSION]);
229 __u32 *h = RTA_DATA(tb[CTRL_ATTR_HDRSIZE]);
233 __u32 *ma = RTA_DATA(tb[CTRL_ATTR_MAXATTR]);
/external/iproute2/tc/
H A Dm_skbedit.c182 queue_mapping = RTA_DATA(tb[TCA_SKBEDIT_QUEUE_MAPPING]);
186 priority = RTA_DATA(tb[TCA_SKBEDIT_PRIORITY]);
190 mark = RTA_DATA(tb[TCA_SKBEDIT_MARK]);
196 struct tcf_t *tm = RTA_DATA(tb[TCA_SKBEDIT_TM]);
H A Dq_multiq.c73 qopt = RTA_DATA(opt);
H A Df_tcindex.c153 shift = *(int *) RTA_DATA(tb[TCA_TCINDEX_SHIFT]);
162 fall_through = *(int *) RTA_DATA(tb[TCA_TCINDEX_FALL_THROUGH]);
168 RTA_DATA(tb[TCA_TCINDEX_CLASSID]), b1));
H A Dm_gact.c226 p = RTA_DATA(tb[TCA_GACT_PARMS]);
231 pp = RTA_DATA(tb[TCA_GACT_PROB]);
242 struct tcf_t *tm = RTA_DATA(tb[TCA_GACT_TM]);
H A Dq_netem.c515 memcpy(&qopt, RTA_DATA(opt), sizeof(qopt));
519 parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt),
525 cor = RTA_DATA(tb[TCA_NETEM_CORR]);
530 reorder = RTA_DATA(tb[TCA_NETEM_REORDER]);
535 corrupt = RTA_DATA(tb[TCA_NETEM_CORRUPT]);
542 gemodel = RTA_DATA(lb[NETEM_LOSS_GI]);
544 gemodel = RTA_DATA(lb[NETEM_LOSS_GE]);
549 rate = RTA_DATA(tb[TCA_NETEM_RATE]);
H A Dq_fifo.c70 qopt = RTA_DATA(opt);
H A Dq_hfsc.c115 qopt = RTA_DATA(opt);
132 st = RTA_DATA(xstats);
252 rsc = RTA_DATA(tb[TCA_HFSC_RSC]);
258 fsc = RTA_DATA(tb[TCA_HFSC_FSC]);
264 usc = RTA_DATA(tb[TCA_HFSC_USC]);
H A Dm_csum.c202 sel = RTA_DATA(tb[TCA_CSUM_PARMS]);
233 struct tcf_t *tm = RTA_DATA(tb[TCA_CSUM_TM]);
H A Dm_nat.c186 sel = RTA_DATA(tb[TCA_NAT_PARMS]);
200 struct tcf_t *tm = RTA_DATA(tb[TCA_NAT_TM]);
H A Dq_sfb.c155 qopt = RTA_DATA(tb[TCA_SFB_PARMS]);
183 st = RTA_DATA(xstats);
H A Dtc_stab.c128 memcpy(&s, RTA_DATA(tb[TCA_STAB_BASE]),
148 __u16 *data = RTA_DATA(tb[TCA_STAB_DATA]);
/external/android-clat/
H A Dgetaddr.c64 memcpy(&targ_p->ip.ip6, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr));
71 memcpy(&targ_p->ip.ip4, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr));
/external/dhcpcd/
H A Dif-linux.c262 memcpy(&rt.dest.s_addr, RTA_DATA(rta),
266 memcpy(&rt.gate.s_addr, RTA_DATA(rta),
270 idx = *(int *)RTA_DATA(rta);
275 metric = *(int *)RTA_DATA(rta);
324 memcpy(&dest.s_addr, RTA_DATA(rta),
329 memcpy(&addr.s_addr, RTA_DATA(rta),
376 strlcpy(ifn, RTA_DATA(rta), sizeof(ifn));
452 memcpy(RTA_DATA(rta), data, alen);
472 memcpy(RTA_DATA(rta), &data, sizeof(data));
/external/iproute2/lib/
H A Dll_map.c87 memcpy(im->addr, RTA_DATA(tb[IFLA_ADDRESS]), alen);
92 strcpy(im->name, RTA_DATA(tb[IFLA_IFNAME]));
/external/wpa_supplicant_8/hostapd/src/drivers/
H A Dnetlink.c201 *((char *) RTA_DATA(rta)) = linkmode;
211 *((char *) RTA_DATA(rta)) = operstate;
/external/wpa_supplicant_8/src/drivers/
H A Dnetlink.c201 *((char *) RTA_DATA(rta)) = linkmode;
211 *((char *) RTA_DATA(rta)) = operstate;
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/
H A Dnetlink.c201 *((char *) RTA_DATA(rta)) = linkmode;
211 *((char *) RTA_DATA(rta)) = operstate;

Completed in 2397 milliseconds

1234