Searched refs:hdrlen (Results 1 - 25 of 43) sorted by relevance

12

/macosx-10.10.1/tcpdump-61/tcpdump/
H A Dprint-pflog.c116 u_int hdrlen; local
133 hdrlen = BPF_WORDALIGN(hdr->length);
135 if (caplen < hdrlen) {
137 return (hdrlen); /* XXX: true? */
148 length -= hdrlen;
149 caplen -= hdrlen;
150 p += hdrlen;
177 return (hdrlen);
180 return (hdrlen);
H A Dprint-802_15_4.c97 int hdrlen; local
107 hdrlen = extract_header_length(fc);
117 if (hdrlen == -1) {
124 p+= hdrlen;
125 caplen -= hdrlen;
176 caplen -= hdrlen;
H A Dprint-802_11.c1649 ieee_802_11_hdr_print(u_int16_t fc, const u_char *p, u_int hdrlen, argument
1672 (const struct meshcntl_t *)&p[hdrlen - meshdrlen];
1714 u_int caplen, hdrlen, meshdrlen; local
1738 hdrlen = extract_header_length(fc);
1740 hdrlen = roundup2(hdrlen, 4);
1743 meshdrlen = extract_mesh_header_length(p+hdrlen);
1744 hdrlen += meshdrlen;
1749 if (caplen < hdrlen) {
1751 return hdrlen;
[all...]
H A Dprint-atm.c172 u_int hdrlen = 0; local
184 return hdrlen;
223 hdrlen += 20;
226 return (hdrlen);
H A Dprint-atalk.c100 u_int hdrlen; local
109 hdrlen = sizeof(*lp);
124 hdrlen += ddpSSize;
142 hdrlen += ddpSize;
157 return (hdrlen);
H A Dprint-pim.c525 int len, hdrlen; local
547 hdrlen = 2;
563 hdrlen = 0;
566 bp += hdrlen;
580 return hdrlen + len;
614 return hdrlen + 2 + len;
H A Dtcpdump.c2480 print_raw_packet_data(const struct pcap_pkthdr *h, const u_char *sp, u_int hdrlen) argument
2497 if (h->caplen > hdrlen)
2498 hex_and_ascii_print("\n\t", sp + hdrlen,
2499 h->caplen - hdrlen);
2516 if (h->caplen > hdrlen)
2517 hex_print("\n\t", sp + hdrlen,
2518 h->caplen - hdrlen);
2535 if (h->caplen > hdrlen)
2536 ascii_print(sp + hdrlen, h->caplen - hdrlen);
2544 u_int hdrlen; local
2602 u_int hdrlen = 0; local
[all...]
H A Dprint-ppp.c1538 u_int hdrlen = 0; local
1557 hdrlen += 2;
1562 hdrlen += 2;
1577 hdrlen += 2;
1588 return (hdrlen);
/macosx-10.10.1/Libinfo-459/gen.subproj/
H A Dip6opt.c240 int hdrlen, optlen; local
252 hdrlen = (ip6e->ip6e_len + 1) << 3;
253 if (cmsg->cmsg_len < CMSG_SPACE(hdrlen))
261 lim = (u_int8_t *)ip6e + hdrlen;
296 int hdrlen, optlen; local
308 hdrlen = (ip6e->ip6e_len + 1) << 3;
309 if (cmsg->cmsg_len < CMSG_SPACE(hdrlen))
317 lim = (u_int8_t *)ip6e + hdrlen;
/macosx-10.10.1/xnu-2782.1.97/bsd/net/
H A Dppp_comp.h85 int unit, int hdrlen, int debug);
100 int unit, int hdrlen, int mru, int debug);
H A Dbpf.c2321 int hdrlen, caplen; local
2328 hdrlen = (d->bd_flags & BPF_EXTENDED_HDR) ? d->bd_bif->bif_exthdrlen :
2336 totlen = hdrlen + min(snaplen, pktlen);
2380 ehp->bh_hdrlen = hdrlen;
2381 ehp->bh_caplen = totlen - hdrlen;
2407 payload = (u_char *)ehp + hdrlen;
2414 hp->bh_hdrlen = hdrlen;
2415 hp->bh_caplen = totlen - hdrlen;
2416 payload = (u_char *)hp + hdrlen;
2477 * in the driver's softc; dlt is the link layer type; hdrlen i
2481 bpfattach(struct ifnet *ifp, u_int dlt, u_int hdrlen) argument
2487 bpf_attach( ifnet_t ifp, u_int32_t dlt, u_int32_t hdrlen, bpf_send_func send, bpf_tap_func tap) argument
[all...]
H A Dif_mib.c153 DONTCOPY(hdrlen);
/macosx-10.10.1/ppp-786.1.1/Helpers/pppdump/
H A Ddeflate.c71 int hdrlen; member in struct:deflate_state
85 int unit, int hdrlen, int mru, int debug));
193 z_decomp_init(arg, options, opt_len, unit, hdrlen, mru, debug)
196 int opt_len, unit, hdrlen, mru, debug;
209 state->hdrlen = hdrlen;
H A Dbsd-comp.c108 u_int hdrlen; /* header length to preallocate */ member in struct:bsd_db
150 int unit, int hdrlen, int mru, int debug));
395 bsd_init(db, options, opt_len, unit, hdrlen, mru, debug, decomp)
398 int opt_len, unit, hdrlen, mru, debug, decomp;
421 db->hdrlen = hdrlen;
432 bsd_decomp_init(state, options, opt_len, unit, hdrlen, mru, debug)
435 int opt_len, unit, hdrlen, mru, debug;
438 unit, hdrlen, mru, debug, 1);
603 wptr = dmp + db->hdrlen;
[all...]
H A Dppp-comp.h80 int unit, int hdrlen, int mru, int debug));
/macosx-10.10.1/ppp-786.1.1/Family/
H A Dppp_if.h98 int ppp_if_input(ifnet_t ifp, mbuf_t m, u_int16_t proto, u_int16_t hdrlen);
H A Dppp_comp.h84 int unit, int hdrlen, int mtu, int debug));
98 int unit, int hdrlen, int mru, int debug));
H A Dppp_comp.c117 int unit, int hdrlen, int mtu, int debug);
134 int unit, int hdrlen, int mru, int debug);
H A Dppp_if.c520 int ppp_if_input(ifnet_t ifp, mbuf_t m, u_int16_t proto, u_int16_t hdrlen) argument
534 mbuf_adj(m, hdrlen); // the packet points to the real data (0x45)
546 hdrlen = 1;
549 hdrlen = 2;
552 mbuf_adj(m, hdrlen); // the packet points to the real data (0x45)
/macosx-10.10.1/network_cmds-457/rarpd.tproj/
H A Drarpd.c460 register int caplen, hdrlen; local
463 hdrlen = bhp->bh_hdrlen;
464 if (rarp_check(bp + hdrlen, caplen))
465 rarp_process(ii, bp + hdrlen);
466 bp += BPF_WORDALIGN(hdrlen + caplen);
/macosx-10.10.1/IONetworkingFamily-101/
H A DIONetworkInterface.cpp94 #define _hdrlen _reserved->hdrlen
799 inline static const char *get_icmp_data(mbuf_t *pkt, int hdrlen, int datalen) argument
807 /* make sure hdrlen is sane with respect to mbuf */
808 if (mbuf_len(*pkt) < (sizeof(*ip) + hdrlen))
812 ip = (struct ip *) ((char *) mbuf_data(*pkt) + hdrlen);
823 ip = (struct ip *) ((char *) mbuf_data(*pkt) + hdrlen);
832 icmp = (struct icmp *) (((char *) mbuf_data(*pkt) + hdrlen) + hlen);
836 return (const char *) (((char *) mbuf_data(*pkt) + hdrlen) + icmplen);
847 const UInt32 hdrlen = _hdrlen; local
890 const char *data = get_icmp_data(&packet, hdrlen, _remote_NMI_le
3022 const uint32_t hdrlen = _hdrlen; local
[all...]
/macosx-10.10.1/xnu-2782.1.97/bsd/netinet/
H A Dtcp_output.c289 unsigned ipoptlen, optlen, hdrlen; local
1149 hdrlen = sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
1152 hdrlen = sizeof (struct tcpiphdr);
1402 hdrlen += optlen;
1446 if (len > tso_maxlen - hdrlen - optlen) {
1447 len = tso_maxlen - hdrlen - optlen;
1478 if (max_linkhdr + hdrlen > MCLBYTES)
1551 if (MHLEN < hdrlen + max_linkhdr) {
1564 m->m_len = hdrlen;
1567 if (len <= allocated_len - hdrlen
[all...]
H A Dmptcp.c744 unsigned hdrlen, u_int64_t dss_val, u_int32_t *sseqp)
763 sum = m_sum16(m, hdrlen, len);
743 mptcp_output_csum(struct tcpcb *tp, struct mbuf *m, int32_t len, unsigned hdrlen, u_int64_t dss_val, u_int32_t *sseqp) argument
/macosx-10.10.1/libpcap-48/libpcap/
H A Dpcap-win32.c227 register int caplen, hdrlen; local
252 hdrlen = bhp->bh_hdrlen;
257 (*callback)(user, (struct pcap_pkthdr*)bp, bp + hdrlen); local
258 bp += Packet_WORDALIGN(caplen + hdrlen);
H A Dpcap-bpf.c1043 register int caplen, hdrlen, datalen; local
1082 hdrlen = bhep->bh_hdrlen;
1088 hdrlen = bhp->bh_hdrlen;
1091 datap = bp + hdrlen;
1151 bp += BPF_WORDALIGN(caplen + hdrlen);
1166 bp += BPF_WORDALIGN(caplen + hdrlen);

Completed in 179 milliseconds

12