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

1234567

/freebsd-11-stable/contrib/tcpdump/
H A Dprint-mobility.c207 unsigned mhlen, hlen; local
244 hlen = IP6M_MINLEN;
248 hlen = IP6M_MINLEN;
250 ND_TCHECK_32BITS(&bp[hlen + 4]);
253 EXTRACT_32BITS(&bp[hlen]),
254 EXTRACT_32BITS(&bp[hlen + 4])));
256 hlen += 8;
262 hlen = IP6M_MINLEN;
264 ND_TCHECK_32BITS(&bp[hlen + 4]);
267 EXTRACT_32BITS(&bp[hlen]),
[all...]
H A Dprint-sl.c134 u_int hlen; local
180 hlen = IP_HL(ip);
181 ND_TCHECK(*((const struct tcphdr *)&((const int *)ip)[hlen]));
182 hlen += TH_OFF((const struct tcphdr *)&((const int *)ip)[hlen]);
183 lastlen[dir][lastconn] = length - (hlen << 2);
241 register u_int flags, hlen; local
277 * 'hlen' is the length of the uncompressed TCP/IP header (in words).
279 * 'length - hlen' is the amount of data in the packet.
282 hlen
[all...]
H A Dprint-dccp.c276 u_int hlen; local
311 hlen = dh->dccph_doff * 4;
326 ND_PRINT((ndo, " %d", len - hlen));
327 if (hlen > len) {
329 hlen, len));
489 if (hlen > fixed_hdrlen){
494 hlen -= fixed_hdrlen;
496 optlen = dccp_print_option(ndo, cp, hlen);
499 if (hlen <= optlen)
501 hlen
534 dccp_print_option(netdissect_options *ndo, const u_char *option, u_int hlen) argument
[all...]
/freebsd-11-stable/libexec/bootpd/
H A Dhwaddr.h14 * length of the network hardware address is stored in "hlen".
18 unsigned int hlen; member in struct:hwinfo
33 #define haddrlength(type) ((hwinfolist[(int) (type)]).hlen)
/freebsd-11-stable/usr.sbin/ppp/
H A Dtcpmss.c103 size_t hlen, olen, optlen; local
108 hlen = tc->th_off << 2;
111 if (hlen <= sizeof(struct tcphdr) || hlen > pktlen)
118 for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1);
149 size_t hlen, plen; local
157 hlen = pip->ip_hl << 2;
164 ntohs(pip->ip_len) == plen && hlen <= plen &&
165 plen >= sizeof(struct tcphdr) + hlen)
166 MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), ple
[all...]
H A Dslcompress.c164 register u_int hlen = ip->ip_hl; local
183 th = (struct tcphdr *) & ((int *) ip)[hlen];
235 hlen += th->th_off;
236 hlen <<= 2;
237 if (hlen > m->m_len)
265 oth = (struct tcphdr *) & ((int *) &cs->cs_ip)[hlen];
266 deltaS = hlen;
267 hlen += th->th_off;
268 hlen <<= 2;
269 if (hlen >
434 register u_int hlen, changes; local
[all...]
/freebsd-11-stable/sys/netipsec/
H A Dipsec_mbuf.c46 * Make space for a new header of length hlen at skip bytes
54 m_makespace(struct mbuf *m0, int skip, int hlen, int *off) argument
60 IPSEC_ASSERT(hlen < MHLEN, ("hlen too big: %u", hlen));
76 hlen + max_linkhdr < M_LEADINGSPACE(m)) {
85 m->m_data -= hlen;
86 bcopy(mtodo(m, hlen), mtod(m, caddr_t), skip);
87 m->m_len += hlen;
89 } else if (hlen > M_TRAILINGSPAC
243 m_striphdr(struct mbuf *m, int skip, int hlen) argument
298 bcopy(mtod(m1, u_char *) + roff + hlen, local
[all...]
H A Dudpencap.c123 int hlen; local
151 hlen = ip->ip_hl << 2;
172 udp = mtodo(m, hlen);
196 m_striphdr(m, hlen, sizeof(*udp));
208 (*sav->tdb_xform->xf_input)(m, sav, hlen, off);
218 int hlen, off; local
226 hlen = ip->ip_hl << 2;
227 n = m_makespace(m, hlen, sizeof(*udp), &off);
237 udp->uh_ulen = htons(m->m_pkthdr.len - hlen);
/freebsd-11-stable/sys/net/
H A Dslcompress.c157 u_int hlen = ip->ip_hl; local
174 th = (struct tcphdr *)&((int32_t *)ip)[hlen];
223 hlen += th->th_off;
224 hlen <<= 2;
225 if (hlen > m->m_len)
253 oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen];
254 deltaS = hlen;
255 hlen += th->th_off;
256 hlen <<= 2;
257 if (hlen >
413 int hlen, vjlen; local
458 u_int hlen, changes; local
[all...]
H A Dif_me.c425 int hlen; local
433 hlen = sizeof(struct mobhdr);
434 if (m->m_pkthdr.len < sizeof(struct ip) + hlen)
435 hlen -= sizeof(struct in_addr);
436 if (m->m_len < sizeof(struct ip) + hlen)
437 m = m_pullup(m, sizeof(struct ip) + hlen);
447 if (hlen != sizeof(struct mobhdr)) {
452 hlen = sizeof(struct mobhdr) - sizeof(struct in_addr);
454 if (me_in_cksum((uint16_t *)mh, hlen / sizeof(uint16_t)) != 0) {
465 ip->ip_len = htons(m->m_pkthdr.len - hlen);
564 int error, hlen, plen; local
[all...]
/freebsd-11-stable/sys/netpfil/ipfw/pmod/
H A Dtcpmod.c125 int hlen, plen, proto; local
128 hlen = sizeof(*ip6);
138 hbh = mtodo(*mp, hlen);
140 hlen += (hbh->ip6h_len + 1) << 3;
142 tcp = mtodo(*mp, hlen);
143 plen = (*mp)->m_pkthdr.len - hlen;
144 hlen = tcp->th_off << 2;
146 if (hlen <= sizeof(struct tcphdr) || hlen > plen)
148 return (tcpmod_setmss(mp, tcp, hlen, ms
158 int hlen, plen; local
[all...]
/freebsd-11-stable/contrib/ipfilter/ipsend/
H A Dip.c161 int i, sent = 0, ts, hlen, olen; local
163 hlen = IP_HL(ip) << 2;
164 if (mtu < (hlen + 8)) {
166 mtu, hlen);
201 s = (char *)ip + hlen;
202 iplen = ntohs(ip->ip_len) - hlen;
207 if ((sent + (mtu - hlen)) >= iplen)
213 ts = (mtu - hlen);
216 ts += hlen;
219 ip->ip_sum = chksum((u_short *)ip, hlen);
252 int thlen, i, iplen, hlen; local
[all...]
/freebsd-11-stable/sys/netgraph/
H A Dng_checksum.c312 int hlen, plen; local
323 hlen = ip4->ip_hl << 2;
326 if (hlen < sizeof(struct ip) || m->m_pkthdr.len < l3_offset + plen)
333 if (hlen == sizeof(struct ip))
336 ip4->ip_sum = in_cksum_skip(m, l3_offset + hlen, l3_offset);
344 pullup_len = l3_offset + hlen;
359 th = (struct tcphdr *) mtodo(m, l3_offset + hlen);
362 ip4->ip_dst.s_addr, htons(ip4->ip_p + plen - hlen));
365 th->th_sum = in_cksum_skip(m, l3_offset + plen, l3_offset + hlen);
380 uh = (struct udphdr *) mtodo(m, l3_offset + hlen);
422 int hlen, plen; local
[all...]
/freebsd-11-stable/sys/i386/ibcs2/
H A Dibcs2_socksys.c169 int error, sctl[2], hlen; local
189 hlen = strlen(hname);
190 ptr = hname + hlen;
191 if ((u_int)uap->len > (sizeof (hname) - hlen - 1))
202 hlen = strlen(hname) + 1;
203 return (kernel_sysctl(td, sctl, 2, 0, 0, hname, hlen, 0, 0));
/freebsd-11-stable/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c513 uint16_t hlen, len, offset; local
517 hlen = sizeof(struct ip6_hdr);
520 if (ip_off == 0 && plen <= mtu - hlen) {
521 M_PREPEND(m, hlen, M_NOWAIT);
526 bcopy(ip6, mtod(m, void *), hlen);
536 hlen += sizeof(struct ip6_frag);
569 M_PREPEND(m, hlen, M_NOWAIT);
854 int len, hlen, plen; local
986 hlen = offset + ICMP_MINLEN;
987 if (m->m_pkthdr.len < hlen
1131 int proto, hlen; local
1180 int plen, hlen; local
1283 nat64_handle_icmp6(struct mbuf *m, int hlen, uint32_t aaddr, uint16_t aport, struct nat64_config *cfg, void *logdata) argument
1514 int plen, hlen, proto; local
[all...]
H A Dnat64clat.c156 int hlen, proto; local
158 hlen = 0;
160 proto = nat64_getlasthdr(m, &hlen);
165 icmp6 = mtodo(m, hlen);
176 hlen += sizeof(struct icmp6_hdr);
177 if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) {
181 if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN)
182 m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN);
191 ip6i = mtodo(m, hlen);
H A Dnat64stl.c156 int hlen, proto; local
158 hlen = 0;
160 proto = nat64_getlasthdr(m, &hlen);
165 icmp6 = mtodo(m, hlen);
176 hlen += sizeof(struct icmp6_hdr);
177 if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) {
181 if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN)
182 m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN);
191 ip6i = mtodo(m, hlen);
/freebsd-11-stable/sys/kern/
H A Duipc_mbuf2.c98 int hlen, tlen, olen; local
186 * we need to take hlen from <n, off> and tlen from <n->m_next, 0>,
188 * note that hlen + tlen == len, and tlen > 0.
190 hlen = n->m_len - off;
191 tlen = len - hlen;
200 if (hlen + olen < len) {
216 if ((off == 0 || offp) && M_LEADINGSPACE(n->m_next) >= hlen
218 n->m_next->m_data -= hlen;
219 n->m_next->m_len += hlen;
220 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen);
[all...]
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_ftp.c229 int hlen, tlen, dlen, pflags; local
236 hlen = (pip->ip_hl + tc->th_off) << 2;
238 dlen = tlen - hlen;
242 sptr += hlen;
294 int hlen, tlen, dlen, pflags; local
300 hlen = (pip->ip_hl + tc->th_off) << 2;
302 dlen = tlen - hlen;
306 sptr += hlen;
666 int slen, hlen, tlen, dlen; local
676 hlen
[all...]
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_fil_freebsd.c347 int tlen = 0, hlen; local
366 hlen = (fin->fin_v == 6) ? sizeof(ip6_t) : sizeof(ip_t);
368 hlen = sizeof(ip_t);
377 if (sizeof(*tcp2) + hlen > MLEN) {
384 m->m_len = sizeof(*tcp2) + hlen;
389 bzero((char *)ip, hlen);
393 tcp2 = (struct tcphdr *)((char *)ip + hlen);
431 tcp2->th_sum = in_cksum(m, hlen + sizeof(*tcp2));
432 ip->ip_len = htons(hlen + sizeof(*tcp2));
447 int hlen; local
510 int err, hlen, xtra, iclen, ohlen, avail, code; local
696 int len, off, error = 0, hlen, code; local
[all...]
/freebsd-11-stable/contrib/sendmail/src/
H A Dtlsh.c25 ** hlen -- length of output buffer
33 data2hex(buf, blen, hex, hlen)
37 int hlen;
44 if (blen * 3 + 2 > hlen)
47 for (r = 0, h = 0; r < blen && h + 3 < hlen; r++)
54 if (h >= hlen)
/freebsd-11-stable/usr.bin/systat/
H A Dswap.c62 static int hlen; variable
124 header = getbsize(&hlen, &blocksize);
178 -dlen, "Disk", hlen, header, ulen, "Used",
212 dlen + hlen + ulen + 1,
220 wprintw(wnd, "%*d", hlen, CONVERT(kvmsw[i].ksw_total));
/freebsd-11-stable/sbin/dhclient/
H A Dparse.c160 size_t hlen; local
189 hlen = 0;
190 t = parse_numeric_aggregate(cfile, NULL, &hlen, COLON, 16, 8);
193 if (hlen > sizeof(hardware->haddr)) {
197 hardware->hlen = hlen;
199 hardware->hlen);
200 if (hlen < sizeof(hardware->haddr))
201 memset(&hardware->haddr[hlen], 0,
202 sizeof(hardware->haddr) - hlen);
[all...]
/freebsd-11-stable/contrib/wpa/src/tls/
H A Dtlsv1_common.c344 size_t hlen; local
351 hlen = SHA256_MAC_LEN;
355 hlen = 48;
359 hlen = 64;
370 if (crypto_hash_finish(ctx, hash, &hlen) < 0)
373 return hlen;
384 size_t hlen; local
395 hlen = MD5_MAC_LEN;
396 if (crypto_hash_finish(ctx, hash, &hlen) < 0)
398 hpos += hlen;
[all...]
/freebsd-11-stable/sys/netinet/
H A Dip_output.c215 int hlen = sizeof (struct ip); local
255 hlen = len; /* ip->ip_hl is updated above */
263 ip->ip_hl = hlen >> 2;
266 /* Header already set, fetch hlen from there */
267 hlen = ip->ip_hl << 2;
468 ip_mloopback(ifp, m, hlen);
570 hlen = ip->ip_hl << 2;
627 ip->ip_sum = in_cksum(m, hlen);
737 int hlen = ip->ip_hl << 2; local
738 int len = (mtu - hlen)
1363 ip_mloopback(struct ifnet *ifp, const struct mbuf *m, int hlen) argument
[all...]

Completed in 218 milliseconds

1234567