/external/libnl/lib/genl/ |
D | genl.c | 146 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/ |
D | print-pktap.c | 73 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 …]
|
D | print-pflog.c | 111 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()
|
D | print-802_15_4.c | 94 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()
|
D | print-802_11.c | 2264 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 …]
|
D | print-atm.c | 166 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()
|
D | tcpdump.c | 2442 u_int hdrlen; in print_packet() local 2466 hdrlen = (*print_info->p.ndo_printer)(print_info->ndo, h, sp); in print_packet() 2468 hdrlen = (*print_info->p.printer)(h, sp); in print_packet() 2491 if (h->caplen > hdrlen) in print_packet() 2492 hex_and_ascii_print(ndo, "\n\t", sp + hdrlen, in print_packet() 2493 h->caplen - hdrlen); in print_packet() 2510 if (h->caplen > hdrlen) in print_packet() 2511 hex_print(ndo, "\n\t", sp + hdrlen, in print_packet() 2512 h->caplen - hdrlen); in print_packet() 2529 if (h->caplen > hdrlen) in print_packet() [all …]
|
D | print-atalk.c | 95 u_int hdrlen; in llap_print() local 104 hdrlen = sizeof(*lp); in llap_print() 119 hdrlen += ddpSSize; in llap_print() 137 hdrlen += ddpSize; in llap_print() 152 return (hdrlen); in llap_print()
|
D | print-pim.c | 526 int len, hdrlen; in pimv2_addr_print() local 548 hdrlen = 2; in pimv2_addr_print() 564 hdrlen = 0; in pimv2_addr_print() 567 bp += hdrlen; in pimv2_addr_print() 581 return hdrlen + len; in pimv2_addr_print() 615 return hdrlen + 2 + len; in pimv2_addr_print()
|
/external/libnl/lib/ |
D | msg.c | 249 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/ |
D | libip6t_ah.c | 25 .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()
|
D | libip6t_dst.c | 26 XTOPT_POINTER(struct ip6t_opts, hdrlen)}, 149 optinfo->hdrlen); in dst_print() 168 optinfo->hdrlen); in dst_save()
|
D | libip6t_hbh.c | 28 XTOPT_POINTER(struct ip6t_opts, hdrlen)}, 143 printf("%u", optinfo->hdrlen); in hbh_print() 159 optinfo->hdrlen); in hbh_save()
|
D | libip6t_frag.c | 33 .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, hdrlen)}, 119 frag->hdrlen); in frag_print() 160 fraginfo->hdrlen); in frag_save()
|
D | libip6t_rt.c | 39 .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/ |
D | renderpix.c | 126 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/ |
D | netlink-generic.h | 18 #define GENL_HDRSIZE(hdrlen) (GENL_HDRLEN + (hdrlen)) argument
|
/external/libnl/include/netlink/ |
D | msg.h | 122 #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/ |
D | ipv6.h | 48 __u8 hdrlen; member 61 __u8 hdrlen; member
|
D | ip.h | 110 __u8 hdrlen; /* This one is measured in 32 bit units! */ member 131 __u8 hdrlen; member
|
/external/ppp/pppd/include/net/ |
D | ppp-comp.h | 67 int unit, int hdrlen, int debug)); 82 int unit, int hdrlen, int mru, int debug));
|
/external/libpcap/ |
D | pcap-win32.c | 237 register int caplen, hdrlen; in pcap_read_win32_npf() local 263 hdrlen = bhp->bh_hdrlen; in pcap_read_win32_npf() 264 datap = bp + hdrlen; in pcap_read_win32_npf() 282 bp += Packet_WORDALIGN(caplen + hdrlen); in pcap_read_win32_npf() 292 bp += Packet_WORDALIGN(caplen + hdrlen); in pcap_read_win32_npf()
|
/external/iptables/include/linux/netfilter_ipv6/ |
D | ip6t_ah.h | 8 __u32 hdrlen; /* Header Length */ member
|
/external/kernel-headers/original/uapi/linux/netfilter_ipv6/ |
D | ip6t_ah.h | 8 __u32 hdrlen; /* Header Length */ member
|
D | ip6t_opts.h | 9 __u32 hdrlen; /* Header Length */ member
|