Home
last modified time | relevance | path

Searched refs:rta_len (Results 1 – 25 of 68) sorted by relevance

123

/external/wpa_supplicant_8/src/drivers/
Dpriv_netlink.h65 ((len) > 0 && (rta)->rta_len >= sizeof(struct rtattr) && \
66 (rta)->rta_len <= (len))
68 ((attrlen) -= RTA_ALIGN((rta)->rta_len), \
69 (struct rtattr *) (((char *)(rta)) + RTA_ALIGN((rta)->rta_len)))
73 #define RTA_PAYLOAD(rta) ((int) ((rta)->rta_len) - RTA_LENGTH(0))
105 unsigned short rta_len; member
Ddriver_wext.c593 int attrlen, rta_len; in wpa_driver_wext_own_ifname() local
599 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_own_ifname()
602 if (os_strcmp(((char *) attr) + rta_len, drv->ifname) in wpa_driver_wext_own_ifname()
637 int attrlen, rta_len; in wpa_driver_wext_event_rtm_newlink() local
698 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_event_rtm_newlink()
702 drv, ((char *) attr) + rta_len, in wpa_driver_wext_event_rtm_newlink()
703 attr->rta_len - rta_len); in wpa_driver_wext_event_rtm_newlink()
706 ((char *) attr) + rta_len, in wpa_driver_wext_event_rtm_newlink()
707 attr->rta_len - rta_len, 0); in wpa_driver_wext_event_rtm_newlink()
718 int attrlen, rta_len; in wpa_driver_wext_event_rtm_dellink() local
[all …]
Dnetlink.c200 rta->rta_len = RTA_LENGTH(sizeof(char)); in netlink_send_oper_ifla()
209 rta->rta_len = RTA_LENGTH(sizeof(char)); in netlink_send_oper_ifla()
Ddriver_hostap.c872 int attrlen, rta_len; in hostapd_wireless_event_rtm_newlink() local
881 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in hostapd_wireless_event_rtm_newlink()
885 drv, ((char *) attr) + rta_len, in hostapd_wireless_event_rtm_newlink()
886 attr->rta_len - rta_len); in hostapd_wireless_event_rtm_newlink()
/external/android-clat/
Dgetaddr.c47 int rta_len; in getaddr_cb() local
59 rta_len = RTM_PAYLOAD(nlmsg_hdr(msg)); in getaddr_cb()
60 for (; RTA_OK(rta_p, rta_len); rta_p = RTA_NEXT(rta_p, rta_len)) { in getaddr_cb()
64 memcpy(&targ_p->ip.ip6, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr)); in getaddr_cb()
71 memcpy(&targ_p->ip.ip4, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr)); in getaddr_cb()
/external/iproute2/lib/
Dlibnetlink.c126 req.ext_req.rta_len = RTA_LENGTH(sizeof(__u32)); in rtnl_wilddump_req_filter()
662 rta->rta_len = len; in addattr_l()
691 nest->rta_len = (void *)NLMSG_TAIL(n) - (void *)nest; in addattr_nest_end()
707 struct rtattr *nest = (void *)start + NLMSG_ALIGN(start->rta_len); in addattr_nest_compat_end()
709 start->rta_len = (void *)NLMSG_TAIL(n) - (void *)start; in addattr_nest_compat_end()
719 if (RTA_ALIGN(rta->rta_len) + len > maxlen) { in rta_addattr32()
723 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr32()
725 subrta->rta_len = len; in rta_addattr32()
727 rta->rta_len = NLMSG_ALIGN(rta->rta_len) + len; in rta_addattr32()
737 if (RTA_ALIGN(rta->rta_len) + RTA_ALIGN(len) > maxlen) { in rta_addattr_l()
[all …]
/external/libnl/include/linux/
Drtnetlink.h126 unsigned short rta_len; member
135 (rta)->rta_len >= sizeof(struct rtattr) && \
136 (rta)->rta_len <= (len))
137 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \
138 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
142 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
/external/kernel-headers/original/uapi/linux/
Drtnetlink.h157 unsigned short rta_len; member
166 (rta)->rta_len >= sizeof(struct rtattr) && \
167 (rta)->rta_len <= (len))
168 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \
169 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
173 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
/external/iproute2/include/linux/
Drtnetlink.h157 unsigned short rta_len; member
166 (rta)->rta_len >= sizeof(struct rtattr) && \
167 (rta)->rta_len <= (len))
168 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \
169 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
173 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
/external/iproute2/tc/
Dm_action.c237 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in parse_action()
248 tail2->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail2; in parse_action()
478 tail2->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail2; in tc_action_gd()
482 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail; in tc_action_gd()
531 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail; in tc_action_modify()
585 tail2->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail2; in tc_act_list_or_flush()
586 tail->rta_len = (void *) NLMSG_TAIL(&req.n) - (void *) tail; in tc_act_list_or_flush()
Dq_dsmark.c80 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in dsmark_parse_opt()
126 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in dsmark_parse_class_opt()
Dm_ematch.c221 tail->rta_len = (void*) NLMSG_TAIL(n) - (void*) tail; in parse_tree()
356 tail_list->rta_len = (void*) NLMSG_TAIL(n) - (void*) tail_list; in parse_ematch()
357 tail->rta_len = (void*) NLMSG_TAIL(n) - (void*) tail; in parse_ematch()
Dq_qfq.c89 tail->rta_len = (void *)NLMSG_TAIL(n) - (void *)tail; in qfq_parse_class_opt()
Dq_drr.c80 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *)tail; in drr_parse_class_opt()
Df_cgroup.c79 tail->rta_len = (((void*)n)+n->nlmsg_len) - (void*)tail; in cgroup_parse_opt()
Dq_gred.c116 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in init_gred()
266 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in gred_parse_opt()
Dm_simple.c152 tail->rta_len = (char *)NLMSG_TAIL(n) - (char *)tail; in parse_simple()
Dm_connmark.c124 tail->rta_len = (char *)NLMSG_TAIL(n) - (char *)tail; in parse_connmark()
Df_basic.c105 tail->rta_len = (((void*)n)+n->nlmsg_len) - (void*)tail; in basic_parse_opt()
Dq_htb.c108 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in htb_parse_opt()
262 tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; in htb_parse_class_opt()
/external/strace/
Dsocketutils.c243 int rta_len = data_len - NLMSG_LENGTH(sizeof(*diag_msg)); in unix_parse_response() local
254 RTA_OK(attr, rta_len); in unix_parse_response()
255 attr = RTA_NEXT(attr, rta_len)) { in unix_parse_response()
/external/wpa_supplicant_8/src/ap/
Dvlan_full.c590 int attrlen, nlmsg_len, rta_len; in vlan_read_ifnames() local
608 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in vlan_read_ifnames()
611 int n = attr->rta_len - rta_len; in vlan_read_ifnames()
617 os_memcpy(ifname, ((char *) attr) + rta_len, n); in vlan_read_ifnames()
/external/dhcpcd-6.8.2/
Dif-linux.c820 if (hwaddr->rta_len == RTA_LENGTH(l)) in link_netlink()
889 rta->rta_len = len; in add_attr_l()
911 rta->rta_len = len; in add_attr_32()
1505 if (RTA_ALIGN(rta->rta_len) + len > maxlen) { in rta_add_attr_32()
1511 (((char*)rta) + RTA_ALIGN(rta->rta_len)); in rta_add_attr_32()
1513 subrta->rta_len = len; in rta_add_attr_32()
1515 rta->rta_len = (unsigned short)(NLMSG_ALIGN(rta->rta_len) + len); in rta_add_attr_32()
1580 metrics->rta_len = RTA_LENGTH(0); in if_route6()
1700 nest->rta_len = (unsigned short)((char *)NLMSG_TAIL(n) - (char *)nest); in add_attr_nest_end()
/external/iproute2/ip/
Dlink_veth.c83 data->rta_len = (void *)NLMSG_TAIL(hdr) - (void *)data; in veth_parse_opt()
Diproute.c773 int len = rta->rta_len; in parse_one_nh()
776 rtnh->rtnh_len += rta->rta_len - len; in parse_one_nh()
793 rta->rta_len = RTA_LENGTH(0); in parse_nexthops()
807 rta->rta_len += rtnh->rtnh_len; in parse_nexthops()
812 if (rta->rta_len > RTA_LENGTH(0)) in parse_nexthops()
853 mxrta->rta_len = RTA_LENGTH(0); in iproute_modify()
1130 rta->rta_len = RTA_LENGTH(0); in iproute_modify()
1134 if (rta->rta_len > RTA_LENGTH(0)) in iproute_modify()
1180 if (mxrta->rta_len > RTA_LENGTH(0)) { in iproute_modify()

123