Home
last modified time | relevance | path

Searched refs:attrlen (Results 1 – 15 of 15) sorted by relevance

/external/ppp/pppd/plugins/radius/
Davpair.c20 static void rc_extract_vendor_specific_attributes(int attrlen,
157 int attrlen; in rc_avpair_gen() local
177 attrlen = *ptr++; in rc_avpair_gen()
178 attrlen -= 2; in rc_avpair_gen()
179 if (attrlen < 0) in rc_avpair_gen()
187 rc_extract_vendor_specific_attributes(attrlen, ptr, &vp); in rc_avpair_gen()
188 ptr += attrlen; in rc_avpair_gen()
189 length -= (attrlen + 2); in rc_avpair_gen()
195 for (x_ptr = ptr, x_len = attrlen ; in rc_avpair_gen()
203 attribute, attrlen, buffer); in rc_avpair_gen()
[all …]
/external/libnl/lib/
Dmsg.c925 static void dump_attrs(FILE *ofd, struct nlattr *attrs, int attrlen, in dump_attrs() argument
931 nla_for_each_attr(nla, attrs, attrlen, rem) { in dump_attrs()
992 int attrlen = 0; in nl_msg_dump() local
997 attrlen = nlmsg_attrlen(hdr, ops->co_hdrsize); in nl_msg_dump()
998 payloadlen -= attrlen; in nl_msg_dump()
1004 if (attrlen) { in nl_msg_dump()
1006 int attrlen; in nl_msg_dump() local
1009 attrlen = nlmsg_attrlen(hdr, ops->co_hdrsize); in nl_msg_dump()
1010 dump_attrs(ofd, attrs, attrlen, 0); in nl_msg_dump()
Dattr.c798 struct nlattr *nla_reserve(struct nl_msg *msg, int attrtype, int attrlen) in nla_reserve() argument
803 tlen = NLMSG_ALIGN(msg->nm_nlh->nlmsg_len) + nla_total_size(attrlen); in nla_reserve()
810 nla->nla_len = nla_attr_size(attrlen); in nla_reserve()
812 memset((unsigned char *) nla + nla->nla_len, 0, nla_padlen(attrlen)); in nla_reserve()
816 "nlmsg_len=%d\n", msg, attrlen, in nla_reserve()
/external/kernel-headers/original/uapi/linux/netfilter/
Dnfnetlink_compat.h40 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \ argument
/external/ipsec-tools/src/racoon/
Dipsec_doi.c2730 int trnslen, attrlen; local
2743 attrlen = setph1attr(sa, p);
2744 trnslen += attrlen;
2746 p += attrlen;
2760 int attrlen = 0; local
2765 attrlen += sizeof(struct isakmp_data)
2768 attrlen += sizeof(lifetime);
2786 attrlen += sizeof(struct isakmp_data)
2789 attrlen += sizeof(lifebyte);
2805 attrlen += sizeof(struct isakmp_data);
[all …]
/external/wpa_supplicant_8/src/drivers/
Dpriv_netlink.h67 #define RTA_NEXT(rta,attrlen) \ argument
68 ((attrlen) -= RTA_ALIGN((rta)->rta_len), \
Ddriver_wext.c593 int attrlen, rta_len; in wpa_driver_wext_own_ifname() local
596 attrlen = len; in wpa_driver_wext_own_ifname()
600 while (RTA_OK(attr, attrlen)) { in wpa_driver_wext_own_ifname()
608 attr = RTA_NEXT(attr, attrlen); in wpa_driver_wext_own_ifname()
637 int attrlen, rta_len; in wpa_driver_wext_event_rtm_newlink() local
695 attrlen = len; in wpa_driver_wext_event_rtm_newlink()
699 while (RTA_OK(attr, attrlen)) { in wpa_driver_wext_event_rtm_newlink()
709 attr = RTA_NEXT(attr, attrlen); in wpa_driver_wext_event_rtm_newlink()
718 int attrlen, rta_len; in wpa_driver_wext_event_rtm_dellink() local
721 attrlen = len; in wpa_driver_wext_event_rtm_dellink()
[all …]
Ddriver_hostap.c872 int attrlen, rta_len; in hostapd_wireless_event_rtm_newlink() local
878 attrlen = len; in hostapd_wireless_event_rtm_newlink()
882 while (RTA_OK(attr, attrlen)) { in hostapd_wireless_event_rtm_newlink()
888 attr = RTA_NEXT(attr, attrlen); in hostapd_wireless_event_rtm_newlink()
Ddriver_atheros.c1462 int attrlen, rta_len; in atheros_wireless_event_rtm_newlink() local
1468 attrlen = len; in atheros_wireless_event_rtm_newlink()
1472 while (RTA_OK(attr, attrlen)) { in atheros_wireless_event_rtm_newlink()
1478 attr = RTA_NEXT(attr, attrlen); in atheros_wireless_event_rtm_newlink()
Ddriver_nl80211.c865 int attrlen, rta_len; in wpa_driver_nl80211_own_ifname() local
868 attrlen = len; in wpa_driver_nl80211_own_ifname()
872 while (RTA_OK(attr, attrlen)) { in wpa_driver_nl80211_own_ifname()
880 attr = RTA_NEXT(attr, attrlen); in wpa_driver_nl80211_own_ifname()
925 int attrlen; in wpa_driver_nl80211_event_rtm_newlink() local
937 attrlen = len; in wpa_driver_nl80211_event_rtm_newlink()
939 while (RTA_OK(attr, attrlen)) { in wpa_driver_nl80211_event_rtm_newlink()
963 attr = RTA_NEXT(attr, attrlen); in wpa_driver_nl80211_event_rtm_newlink()
1108 int attrlen; in wpa_driver_nl80211_event_rtm_dellink() local
1119 attrlen = len; in wpa_driver_nl80211_event_rtm_dellink()
[all …]
/external/libnl/include/netlink/
Dattr.h143 #define NLA_PUT(msg, attrtype, attrlen, data) \ argument
145 if (nla_put(msg, attrtype, attrlen, data) < 0) \
/external/wpa_supplicant_8/src/ap/
Dvlan_full.c590 int attrlen, nlmsg_len, rta_len; in vlan_read_ifnames() local
601 attrlen = h->nlmsg_len - nlmsg_len; in vlan_read_ifnames()
602 if (attrlen < 0) in vlan_read_ifnames()
609 while (RTA_OK(attr, attrlen)) { in vlan_read_ifnames()
621 attr = RTA_NEXT(attr, attrlen); in vlan_read_ifnames()
/external/libnl/include/linux/
Drtnetlink.h137 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument
/external/iproute2/include/linux/
Drtnetlink.h168 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument
/external/kernel-headers/original/uapi/linux/
Drtnetlink.h168 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument