Home
last modified time | relevance | path

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

12

/external/libnl/lib/genl/
Dgenl.c146 int genlmsg_valid_hdr(struct nlmsghdr *nlh, int hdrlen) in genlmsg_valid_hdr() argument
154 if (genlmsg_len(ghdr) < NLMSG_ALIGN(hdrlen)) in genlmsg_valid_hdr()
160 int genlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype, in genlmsg_validate() argument
165 if (!genlmsg_valid_hdr(nlh, hdrlen)) in genlmsg_validate()
169 return nla_validate(genlmsg_attrdata(ghdr, hdrlen), in genlmsg_validate()
170 genlmsg_attrlen(ghdr, hdrlen), maxtype, policy); in genlmsg_validate()
173 int genlmsg_parse(struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], in genlmsg_parse() argument
178 if (!genlmsg_valid_hdr(nlh, hdrlen)) in genlmsg_parse()
182 return nla_parse(tb, maxtype, genlmsg_attrdata(ghdr, hdrlen), in genlmsg_parse()
183 genlmsg_attrlen(ghdr, hdrlen), policy); in genlmsg_parse()
[all …]
/external/tcpdump/
Dprint-pflog.c116 u_int hdrlen; in pflog_if_print() local
133 hdrlen = BPF_WORDALIGN(hdr->length); in pflog_if_print()
135 if (caplen < hdrlen) { in pflog_if_print()
137 return (hdrlen); /* XXX: true? */ in pflog_if_print()
148 length -= hdrlen; in pflog_if_print()
149 caplen -= hdrlen; in pflog_if_print()
150 p += hdrlen; in pflog_if_print()
177 return (hdrlen); in pflog_if_print()
180 return (hdrlen); in pflog_if_print()
Dprint-802_15_4.c97 int hdrlen; in ieee802_15_4_if_print() local
107 hdrlen = extract_header_length(fc); in ieee802_15_4_if_print()
117 if (hdrlen == -1) { in ieee802_15_4_if_print()
124 p+= hdrlen; in ieee802_15_4_if_print()
125 caplen -= hdrlen; in ieee802_15_4_if_print()
176 caplen -= hdrlen; in ieee802_15_4_if_print()
Dprint-802_11.c1649 ieee_802_11_hdr_print(u_int16_t fc, const u_char *p, u_int hdrlen, in ieee_802_11_hdr_print() argument
1672 (const struct meshcntl_t *)&p[hdrlen - meshdrlen]; in ieee_802_11_hdr_print()
1714 u_int caplen, hdrlen, meshdrlen; in ieee802_11_print() local
1738 hdrlen = extract_header_length(fc); in ieee802_11_print()
1740 hdrlen = roundup2(hdrlen, 4); in ieee802_11_print()
1743 meshdrlen = extract_mesh_header_length(p+hdrlen); in ieee802_11_print()
1744 hdrlen += meshdrlen; in ieee802_11_print()
1749 if (caplen < hdrlen) { in ieee802_11_print()
1751 return hdrlen; in ieee802_11_print()
1754 ieee_802_11_hdr_print(fc, p, hdrlen, meshdrlen, &src, &dst); in ieee802_11_print()
[all …]
Dprint-atm.c172 u_int hdrlen = 0; in atm_if_print() local
184 return hdrlen; in atm_if_print()
223 hdrlen += 20; in atm_if_print()
226 return (hdrlen); in atm_if_print()
Dtcpdump.c1939 u_int hdrlen; in print_packet() local
1956 hdrlen = (*print_info->p.ndo_printer)(print_info->ndo, h, sp); in print_packet()
1958 hdrlen = (*print_info->p.printer)(h, sp); in print_packet()
1976 if (h->caplen > hdrlen) in print_packet()
1977 hex_and_ascii_print("\n\t", sp + hdrlen, in print_packet()
1978 h->caplen - hdrlen); in print_packet()
1995 if (h->caplen > hdrlen) in print_packet()
1996 hex_print("\n\t", sp + hdrlen, in print_packet()
1997 h->caplen - hdrlen); in print_packet()
2014 if (h->caplen > hdrlen) in print_packet()
[all …]
Dprint-pim.c523 int len, hdrlen; in pimv2_addr_print() local
545 hdrlen = 2; in pimv2_addr_print()
561 hdrlen = 0; in pimv2_addr_print()
564 bp += hdrlen; in pimv2_addr_print()
578 return hdrlen + len; in pimv2_addr_print()
612 return hdrlen + 2 + len; in pimv2_addr_print()
Dprint-atalk.c100 u_int hdrlen; in llap_print() local
109 hdrlen = sizeof(*lp); in llap_print()
124 hdrlen += ddpSSize; in llap_print()
142 hdrlen += ddpSize; in llap_print()
157 return (hdrlen); in llap_print()
/external/libnl/lib/
Dmsg.c249 struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrdata() argument
252 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); in nlmsg_attrdata()
260 int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen() argument
262 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen()
272 int nlmsg_valid_hdr(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_valid_hdr() argument
274 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) in nlmsg_valid_hdr()
319 int nlmsg_parse(struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], in nlmsg_parse() argument
322 if (!nlmsg_valid_hdr(nlh, hdrlen)) in nlmsg_parse()
325 return nla_parse(tb, maxtype, nlmsg_attrdata(nlh, hdrlen), in nlmsg_parse()
326 nlmsg_attrlen(nlh, hdrlen), policy); in nlmsg_parse()
[all …]
/external/iptables/extensions/
Dlibip6t_ah.c25 .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, hdrlen)},
84 print_len("length", ah->hdrlen, in ah_print()
113 if (ahinfo->hdrlen != 0 || (ahinfo->invflags & IP6T_AH_INV_LEN) ) { in ah_save()
116 ahinfo->hdrlen); in ah_save()
Dlibip6t_dst.c26 XTOPT_POINTER(struct ip6t_opts, hdrlen)},
149 optinfo->hdrlen); in dst_print()
168 optinfo->hdrlen); in dst_save()
Dlibip6t_hbh.c28 XTOPT_POINTER(struct ip6t_opts, hdrlen)},
143 printf("%u", optinfo->hdrlen); in hbh_print()
159 optinfo->hdrlen); in hbh_save()
Dlibip6t_frag.c33 .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, hdrlen)},
119 frag->hdrlen); in frag_print()
160 fraginfo->hdrlen); in frag_save()
Dlibip6t_rt.c39 .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, hdrlen)},
193 printf("%u", rtinfo->hdrlen); in rt_print()
231 rtinfo->hdrlen); in rt_save()
/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/libnl/include/
Dnetlink-generic.h18 #define GENL_HDRSIZE(hdrlen) (GENL_HDRLEN + (hdrlen)) argument
/external/libnl/include/netlink/
Dmsg.h122 #define nlmsg_for_each_attr(pos, nlh, hdrlen, rem) \ argument
123 nla_for_each_attr(pos, nlmsg_attrdata(nlh, hdrlen), \
124 nlmsg_attrlen(nlh, hdrlen), rem)
/external/kernel-headers/original/uapi/linux/
Dipv6.h44 __u8 hdrlen; member
57 __u8 hdrlen; member
Dip.h110 __u8 hdrlen; /* This one is measured in 32 bit units! */ member
131 __u8 hdrlen; member
/external/ppp/pppd/include/net/
Dppp-comp.h67 int unit, int hdrlen, int debug));
82 int unit, int hdrlen, int mru, int debug));
/external/kernel-headers/original/uapi/linux/netfilter_ipv6/
Dip6t_ah.h8 __u32 hdrlen; /* Header Length */ member
Dip6t_frag.h8 __u32 hdrlen; /* Header Length */ member
Dip6t_opts.h9 __u32 hdrlen; /* Header Length */ member
/external/iptables/include/linux/netfilter_ipv6/
Dip6t_ah.h8 __u32 hdrlen; /* Header Length */ member
Dip6t_frag.h8 __u32 hdrlen; /* Header Length */ member

12