Home
last modified time | relevance | path

Searched refs:hdrlen (Results 1 – 25 of 54) sorted by relevance

123

/external/libnl/lib/genl/
Dgenl.c117 int genlmsg_valid_hdr(struct nlmsghdr *nlh, int hdrlen) in genlmsg_valid_hdr() argument
125 if (genlmsg_len(ghdr) < NLMSG_ALIGN(hdrlen)) in genlmsg_valid_hdr()
151 int genlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype, in genlmsg_validate() argument
156 if (!genlmsg_valid_hdr(nlh, hdrlen)) in genlmsg_validate()
160 return nla_validate(genlmsg_attrdata(ghdr, hdrlen), in genlmsg_validate()
161 genlmsg_attrlen(ghdr, hdrlen), maxtype, policy); in genlmsg_validate()
191 int genlmsg_parse(struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], in genlmsg_parse() argument
196 if (!genlmsg_valid_hdr(nlh, hdrlen)) in genlmsg_parse()
200 return nla_parse(tb, maxtype, genlmsg_attrdata(ghdr, hdrlen), in genlmsg_parse()
201 genlmsg_attrlen(ghdr, hdrlen), policy); in genlmsg_parse()
[all …]
/external/tcpdump/
Dprint-pktap.c73 uint32_t dlt, hdrlen; in pktap_header_print() local
78 hdrlen = EXTRACT_LE_32BITS(&hdr->pkt_len); in pktap_header_print()
81 pcap_datalink_val_to_name(dlt), dlt, hdrlen)); in pktap_header_print()
99 uint32_t dlt, hdrlen, rectype; in pktap_if_print() local
112 hdrlen = EXTRACT_LE_32BITS(&hdr->pkt_len); in pktap_if_print()
113 if (hdrlen < sizeof(pktap_header_t)) { in pktap_if_print()
124 if (caplen < hdrlen || length < hdrlen) { in pktap_if_print()
126 return (hdrlen); in pktap_if_print()
132 length -= hdrlen; in pktap_if_print()
133 caplen -= hdrlen; in pktap_if_print()
[all …]
Dprint-pflog.c111 u_int hdrlen; in pflog_if_print() local
128 hdrlen = BPF_WORDALIGN(hdr->length); in pflog_if_print()
130 if (caplen < hdrlen) { in pflog_if_print()
132 return (hdrlen); /* XXX: true? */ in pflog_if_print()
143 length -= hdrlen; in pflog_if_print()
144 caplen -= hdrlen; in pflog_if_print()
145 p += hdrlen; in pflog_if_print()
174 return (hdrlen); in pflog_if_print()
177 return (hdrlen); in pflog_if_print()
Dprint-802_15_4.c94 int hdrlen; in ieee802_15_4_if_print() local
104 hdrlen = extract_header_length(fc); in ieee802_15_4_if_print()
114 if (hdrlen == -1) { in ieee802_15_4_if_print()
121 p+= hdrlen; in ieee802_15_4_if_print()
122 caplen -= hdrlen; in ieee802_15_4_if_print()
173 caplen -= hdrlen; in ieee802_15_4_if_print()
Dprint-802_11.c2264 uint16_t fc, const u_char *p, u_int hdrlen, in ieee_802_11_hdr_print() argument
2288 (const struct meshcntl_t *)&p[hdrlen - meshdrlen]; in ieee_802_11_hdr_print()
2331 u_int caplen, hdrlen, meshdrlen; in ieee802_11_print() local
2355 hdrlen = extract_header_length(ndo, fc); in ieee802_11_print()
2357 hdrlen = roundup2(hdrlen, 4); in ieee802_11_print()
2360 meshdrlen = extract_mesh_header_length(p+hdrlen); in ieee802_11_print()
2361 hdrlen += meshdrlen; in ieee802_11_print()
2366 if (caplen < hdrlen) { in ieee802_11_print()
2368 return hdrlen; in ieee802_11_print()
2371 ieee_802_11_hdr_print(ndo, fc, p, hdrlen, meshdrlen, &src, &dst); in ieee802_11_print()
[all …]
Dprint-atm.c166 u_int hdrlen = 0; in atm_if_print() local
178 return hdrlen; in atm_if_print()
230 hdrlen += 20; in atm_if_print()
233 return (hdrlen); in atm_if_print()
/external/syslinux/gpxe/src/net/80211/
Dwep.c123 const int hdrlen = IEEE80211_TYP_FRAME_HEADER_LEN; in wep_encrypt() local
124 int datalen = iob_len ( iob ) - hdrlen; in wep_encrypt()
125 int newlen = hdrlen + datalen + WEP_OVERHEAD; in wep_encrypt()
132 memcpy ( iob_put ( eiob, hdrlen ), iob->data, hdrlen ); in wep_encrypt()
145 cipher_encrypt ( &arc4_algorithm, &ctx->arc4, iob->data + hdrlen, in wep_encrypt()
149 icv = ~crc32_le ( ~0, iob->data + hdrlen, datalen ); in wep_encrypt()
172 const int hdrlen = IEEE80211_TYP_FRAME_HEADER_LEN; in wep_decrypt() local
173 int datalen = iob_len ( eiob ) - hdrlen - WEP_OVERHEAD; in wep_decrypt()
174 int newlen = hdrlen + datalen; in wep_decrypt()
181 memcpy ( iob_put ( iob, hdrlen ), eiob->data, hdrlen ); in wep_decrypt()
[all …]
Dwpa_ccmp.c324 const int hdrlen = IEEE80211_TYP_FRAME_HEADER_LEN; in ccmp_encrypt() local
325 int datalen = iob_len ( iob ) - hdrlen; in ccmp_encrypt()
341 memcpy ( iob_put ( eiob, hdrlen ), iob->data, hdrlen ); in ccmp_encrypt()
363 ccmp_cbc_mac ( ctx, &nonce, iob->data + hdrlen, datalen, &aad, mic ); in ccmp_encrypt()
369 iob->data + hdrlen, edata, datalen, in ccmp_encrypt()
392 const int hdrlen = IEEE80211_TYP_FRAME_HEADER_LEN; in ccmp_decrypt() local
393 int datalen = iob_len ( eiob ) - hdrlen - CCMP_HEAD_LEN - CCMP_MIC_LEN; in ccmp_decrypt()
399 iob = alloc_iob ( hdrlen + datalen ); in ccmp_decrypt()
404 memcpy ( iob_put ( iob, hdrlen ), eiob->data, hdrlen ); in ccmp_decrypt()
409 head = eiob->data + hdrlen; in ccmp_decrypt()
[all …]
Dwpa_tkip.c385 const int hdrlen = IEEE80211_TYP_FRAME_HEADER_LEN; in tkip_encrypt() local
386 int datalen = iob_len ( iob ) - hdrlen; in tkip_encrypt()
402 memcpy ( iob_put ( eiob, hdrlen ), iob->data, hdrlen ); in tkip_encrypt()
414 cipher_encrypt ( &arc4_algorithm, &arc4, iob->data + hdrlen, in tkip_encrypt()
420 iob->data + hdrlen, datalen, mic ); in tkip_encrypt()
425 icv = crc32_le ( ~0, iob->data + hdrlen, datalen ); in tkip_encrypt()
450 const int hdrlen = IEEE80211_TYP_FRAME_HEADER_LEN; in tkip_decrypt() local
451 int datalen = iob_len ( eiob ) - hdrlen - TKIP_HEAD_LEN - TKIP_FOOT_LEN; in tkip_decrypt()
459 iob = alloc_iob ( hdrlen + datalen + TKIP_FOOT_LEN ); in tkip_decrypt()
464 memcpy ( iob_put ( iob, hdrlen ), eiob->data, hdrlen ); in tkip_decrypt()
[all …]
/external/syslinux/gpxe/src/drivers/net/
Dp80211hdr.h278 UINT16 hdrlen = 0; in p80211_headerlen() local
282 hdrlen = WLAN_HDR_A3_LEN; in p80211_headerlen()
285 hdrlen = WLAN_HDR_A3_LEN; in p80211_headerlen()
287 hdrlen += WLAN_ADDR_LEN; in p80211_headerlen()
291 hdrlen = WLAN_CTL_FRAMELEN(WLAN_GET_FC_FSTYPE(fctl)) - in p80211_headerlen()
295 hdrlen = WLAN_HDR_A3_LEN; in p80211_headerlen()
298 return hdrlen; in p80211_headerlen()
/external/libnl/lib/
Dmsg.c143 struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrdata() argument
146 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); in nlmsg_attrdata()
154 int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen() argument
156 return max_t(int, nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen), 0); in nlmsg_attrlen()
166 int nlmsg_valid_hdr(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_valid_hdr() argument
168 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) in nlmsg_valid_hdr()
213 int nlmsg_parse(struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], in nlmsg_parse() argument
216 if (!nlmsg_valid_hdr(nlh, hdrlen)) in nlmsg_parse()
219 return nla_parse(tb, maxtype, nlmsg_attrdata(nlh, hdrlen), in nlmsg_parse()
220 nlmsg_attrlen(nlh, hdrlen), policy); in nlmsg_parse()
[all …]
/external/syslinux/gpxe/src/net/
Dipv4.c248 size_t hdrlen = ( ( iphdr->verhdrlen & IP_MASK_HLEN ) * 4 ); in ipv4_pshdr_chksum() local
255 pshdr.len = htons ( iob_len ( iobuf ) - hdrlen ); in ipv4_pshdr_chksum()
387 size_t hdrlen; in ipv4_rx() local
407 hdrlen = ( ( iphdr->verhdrlen & IP_MASK_HLEN ) * 4 ); in ipv4_rx()
408 if ( hdrlen < sizeof ( *iphdr ) ) { in ipv4_rx()
410 hdrlen, sizeof ( *iphdr ) ); in ipv4_rx()
413 if ( hdrlen > iob_len ( iobuf ) ) { in ipv4_rx()
415 "(packet is %zd bytes)\n", hdrlen, iob_len ( iobuf ) ); in ipv4_rx()
418 if ( ( csum = tcpip_chksum ( iphdr, hdrlen ) ) != 0 ) { in ipv4_rx()
424 if ( len < hdrlen ) { in ipv4_rx()
[all …]
/external/iptables/extensions/
Dlibip6t_ah.c25 .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, hdrlen)},
92 print_len("length", ah->hdrlen, in ah_print()
121 if (ahinfo->hdrlen != 0 || (ahinfo->invflags & IP6T_AH_INV_LEN) ) { in ah_save()
124 ahinfo->hdrlen); in ah_save()
148 if (ahinfo->hdrlen != 0 || (ahinfo->invflags & IP6T_AH_INV_LEN)) { in ah_xlate()
151 ahinfo->hdrlen); in ah_xlate()
Dlibip6t_hbh.c28 XTOPT_POINTER(struct ip6t_opts, hdrlen)},
143 printf("%u", optinfo->hdrlen); in hbh_print()
159 optinfo->hdrlen); in hbh_save()
179 optinfo->hdrlen); in hbh_xlate()
Dlibip6t_dst.c26 XTOPT_POINTER(struct ip6t_opts, hdrlen)},
151 optinfo->hdrlen); in dst_print()
170 optinfo->hdrlen); in dst_save()
Dlibip6t_rt.c39 .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, hdrlen)},
200 printf("%u", rtinfo->hdrlen); in rt_print()
238 rtinfo->hdrlen); in rt_save()
276 rtinfo->hdrlen); in rt_xlate()
/external/libnl/lib/route/cls/ematch/
Dnbyte.c88 size_t hdrlen = sizeof(struct tcf_em_nbyte); in nbyte_parse() local
89 size_t plen = len - hdrlen; in nbyte_parse()
91 memcpy(&n->cfg, data, hdrlen); in nbyte_parse()
96 memcpy(n->pattern, data + hdrlen, plen); in nbyte_parse()
Dtext.c106 size_t hdrlen = sizeof(struct tcf_em_text); in text_parse() local
107 size_t plen = len - hdrlen; in text_parse()
109 memcpy(&t->cfg, data, hdrlen); in text_parse()
118 memcpy(t->pattern, data + hdrlen, t->cfg.pattern_len); in text_parse()
/external/mesa3d/src/glx/
Drenderpix.c126 GLuint compsize2, hdrlen, totalhdrlen, image1len, image2len; in __indirect_glSeparableFilter2D() local
132 hdrlen = __GLX_PAD(__GLX_CONV_FILT_HDR_SIZE); in __indirect_glSeparableFilter2D()
148 pc += hdrlen; in __indirect_glSeparableFilter2D()
178 pc += hdrlen; in __indirect_glSeparableFilter2D()
/external/syslinux/com32/libupload/
Dupload_srec.c50 size_t len, chunk, offset, hdrlen; in upload_srec_write() local
57 hdrlen = snprintf(name, sizeof name, "%.32s", in upload_srec_write()
61 write_srecord(hdrlen, 2, 0, '0', name); in upload_srec_write()
/external/libnl/include/netlink-private/
Dgenl.h18 #define GENL_HDRSIZE(hdrlen) (GENL_HDRLEN + (hdrlen)) argument
/external/libnl/include/netlink/
Dmsg.h123 #define nlmsg_for_each_attr(pos, nlh, hdrlen, rem) \ argument
124 nla_for_each_attr(pos, nlmsg_attrdata(nlh, hdrlen), \
125 nlmsg_attrlen(nlh, hdrlen), rem)
/external/kernel-headers/original/uapi/linux/
Dseg6_iptunnel.h29 #define SEG6_IPTUN_ENCAP_SIZE(x) ((sizeof(*x)) + (((x)->srh->hdrlen + 1) << 3))
40 return ((tuninfo->srh->hdrlen + 1) << 3) + in seg6_lwt_headroom()
Dipv6.h49 __u8 hdrlen; member
62 __u8 hdrlen; member
/external/libnl/include/linux-private/linux/
Dipv6.h26 __u8 hdrlen; member
39 __u8 hdrlen; member

123