Searched refs:hlen (Results 1 - 25 of 98) sorted by relevance

1234

/macosx-10.10/tcpdump-61/tcpdump/
H A Dprint-mobility.c175 int mhlen, hlen, type; local
207 hlen = IP6M_MINLEN;
213 hlen = IP6M_MINLEN;
215 TCHECK2(*mh, hlen + 8);
218 EXTRACT_32BITS(&bp[hlen]),
219 EXTRACT_32BITS(&bp[hlen + 4]));
221 hlen += 8;
229 hlen = IP6M_MINLEN;
231 TCHECK2(*mh, hlen + 8);
234 EXTRACT_32BITS(&bp[hlen]),
[all...]
H A Dprint-sl.c117 u_int hlen; local
145 hlen = IP_HL(ip);
146 hlen += TH_OFF((struct tcphdr *)&((int *)ip)[hlen]);
147 lastlen[dir][lastconn] = length - (hlen << 2);
195 register u_int flags, hlen; local
231 * 'hlen' is the length of the uncompressed TCP/IP header (in words).
233 * 'length - hlen' is the amount of data in the packet.
235 hlen = IP_HL(ip);
236 hlen
[all...]
H A Dprint-dccp.c177 u_int hlen; local
203 hlen = dh->dccph_doff * 4;
220 (void)printf(" %d", len - hlen);
221 if (hlen > len) {
223 hlen, len);
323 if (hlen > dccp_basic_hdr_len(dh) + extlen){
329 hlen -= dccp_basic_hdr_len(dh) + extlen;
334 if (hlen <= optlen) break;
335 hlen -= optlen;
H A Dprint-tcp.c156 register u_int hlen; local
185 hlen = TH_OFF(tp) * 4;
193 if (!qflag && hlen >= sizeof(*tp) && hlen <= length &&
194 (length - hlen) >= 4) {
200 fraglenp = (u_char *)tp + hlen;
203 if (fraglen > (length - hlen) - 4)
204 fraglen = (length - hlen) - 4;
250 if (hlen < sizeof(*tp)) {
252 length - hlen, hle
[all...]
H A Dprint-icmp.c347 u_int hlen, dport, mtu, obj_tlen, obj_class_num, obj_ctype; local
384 hlen = IP_HL(oip) * 4;
385 ouh = (struct udphdr *)(((u_char *)oip) + hlen);
625 hlen = plen - ICMP_EXTD_MINLEN;
627 vec[0].len = hlen;
631 hlen);
633 hlen -= 4; /* subtract common header size */
636 while (hlen > sizeof(struct icmp_mpls_ext_object_header_t)) {
651 hlen-=sizeof(struct icmp_mpls_ext_object_header_t); /* length field includes tlv header */
685 if (hlen < obj_tle
[all...]
/macosx-10.10/ppp-786.1.1/Family/
H A Dslcompress.c184 register u_int hlen = ip->ip_hl; local
201 th = (struct tcphdr *)&((int32_t *)ip)[hlen];
250 hlen += th->th_off;
251 hlen <<= 2;
252 if (hlen > mbuf_len(m))
280 oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen];
281 deltaS = hlen;
282 hlen += th->th_off;
283 hlen <<= 2;
284 if (hlen > mbuf_le
443 int hlen, vjlen; local
501 register u_int hlen, changes; local
[all...]
/macosx-10.10/apache-793/httpd/modules/proxy/
H A Dajp_link.c77 apr_size_t hlen; local
80 hlen = msg->header_len;
82 status = ilink_read(sock, msg->buf, hlen);
98 status = ilink_read(sock, msg->buf + hlen, blen);
104 hlen);
111 blen, (int)msg->buf[hlen]);
/macosx-10.10/bootp-298/bootplib/
H A Dhostlist.c83 hp->hlen, inet_ntoa(hp->iaddr),
107 char * haddr, int hlen, struct in_addr * iaddr_p,
119 hp->hlen = hlen;
120 if (hlen > sizeof(hp->haddr)) {
121 hlen = sizeof(hp->haddr);
123 bcopy(haddr, &hp->haddr, hlen);
106 hostadd(struct hosts * * hosts, struct timeval * tv_p, int htype, char * haddr, int hlen, struct in_addr * iaddr_p, char * hostname, char * bootfile) argument
H A Dhostlist.h38 u_char hlen; /* hardware length */ member in struct:hosts
51 int htype, char * haddr, int hlen,
80 && hwlen == hp->hlen
/macosx-10.10/xnu-2782.1.97/bsd/netinet/
H A Dlro_ext.h50 struct mbuf* tcp_lro(struct mbuf *m, unsigned int hlen);
H A Dkpi_ipfilter_var.h58 extern void ip_proto_dispatch_in(struct mbuf *m, int hlen, u_int8_t proto,
H A Dip6.h304 #define IP6_EXTHDR_CHECK(m, off, hlen, action) \
308 ((m)->m_len < (off) + (hlen)) && \
309 (((m) = m_pullup((m), (off) + (hlen))) == NULL)) { \
313 if ((m)->m_len < (off) + (hlen)) { \
320 if ((m)->m_len < (off) + (hlen)) { \
328 if ((m)->m_len < (off) + (hlen)) { \
H A Dip_icmp.c315 icmp_input(struct mbuf *m, int hlen) argument
350 i = hlen + min(icmplen, ICMP_ADVLENMIN);
356 m->m_len -= hlen;
357 m->m_data += hlen;
363 m->m_len += hlen;
364 m->m_data -= hlen;
564 ip->ip_len += hlen; /* since ip_input deducts this */
639 rip_input(m, hlen);
822 int hlen; local
833 hlen
1104 int hlen; local
[all...]
H A Dip_input.c552 ip_proto_dispatch_in_wrapper(struct mbuf *m, int hlen, u_int8_t proto) argument
554 ip_proto_dispatch_in(m, hlen, proto, 0);
558 ip_proto_dispatch_in(struct mbuf *m, int hlen, u_int8_t proto, argument
591 ip->ip_len = htons(ip->ip_len + hlen);
594 ip->ip_sum = ip_cksum_hdr_in(m, hlen);
598 hlen, proto);
624 ip->ip_len = ntohs(ip->ip_len) - hlen;
632 pr_input(m, hlen);
635 pr_input(m, hlen);
648 unsigned int hlen, checki local
1405 int i, hlen, next; local
3107 ip_cksum(struct mbuf *m, int hlen) argument
[all...]
/macosx-10.10/network_cmds-457/alias/
H A Dalias_ftp.c137 int hlen, tlen, dlen; local
144 hlen = (pip->ip_hl + tc->th_off) << 2;
146 dlen = tlen - hlen;
150 sptr += hlen;
502 int slen, hlen, tlen, dlen; local
515 hlen = (pip->ip_hl + tc->th_off) << 2;
517 dlen = tlen - hlen;
570 sptr = (char *) pip; sptr += hlen;
571 strncpy(sptr, stemp, maxpacketsize-hlen);
587 new_len = htons(hlen
[all...]
H A Dalias_smedia.c174 int hlen, tlen, dlen; local
188 hlen = (pip->ip_hl + tc->th_off) << 2;
190 dlen = tlen - hlen;
374 new_len = htons(hlen + new_dlen);
439 int hlen, tlen, dlen; local
448 hlen = (pip->ip_hl + tc->th_off) << 2;
450 dlen = tlen - hlen;
453 data += hlen;
H A Dalias_irc.c94 int hlen, tlen, dlen; local
103 hlen = (pip->ip_hl + tc->th_off) << 2;
105 dlen = tlen - hlen;
113 sptr += hlen;
114 maxsize -= hlen; /* We're interested in maximum size of data, not packet */
336 new_len = htons(hlen + iCopy + copyat);
/macosx-10.10/OpenSSH-189/openssh/
H A Dssh-rsa.c218 u_int ret, rsasize, oidlen = 0, hlen = 0; local
228 hlen = 20;
233 hlen = 16;
238 if (hashlen != hlen) {
254 if (len < 0 || (u_int)len != hlen + oidlen) {
255 error("bad decrypted len: %d != %d + %d", len, hlen, oidlen);
259 hashmatch = timingsafe_bcmp(decrypted + oidlen, hash, hlen) == 0;
/macosx-10.10/netcat-22/
H A Dsocks.c117 size_t hlen, wlen; local
164 hlen = strlen(host);
165 if (hlen > 255)
171 buf[4] = hlen;
172 memcpy(buf + 5, host, hlen);
173 memcpy(buf + 5 + hlen, &serverport, sizeof serverport);
174 wlen = 7 + hlen;
/macosx-10.10/curl-83.1.2/curl/lib/
H A Dcontent_encoding.c335 ssize_t hlen;
337 switch (check_gzip_header((unsigned char *)k->str, nread, &hlen)) {
339 z->next_in = (Bytef *)k->str + hlen;
340 z->avail_in = (uInt)(nread - hlen);
373 ssize_t hlen;
385 switch (check_gzip_header(z->next_in, z->avail_in, &hlen)) {
390 z->next_in = (Bytef *)k->str + hlen + nread - z->avail_in;
391 z->avail_in = (uInt)(z->avail_in - hlen);
/macosx-10.10/libarchive-30/libarchive/libarchive/
H A Darchive_read_support_compression_rpm.c43 size_t hlen; member in struct:rpm
195 rpm->hlen = 0;
228 rpm->hlen = 16 + section * 16 + bytes;
234 n = rpm->hlen - rpm->hpos;
240 if (rpm->hpos == rpm->hlen)
249 rpm->hlen = 0;
/macosx-10.10/xnu-2782.1.97/bsd/netinet6/
H A Dah_output.c195 size_t hlen = 0; /*IP header+option in bytes*/ local
244 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
246 hlen = ip->ip_hl << 2;
249 if (m->m_len != hlen)
563 int hlen; local
569 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
571 hlen = ip->ip_hl << 2;
574 if (m->m_len < hlen) {
580 if (hlen == sizeof(struct ip))
583 optlen = hlen
[all...]
/macosx-10.10/xnu-2782.1.97/bsd/kern/
H A Duipc_mbuf2.c134 int hlen, tlen, olen; local
271 * we need to take hlen from <n, off> and tlen from <n->m_next, 0>,
273 * note that hlen + tlen == len, and tlen > 0.
275 hlen = n->m_len - off;
276 tlen = len - hlen;
285 if (hlen + olen < len) {
311 if ((off == 0 || offp) && M_LEADINGSPACE(n->m_next) >= hlen
313 n->m_next->m_data -= hlen;
314 n->m_next->m_len += hlen;
315 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen);
[all...]
/macosx-10.10/bootp-298/bootpd.tproj/
H A Dbootpdfile.c156 int hlen; local
187 for (hlen = 0; hlen < sizeof(haddr);) {
204 haddr[hlen++] = v;
219 if (htype == HTYPE_ETHER && hlen != NUM_EN_ADDR_BYTES) {
232 (void)hostadd(&S_file_hosts, NULL, htype, haddr, hlen, &iaddr,
/macosx-10.10/mDNSResponder-561.1.1/mDNSCore/
H A Danonymous.c36 int hlen; local
64 if (!NSEC3HashName(rr->name, nsec3, AnonData, len, hashName, &hlen))
69 if (hlen != SHA1_HASH_LENGTH)
71 LogMsg("InitializeNSEC3Record: hlen wrong %d", hlen);
74 mDNSPlatformMemCopy(nxt, hashName, hlen);
264 int hlen; local
386 if (!NSEC3HashName(nsec3RR->name, nsec3, AnonData, AnonDataLen, hashName, &hlen))
391 if (hlen != SHA1_HASH_LENGTH)
393 LogMsg("AnonInfoAnswersQuestion: hlen wron
[all...]

Completed in 201 milliseconds

1234