Searched refs:hlen (Results 101 - 125 of 179) sorted by relevance

12345678

/freebsd-13-stable/sys/netinet6/
H A Dip6_output.c254 ip6_fragment(struct ifnet *ifp, struct mbuf *m0, int hlen, u_char nextproto, argument
270 for (off = hlen; off < tlen; off += fraglen) {
296 error = ip6_insertfraghdr(m0, m, hlen, &ip6f);
301 ip6f->ip6f_offlg = htons((u_short)((off - hlen) & ~7));
306 mhip6->ip6_plen = htons((u_short)(fraglen + hlen +
313 m->m_pkthdr.len = fraglen + hlen + sizeof(*ip6f);
1300 ip6_copyexthdr(struct mbuf **mp, caddr_t hdr, int hlen) argument
1304 if (hlen > MCLBYTES)
1307 if (hlen > MLEN)
1313 m->m_len = hlen;
1413 ip6_insertfraghdr(struct mbuf *m0, struct mbuf *m, int hlen, struct ip6_frag **frghdrp) argument
[all...]
/freebsd-13-stable/lib/libdpv/
H A Ddprompt.c395 int hlen; local
591 hlen = (int)strlen(human);
592 lsize = (pbar_size - hlen) / 2;
594 if ((lsize+hlen+rsize) != pbar_size)
/freebsd-13-stable/contrib/bearssl/src/codec/
H A Dpemdec.c94 ctx->hlen = len;
96 return len - ctx->hlen;
479 if (CTX->hlen > 0) {
481 CTX->hlen --;
/freebsd-13-stable/contrib/ipfilter/
H A Dip_fil.c771 ipf_pcksum(fin, hlen, sum)
773 int hlen;
780 slen = fin->fin_plen - hlen;
781 sp = (u_short *)((u_char *)fin->fin_ip + hlen);
/freebsd-13-stable/sys/netinet/libalias/
H A Dalias_proxy.c327 int hlen; local
330 hlen = (pip->ip_hl + tc->th_off) << 2;
331 dlen = ntohs(pip->ip_len) - hlen;
338 p += hlen;
/freebsd-13-stable/usr.sbin/bhyve/
H A Dpci_virtio_net.c206 iov_trim_hdr(struct iovec *iov, int *iovcnt, unsigned int hlen) argument
210 if (iov[0].iov_len < hlen) {
218 iov[0].iov_len -= hlen;
230 iov[0].iov_base = (void *)((uintptr_t)iov[0].iov_base + hlen);
/freebsd-13-stable/sys/netpfil/ipfw/
H A Dip_fw_pfil.c477 int hlen; local
489 hlen = ip->ip_hl << 2;
491 if (hlen == sizeof(struct ip))
494 ip->ip_sum = in_cksum(reass, hlen);
/freebsd-13-stable/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.h148 int nat64_handle_icmp6(struct mbuf *m, int hlen, uint32_t aaddr,
/freebsd-13-stable/contrib/traceroute/
H A Dtraceroute.c1406 register int hlen; local
1411 hlen = ip->ip_hl << 2;
1412 if (cc < hlen + ICMP_MINLEN) {
1418 cc -= hlen;
1419 icp = (struct icmp *)(buf + hlen);
1445 hlen = hip->ip_hl << 2;
1446 inner = (u_char *)((u_char *)hip + hlen);
1447 if (hlen + 16 <= cc
1707 register int hlen; local
1711 hlen
[all...]
/freebsd-13-stable/libexec/bootpd/
H A Ddumptab.c191 int hlen = haddrlength(hp->htype);
195 haddrtoa(hp->haddr, hlen));
190 int hlen = haddrlength(hp->htype); local
/freebsd-13-stable/sys/netgraph/
H A Dng_tcpmss.c411 correct_mss(struct tcphdr *tc, int hlen, uint16_t maxmss, int flags) argument
419 for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1);
/freebsd-13-stable/sys/netinet/
H A Dif_ether.c684 int hlen; local
707 hlen = 0;
711 hlen = ETHER_ADDR_LEN; /* RFC 826 */
715 hlen = 20; /* RFC 4391, INFINIBAND_ALEN */
719 hlen = 0; /* SHALL be 16 */ /* RFC 2734 */
728 hlen = 16;
738 if (hlen != 0 && hlen != ar->ar_hln) {
H A Dip_reass.c190 int i, hlen, next, tmpmax; local
213 hlen = ip->ip_hl << 2;
219 ip->ip_len = htons(ntohs(ip->ip_len) - hlen);
264 m->m_data += hlen;
265 m->m_len -= hlen;
H A Dip_gre.c529 in_gre_output(struct mbuf *m, int af, int hlen) argument
538 * m_data is contiguous more than hlen bytes. Use m_copydata()
541 m_copydata(m, hlen + offsetof(struct ip, ip_tos),
543 m_copydata(m, hlen + offsetof(struct ip, ip_id),
/freebsd-13-stable/sys/dev/ixl/
H A Dixl_txrx.c159 int count, curseg, i, hlen, segsz, seglen, tsolen; local
166 hlen = pi->ipi_ehdrlen + pi->ipi_ip_hlen + pi->ipi_tcp_hlen;
167 tsolen = pi->ipi_len - hlen;
171 while (hlen > 0) {
182 seglen = min(curseg, hlen);
184 hlen -= seglen;
/freebsd-13-stable/sys/contrib/ipfilter/netinet/
H A Dfil.c1684 int hlen, ol, mv, p, i; local
1692 hlen = fin->fin_hlen;
1795 if (hlen == sizeof(*ip)) {
1811 for (s = (u_char *)(ip + 1), hlen -= (int)sizeof(*ip); hlen > 0; ) {
1818 if (hlen < 2)
1821 if (ol < 2 || ol > hlen)
1865 hlen -= ol;
2024 /* Parameters: hlen(I) - length of IP packet header */
2034 ipf_makefrip(hlen, i
3402 int hlen; local
8476 int elen, hlen, nh; local
[all...]
/freebsd-13-stable/sys/netpfil/pf/
H A Dpf_norm.c1030 int hlen = h->ip_hl << 2; local
1074 if (hlen < (int)sizeof(struct ip)) {
1079 if (hlen > ntohs(h->ip_len)) {
1105 ip_len = ntohs(h->ip_len) - hlen;
1485 int hlen; local
1487 hlen = (th->th_off << 2) - sizeof(struct tcphdr);
1488 while (hlen >= TCPOLEN_TIMESTAMP) {
1493 hlen--;
1514 hlen -= MAX(opt[1], 2);
1587 int hlen; local
[all...]
/freebsd-13-stable/sys/net/
H A Dif_ethersubr.c288 int hlen; /* link layer header length */ local
299 hlen = ro->ro_plen;
322 hlen = lle->r_hdrlen;
344 hlen = ETHER_HDR_LEN;
367 M_PREPEND(m, hlen, M_NOWAIT);
372 memcpy(eh, phdr, hlen);
402 (void)if_simloop(ifp, n, dst->sa_family, hlen);
/freebsd-13-stable/crypto/openssh/regress/
H A Dnetcat.c1455 size_t hlen, wlen = 0; local
1507 hlen = strlen(host);
1508 if (hlen > 255)
1514 buf[4] = hlen;
1515 memcpy(buf + 5, host, hlen);
1516 memcpy(buf + 5 + hlen, &serverport, sizeof serverport);
1517 wlen = 7 + hlen;
/freebsd-13-stable/crypto/openssh/
H A Dsftp-server.c343 handle_from_string(const u_char *handle, u_int hlen) argument
347 if (hlen != sizeof(int32_t))
469 size_t hlen; local
472 if ((r = sshbuf_get_string(queue, &handle, &hlen)) != 0)
474 if (hlen < 256)
475 *hp = handle_from_string(handle, hlen);
562 int hlen; local
564 handle_to_string(handle, &string, &hlen);
566 send_data_or_handle(SSH2_FXP_HANDLE, id, string, hlen);
/freebsd-13-stable/contrib/wpa/src/eap_common/
H A Deap_sim_common.c263 size_t hlen; local
267 hlen = res_len > SHA256_MAC_LEN ? SHA256_MAC_LEN : res_len;
268 os_memcpy(res, hash, hlen);
269 res += hlen;
270 res_len -= hlen;
/freebsd-13-stable/sbin/routed/
H A Drdisc.c937 int n, fromlen, cc, hlen; local
971 hlen = buf.pkt.ip.ip_hl << 2;
972 if (cc < hlen + ICMP_MINLEN)
974 p = (union ad_u *)&buf.pkt.b[hlen];
975 cc -= hlen;
/freebsd-13-stable/contrib/bearssl/src/x509/
H A Dskey_decoder.c98 ctx->hlen = len;
547 size_t clen = CTX->hlen;
555 CTX->hlen -= clen;
564 if (CTX->hlen == 0) {
567 CTX->hlen --;
/freebsd-13-stable/sys/netgraph/atm/ccatm/
H A Dng_ccatm.c950 pack_buf(void *h, size_t hlen, void *t, size_t tlen) argument
961 KASSERT(hlen <= MHLEN, ("hlen > MHLEN"));
963 bcopy(h, m0->m_data, hlen);
964 m0->m_len = hlen;
965 m0->m_pkthdr.len = hlen;
/freebsd-13-stable/contrib/wpa/src/utils/
H A Dcommon.c680 size_t tlen, hlen = os_strlen(value); local
681 if (hlen & 1)
683 tlen = hlen / 2;

Completed in 194 milliseconds

12345678