Searched defs:rta (Results 1 - 20 of 20) sorted by relevance

/external/iproute2/tc/
H A Dtc_stab.c119 void print_size_table(FILE *fp, const char *prefix, struct rtattr *rta) argument
124 parse_rtattr_nested(tb, TCA_STAB_MAX, rta);
H A Dem_meta.c437 static inline int print_value(FILE *fd, int type, struct rtattr *rta) argument
439 if (rta == NULL) {
446 if (RTA_PAYLOAD(rta) < sizeof(__u32)) {
451 fprintf(fd, "%d", rta_getattr_u32(rta));
455 print_binary(fd, RTA_DATA(rta), RTA_PAYLOAD(rta));
462 static int print_object(FILE *fd, struct tcf_meta_val *obj, struct rtattr *rta) argument
469 return print_value(fd, type, rta);
483 if (rta) {
484 if (RTA_PAYLOAD(rta) < sizeo
[all...]
H A Dm_ematch.c443 struct rtattr *rta)
453 if (parse_rtattr_nested(tb, hdr->nmatches, rta) < 0)
467 int print_ematch(FILE *fd, const struct rtattr *rta) argument
472 if (parse_rtattr_nested(tb, TCA_EMATCH_TREE_MAX, rta) < 0)
442 print_ematch_list(FILE *fd, struct tcf_ematch_tree_hdr *hdr, struct rtattr *rta) argument
H A Dtc_util.c467 void print_tcstats2_attr(FILE *fp, struct rtattr *rta, char *prefix, struct rtattr **xstats) argument
472 parse_rtattr_nested(tbs, TCA_STATS_MAX, rta);
/external/dnsmasq/src/
H A Dnetlink.c189 struct rtattr *rta = IFA_RTA(ifa); local
200 while (RTA_OK(rta, len1))
202 if (rta->rta_type == IFA_LOCAL)
203 addr = *((struct in_addr *)(rta+1));
204 else if (rta->rta_type == IFA_BROADCAST)
205 broadcast = *((struct in_addr *)(rta+1));
207 rta = RTA_NEXT(rta, len1);
218 while (RTA_OK(rta, len1))
220 if (rta
[all...]
/external/iproute2/include/
H A Dlibnetlink.h60 extern int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data);
61 extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, const void *data, int alen);
63 extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len);
64 extern int parse_rtattr_byindex(struct rtattr *tb[], int max, struct rtattr *rta, int len);
65 extern int __parse_rtattr_nested_compat(struct rtattr *tb[], int max, struct rtattr *rta, int len);
67 #define parse_rtattr_nested(tb, max, rta) \
68 (parse_rtattr((tb), (max), RTA_DATA(rta), RTA_PAYLOAD(rta)))
70 #define parse_rtattr_nested_compat(tb, max, rta, data, len) \
71 ({ data = RTA_PAYLOAD(rta) >
74 rta_getattr_u8(const struct rtattr *rta) argument
78 rta_getattr_u16(const struct rtattr *rta) argument
82 rta_getattr_u32(const struct rtattr *rta) argument
86 rta_getattr_u64(const struct rtattr *rta) argument
92 rta_getattr_str(const struct rtattr *rta) argument
[all...]
/external/wpa_supplicant_8/hostapd/src/drivers/
H A Dnetlink.c177 struct rtattr *rta; local
196 rta = aliasing_hide_typecast(
199 rta->rta_type = IFLA_LINKMODE;
200 rta->rta_len = RTA_LENGTH(sizeof(char));
201 *((char *) RTA_DATA(rta)) = linkmode;
206 rta = aliasing_hide_typecast(
209 rta->rta_type = IFLA_OPERSTATE;
210 rta->rta_len = RTA_LENGTH(sizeof(char));
211 *((char *) RTA_DATA(rta)) = operstate;
/external/wpa_supplicant_8/src/drivers/
H A Dnetlink.c177 struct rtattr *rta; local
196 rta = aliasing_hide_typecast(
199 rta->rta_type = IFLA_LINKMODE;
200 rta->rta_len = RTA_LENGTH(sizeof(char));
201 *((char *) RTA_DATA(rta)) = linkmode;
206 rta = aliasing_hide_typecast(
209 rta->rta_type = IFLA_OPERSTATE;
210 rta->rta_len = RTA_LENGTH(sizeof(char));
211 *((char *) RTA_DATA(rta)) = operstate;
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/
H A Dnetlink.c177 struct rtattr *rta; local
196 rta = aliasing_hide_typecast(
199 rta->rta_type = IFLA_LINKMODE;
200 rta->rta_len = RTA_LENGTH(sizeof(char));
201 *((char *) RTA_DATA(rta)) = linkmode;
206 rta = aliasing_hide_typecast(
209 rta->rta_type = IFLA_OPERSTATE;
210 rta->rta_len = RTA_LENGTH(sizeof(char));
211 *((char *) RTA_DATA(rta)) = operstate;
/external/chromium_org/third_party/webrtc/base/
H A Difaddrs-android.cc174 rtattr* rta = IFA_RTA(address_msg); local
176 while (RTA_OK(rta, payload_len)) {
177 if (rta->rta_type == IFA_ADDRESS) {
187 if (populate_ifaddrs(newest, address_msg, RTA_DATA(rta),
188 RTA_PAYLOAD(rta)) != 0) {
196 rta = RTA_NEXT(rta, payload_len);
/external/dhcpcd/
H A Dif-linux.c232 struct rtattr *rta; local
251 rta = (struct rtattr *) ((char *)rtm + NLMSG_ALIGN(sizeof(*rtm)));
259 while (RTA_OK(rta, len)) {
260 switch (rta->rta_type) {
262 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);
278 rta = RTA_NEXT(rta, le
293 struct rtattr *rta; local
343 struct rtattr *rta; local
442 struct rtattr *rta; local
462 struct rtattr *rta; local
[all...]
/external/dnsmasq/contrib/wrt/
H A Ddhcp_release.c225 struct rtattr *rta; local
235 for (rta = IFA_RTA(ifa); RTA_OK(rta, len1); rta = RTA_NEXT(rta, len1))
236 if (rta->rta_type == IFA_LOCAL)
237 addr = *((struct in_addr *)(rta+1));
/external/iproute2/ip/
H A Dxfrm_policy.c467 struct rtattr * rta; local
503 rta = XFRMPID_RTA(xpid);
505 rta = XFRMPEXP_RTA(xpexp);
507 rta = XFRMP_RTA(xpinfo);
509 parse_rtattr(tb, XFRMA_MAX, rta, len);
907 struct rtattr * rta; local
917 rta = XFRMSAPD_RTA(f);
918 parse_rtattr(tb, XFRMA_SPD_MAX, rta, len);
H A Dxfrm_state.c734 struct rtattr * rta; local
779 rta = XFRMSID_RTA(xsid);
781 rta = XFRMEXP_RTA(xexp);
783 rta = XFRMS_RTA(xsinfo);
785 parse_rtattr(tb, XFRMA_MAX, rta, len);
1065 struct rtattr *rta; local
1076 rta = XFRMSAPD_RTA(f);
1077 parse_rtattr(tb, XFRMA_SAD_MAX, rta, len);
H A Diproute.c631 int parse_one_nh(struct rtattr *rta, struct rtnexthop *rtnh, int *argcp, char ***argvp) argument
639 rta_addattr32(rta, 4096, RTA_GATEWAY, get_addr32(*argv));
660 rta_addattr32(rta, 4096, RTA_FLOW, realm);
673 struct rtattr *rta = (void*)buf; local
676 rta->rta_type = RTA_MULTIPATH;
677 rta->rta_len = RTA_LENGTH(0);
678 rtnh = RTA_DATA(rta);
691 rta->rta_len += rtnh->rtnh_len;
692 parse_one_nh(rta, rtnh, &argc, &argv);
696 if (rta
[all...]
H A Dipxfrm.c698 struct rtattr *rta = tb[XFRMA_MARK]; local
699 struct xfrm_mark *m = (struct xfrm_mark *) RTA_DATA(rta);
704 struct rtattr *rta = tb[XFRMA_ALG_AUTH]; local
705 xfrm_algo_print((struct xfrm_algo *) RTA_DATA(rta),
706 XFRMA_ALG_AUTH, RTA_PAYLOAD(rta), fp, prefix);
710 struct rtattr *rta = tb[XFRMA_ALG_AUTH_TRUNC]; local
711 xfrm_auth_trunc_print((struct xfrm_algo_auth *) RTA_DATA(rta),
712 RTA_PAYLOAD(rta), fp, prefix);
716 struct rtattr *rta = tb[XFRMA_ALG_AEAD]; local
717 xfrm_aead_print((struct xfrm_algo_aead *)RTA_DATA(rta),
722 struct rtattr *rta = tb[XFRMA_ALG_CRYPT]; local
728 struct rtattr *rta = tb[XFRMA_ALG_COMP]; local
771 struct rtattr *rta = tb[XFRMA_TMPL]; local
[all...]
/external/iproute2/lib/
H A Dlibnetlink.c557 struct rtattr *rta; local
563 rta = NLMSG_TAIL(n);
564 rta->rta_type = type;
565 rta->rta_len = len;
566 memcpy(RTA_DATA(rta), data, alen);
617 int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data) argument
622 if (RTA_ALIGN(rta->rta_len) + len > maxlen) {
626 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len));
630 rta
634 rta_addattr_l(struct rtattr *rta, int maxlen, int type, const void *data, int alen) argument
652 parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len) argument
665 parse_rtattr_byindex(struct rtattr *tb[], int max, struct rtattr *rta, int len) argument
680 __parse_rtattr_nested_compat(struct rtattr *tb[], int max, struct rtattr *rta, int len) argument
[all...]
/external/ipsec-tools/src/racoon/
H A Dgrabmyaddr.c113 static int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len) argument
115 while (RTA_OK(rta, len)) {
116 if (rta->rta_type <= max)
117 tb[rta->rta_type] = rta;
118 rta = RTA_NEXT(rta,len);
/external/iputils/ninfod/
H A Dni_ifaddrs.c387 struct rtattr *rta; local
433 for (rta = (struct rtattr *) (((char *) NLMSG_DATA(nlh)) +
435 RTA_OK(rta, rtasize);
436 rta = RTA_NEXT(rta, rtasize)) {
437 void *rtadata = RTA_DATA(rta);
438 size_t rtapayload = RTA_PAYLOAD(rta);
444 switch (rta->rta_type) {
/external/iproute2/misc/
H A Dss.c1500 struct rtattr rta; local
1535 rta.rta_type = INET_DIAG_REQ_BYTECODE;
1536 rta.rta_len = RTA_LENGTH(bclen);
1537 iov[1] = (struct iovec){ &rta, sizeof(rta) };

Completed in 220 milliseconds