Home
last modified time | relevance | path

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

12

/third_party/wpa_supplicant/wpa_supplicant-2.9/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.c582 int attrlen, rta_len; in wpa_driver_wext_own_ifname() local
588 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_own_ifname()
591 if (os_strcmp(((char *) attr) + rta_len, drv->ifname) in wpa_driver_wext_own_ifname()
626 int attrlen, rta_len; in wpa_driver_wext_event_rtm_newlink() local
687 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_event_rtm_newlink()
691 drv, ((char *) attr) + rta_len, in wpa_driver_wext_event_rtm_newlink()
692 attr->rta_len - rta_len); in wpa_driver_wext_event_rtm_newlink()
695 ((char *) attr) + rta_len, in wpa_driver_wext_event_rtm_newlink()
696 attr->rta_len - rta_len, 0); in wpa_driver_wext_event_rtm_newlink()
707 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.c877 int attrlen, rta_len; in hostapd_wireless_event_rtm_newlink() local
886 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in hostapd_wireless_event_rtm_newlink()
890 drv, ((char *) attr) + rta_len, in hostapd_wireless_event_rtm_newlink()
891 attr->rta_len - rta_len); in hostapd_wireless_event_rtm_newlink()
Ddriver_atheros.c1567 int attrlen, rta_len; in atheros_wireless_event_rtm_newlink() local
1576 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in atheros_wireless_event_rtm_newlink()
1580 drv, ((char *) attr) + rta_len, in atheros_wireless_event_rtm_newlink()
1581 attr->rta_len - rta_len); in atheros_wireless_event_rtm_newlink()
Ddriver_nl80211.c950 int attrlen, rta_len; in wpa_driver_nl80211_own_ifname() local
956 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_nl80211_own_ifname()
959 if (os_strcmp(((char *) attr) + rta_len, in wpa_driver_nl80211_own_ifname()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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.c582 int attrlen, rta_len; in wpa_driver_wext_own_ifname() local
588 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_own_ifname()
591 if (os_strcmp(((char *) attr) + rta_len, drv->ifname) in wpa_driver_wext_own_ifname()
626 int attrlen, rta_len; in wpa_driver_wext_event_rtm_newlink() local
687 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in wpa_driver_wext_event_rtm_newlink()
691 drv, ((char *) attr) + rta_len, in wpa_driver_wext_event_rtm_newlink()
692 attr->rta_len - rta_len); in wpa_driver_wext_event_rtm_newlink()
695 ((char *) attr) + rta_len, in wpa_driver_wext_event_rtm_newlink()
696 attr->rta_len - rta_len, 0); in wpa_driver_wext_event_rtm_newlink()
707 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.c881 int attrlen, rta_len; in hostapd_wireless_event_rtm_newlink() local
890 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in hostapd_wireless_event_rtm_newlink()
894 drv, ((char *) attr) + rta_len, in hostapd_wireless_event_rtm_newlink()
895 attr->rta_len - rta_len); in hostapd_wireless_event_rtm_newlink()
Ddriver_atheros.c1556 int attrlen, rta_len; in atheros_wireless_event_rtm_newlink() local
1565 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in atheros_wireless_event_rtm_newlink()
1569 drv, ((char *) attr) + rta_len, in atheros_wireless_event_rtm_newlink()
1570 attr->rta_len - rta_len); in atheros_wireless_event_rtm_newlink()
/third_party/musl/src/network/
Dnetlink.h37 unsigned short rta_len; member
86 #define RTA_DATALEN(rta) ((rta)->rta_len-sizeof(struct rtattr))
87 #define RTA_DATAEND(rta) ((char*)(rta)+(rta)->rta_len)
88 #define RTA_NEXT(rta) (struct rtattr*)((char*)(rta)+NETLINK_ALIGN((rta)->rta_len))
/third_party/ltp/lib/
Dtst_rtnetlink.c301 attr->rta_len = RTA_LENGTH(len); in tst_rtnl_add_attr()
303 ctx->curmsg->nlmsg_len = size + attr->rta_len; in tst_rtnl_add_attr()
304 ctx->datalen = NLMSG_ALIGN(ctx->datalen) + attr->rta_len; in tst_rtnl_add_attr()
355 attr->rta_len = ctx->datalen - offset; in tst_rtnl_add_attr_list()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dvlan_full.c639 int attrlen, nlmsg_len, rta_len; in vlan_read_ifnames() local
657 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in vlan_read_ifnames()
660 int n = attr->rta_len - rta_len; in vlan_read_ifnames()
666 os_memcpy(ifname, ((char *) attr) + rta_len, n); in vlan_read_ifnames()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dvlan_full.c639 int attrlen, nlmsg_len, rta_len; in vlan_read_ifnames() local
657 rta_len = RTA_ALIGN(sizeof(struct rtattr)); in vlan_read_ifnames()
660 int n = attr->rta_len - rta_len; in vlan_read_ifnames()
666 os_memcpy(ifname, ((char *) attr) + rta_len, n); in vlan_read_ifnames()
/third_party/ltp/testcases/kernel/crypto/
Daf_alg06.c30 .attr.rta_len = sizeof(key), in run()
/third_party/ltp/testcases/kernel/containers/share/
Dns_ifmove.c113 rta->rta_len = RTA_LENGTH(sizeof(int)); in main()
/third_party/toybox/toys/pending/
Dip.c458 if (RTA_ALIGN(rta->rta_len) + RTA_ALIGN(len) > maxlen) { in add_varlen_rtattr_to_buffer()
461 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len)); in add_varlen_rtattr_to_buffer()
463 subrta->rta_len = len; in add_varlen_rtattr_to_buffer()
467 rta->rta_len = NLMSG_ALIGN(rta->rta_len) + RTA_ALIGN(len); in add_varlen_rtattr_to_buffer()
487 rta->rta_len = len; in add_string_to_rtattr()
650 data->rta_len = (void *)NLMSG_TAIL(&request.mhdr) - (void *)data; in linkupdate()
652 attr->rta_len = (void *)NLMSG_TAIL(&request.mhdr) - (void *)attr; in linkupdate()
2037 mxrta->rta_len = RTA_LENGTH(0); in route_update()
2107 if (mxrta->rta_len > RTA_LENGTH(0)) { in route_update()
2341 if (tvar) error_msg("deficit %d, rtalen = %d!", tvar, rta->rta_len); in show_rules()
/third_party/libwebsockets/lib/roles/netlink/
Dops-netlink.c232 ra->rta_len); in rops_handle_POLLIN_netlink()
/third_party/ltp/doc/
Dnetwork-c-api.txt327 +data+ as part of the attribute payload. +struct rtattr.rta_len+ will be
/third_party/rust/crates/linux-raw-sys/src/riscv64/
Dnetlink.rs2290 pub rta_len: crate::ctypes::c_ushort, field
/third_party/rust/crates/linux-raw-sys/src/sparc/
Dnetlink.rs2291 pub rta_len: crate::ctypes::c_ushort, field
/third_party/rust/crates/linux-raw-sys/src/powerpc64/
Dnetlink.rs2297 pub rta_len: crate::ctypes::c_ushort, field
/third_party/rust/crates/linux-raw-sys/src/mips64/
Dnetlink.rs2300 pub rta_len: crate::ctypes::c_ushort, field
/third_party/rust/crates/linux-raw-sys/src/x32/
Dnetlink.rs2291 pub rta_len: crate::ctypes::c_ushort, field

12