/freebsd-11-stable/contrib/wpa/src/tls/ |
H A D | tlsv1_server_write.c | 567 int hlen; local 571 hlen = tlsv12_key_x_server_params_hash( 587 if (hlen < 0 || end - pos < 2) { 609 hlen += 19; 620 hlen = tls_key_x_server_params_hash( 626 if (hlen < 0) { 633 hash, hlen); 637 hash[hlen - 1] ^= 0x80; 657 crypto_private_key_sign_pkcs1(conn->cred->key, hash, hlen, 835 size_t rlen, hlen; local [all...] |
H A D | tlsv1_record.c | 282 size_t i, rlen, hlen; local 451 hlen = sizeof(hash); 452 if (crypto_hash_finish(hmac, hash, &hlen) < 0) { 458 if (hlen != rl->hash_size || 459 os_memcmp_const(hash, out_data + plen, hlen) != 0 ||
|
H A D | tlsv1_client_read.c | 728 int hlen; local 753 hlen = tlsv12_key_x_server_params_hash( 763 hlen = tls_key_x_server_params_hash( 769 if (hlen < 0) 772 hash, hlen); 776 hash, hlen, pos, end - pos, 1315 size_t left, len, hlen; local 1374 hlen = SHA256_MAC_LEN; 1376 crypto_hash_finish(conn->verify.sha256_server, hash, &hlen) 1387 hlen [all...] |
/freebsd-11-stable/sys/netinet/ |
H A D | ip_input.c | 425 int hlen; local 428 hlen = ip->ip_hl << 2; 432 if (IPSEC_INPUT(ipv4, m, hlen, ip->ip_p) != 0) 437 (*inetsw[ip_protox[ip->ip_p]].pr_input)(&m, &hlen, ip->ip_p); 454 int checkif, hlen = 0; local 465 hlen = ip->ip_hl << 2; 487 hlen = ip->ip_hl << 2; 488 if (hlen < sizeof(struct ip)) { /* minimum header length */ 492 if (hlen > m->m_len) { 493 if ((m = m_pullup(m, hlen)) [all...] |
H A D | ip_icmp.c | 397 int hlen = *offp; local 423 i = hlen + min(icmplen, ICMP_ADVLENMIN); 429 m->m_len -= hlen; 430 m->m_data += hlen; 436 m->m_len += hlen; 437 m->m_data -= hlen; 919 int hlen; local 922 hlen = ip->ip_hl << 2; 923 m->m_data += hlen; 924 m->m_len -= hlen; [all...] |
/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-ip.c | 547 u_int hlen; local 569 hlen = IP_HL(ipds->ip) * 4; 570 if (hlen < sizeof (struct ip)) { 571 ND_PRINT((ndo, "bad-hlen %u", hlen)); 579 if (ipds->len < hlen) { 602 ipds->len -= hlen; 645 if ((hlen - sizeof(struct ip)) > 0) { 647 ip_optprint(ndo, (const u_char *)(ipds->ip + 1), hlen - sizeof(struct ip)); 651 if (!ndo->ndo_Kflag && (const u_char *)ipds->ip + hlen < [all...] |
/freebsd-11-stable/sbin/ping/ |
H A D | ping.c | 1118 int dupflag, hlen, i, j, recv_len, seq; local 1124 hlen = ip->ip_hl << 2; 1126 if (cc < hlen + ICMP_MINLEN) { 1134 cc -= hlen; 1135 icp = (struct icmp *)(buf + hlen); 1284 for (; hlen > (int)sizeof(struct ip); --hlen, ++cp) 1287 hlen = 0; 1294 hlen -= 2; 1297 j <= hlen 1672 int hlen; local 1734 int hlen; local [all...] |
/freebsd-11-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-bootloader.h | 94 uint16_t hlen; /* Length of header in bytes */ member in struct:bootloader_header
|
/freebsd-11-stable/sys/net/ |
H A D | flowtable.c | 301 int hlen; local 316 hlen = sizeof(struct ip6_hdr); 331 PULLUP_TO(hlen, ulp, struct tcphdr); 338 PULLUP_TO(hlen, ulp, struct sctphdr); 344 PULLUP_TO(hlen, ulp, struct udphdr); 349 PULLUP_TO(hlen, ulp, struct ip6_hbh); 350 hlen += (((struct ip6_hbh *)ulp)->ip6h_len + 1) << 3; 355 PULLUP_TO(hlen, ulp, struct ip6_rthdr); 356 hlen += (((struct ip6_rthdr *)ulp)->ip6r_len + 1) << 3; 361 PULLUP_TO(hlen, ul [all...] |
H A D | if_loop.c | 276 * This function expects the packet to include the media header of length hlen. 279 if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen) argument 301 if (hlen > 0) { 320 if (hlen > 0) { 321 m_adj(m, hlen); 328 KASSERT(hlen >= 3, ("if_simloop: hlen too small"));
|
H A D | bpf.c | 479 int hlen; local 495 hlen = 0; 501 hlen = ETHER_HDR_LEN; 506 hlen = 0; 511 hlen = 0; 520 hlen = 4; 530 hlen = 12; /* XXX 4(ATM_PH) + 3(LLC) + 5(SNAP) */ 535 hlen = 4; /* This should match PPP_HDRLEN */ 540 hlen = 0; 546 hlen 612 bcopy(mtod(m, const void *), sockp->sa_data, hlen); local 1111 int error, hlen; local [all...] |
/freebsd-11-stable/crypto/openssh/ |
H A D | ssh-rsa.c | 310 size_t rsasize = 0, oidlen = 0, hlen = 0; local 318 hlen = ssh_digest_bytes(hash_alg); 319 if (hashlen != hlen) { 338 if (len < 0 || (size_t)len != hlen + oidlen) { 343 hashmatch = timingsafe_bcmp(decrypted + oidlen, hash, hlen) == 0;
|
/freebsd-11-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_log.c | 99 ipfw_log(struct ip_fw_chain *chain, struct ip_fw *f, u_int hlen, argument 282 if (hlen == 0) { /* non-ip */ 314 tcp = (struct tcphdr *)(((char *)ip) + hlen); 315 udp = (struct udphdr *)(((char *)ip) + hlen); 365 icmp6 = (struct icmp6_hdr *)(((char *)ip) + hlen); 389 ntohs(ip6->ip6_plen) - hlen,
|
H A D | ip_fw_pfil.c | 479 int hlen; local 491 hlen = ip->ip_hl << 2; 493 if (hlen == sizeof(struct ip)) 496 ip->ip_sum = in_cksum(reass, hlen);
|
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ |
H A D | ip_log.c | 358 register size_t hlen; local 377 hlen = (char *)fin->fin_dp - (char *)fin->fin_ip; 385 hlen += MIN(sizeof(tcphdr_t), fin->fin_dlen); 387 hlen += MIN(sizeof(udphdr_t), fin->fin_dlen); 405 hlen += MIN(sizeof(struct icmp) + 8, 409 hlen += MIN(sizeof(struct icmp), 426 hlen += MIN(sizeof(struct icmp6_hdr) + 8, 429 hlen += MIN(sizeof(struct icmp6_hdr), 461 mlen = fin->fin_plen - hlen; 470 ipfl.fl_hlen = (u_char)hlen; [all...] |
/freebsd-11-stable/contrib/wpa/src/common/ |
H A D | dhcp.h | 43 u8 hlen; member in struct:dhcp_data 62 u8 hlen; member in struct:bootp_pkt
|
/freebsd-11-stable/sbin/dhclient/ |
H A D | dhcp.h | 61 u_int8_t hlen; /* Hardware addr length */ member in struct:dhcp_packet
|
/freebsd-11-stable/contrib/libreadline/ |
H A D | isearch.c | 96 cxt->hlen = cxt->hindex = 0; 223 cxt->lines = (char **)xmalloc ((1 + (cxt->hlen = i)) * sizeof (char *)); 224 for (i = 0; i < cxt->hlen; i++) 237 cxt->hlen++; 560 if ((cxt->sflags & SF_REVERSE) ? (cxt->history_pos < 0) : (cxt->history_pos == cxt->hlen))
|
/freebsd-11-stable/sys/netipsec/ |
H A D | xform_ipcomp.c | 198 int error, hlen = IPCOMP_HLENGTH; local 206 if (m->m_len < skip + hlen && (m = m_pullup(m, skip + hlen)) == NULL) { 238 crdc->crd_skip = skip + hlen; 239 crdc->crd_len = m->m_pkthdr.len - (skip + hlen); 247 crp->crp_ilen = m->m_pkthdr.len - (skip + hlen); 284 int hlen = IPCOMP_HLENGTH, error, clen; local 333 m->m_pkthdr.len = clen + hlen + skip; 335 if (m->m_len < skip + hlen && (m = m_pullup(m, skip + hlen)) [all...] |
/freebsd-11-stable/sbin/camcontrol/ |
H A D | modeedit.c | 708 size_t len, hlen, mphlen; local 734 hlen = sizeof(*mh); 738 mh->data_length + 1 - hlen - 749 hlen = sizeof(*mh); 753 scsi_2btoul(mh->data_length) + 1 - hlen - 785 task_attr, retries, timeout, data, hlen + mphlen + len); 794 size_t len, hlen; local 808 hlen = sizeof(*mh); 817 hlen = sizeof(*mh); 835 task_attr, retries, timeout, data, hlen [all...] |
/freebsd-11-stable/sys/dev/hyperv/vmbus/ |
H A D | vmbus_chan.c | 1020 int pktlen, pad_pktlen, hlen, error; local 1025 hlen = sizeof(pkt); 1026 pktlen = hlen + dlen; 1033 VMBUS_CHANPKT_SETLEN(pkt.cp_hdr.cph_hlen, hlen); 1038 iov[0].iov_len = hlen; 1055 int pktlen, pad_pktlen, hlen, error; local 1060 hlen = __offsetof(struct vmbus_chanpkt_sglist, cp_gpa[sglen]); 1061 pktlen = hlen + dlen; 1068 VMBUS_CHANPKT_SETLEN(pkt.cp_hdr.cph_hlen, hlen); 1095 int pktlen, pad_pktlen, hlen, erro local 1135 int error, dlen, hlen; local [all...] |
/freebsd-11-stable/sys/netinet/libalias/ |
H A D | alias_pptp.c | 440 int hlen, tlen, dlen; local 446 hlen = (pip->ip_hl + tc->th_off) << 2; 448 dlen = tlen - hlen;
|
H A D | alias_skinny.c | 305 size_t hlen, tlen, dlen; local 314 hlen = (pip->ip_hl + tc->th_off) << 2; 316 dlen = tlen - hlen;
|
/freebsd-11-stable/crypto/openssl/ssl/ |
H A D | kssl.h | 180 const char *svc, int hlen,
|
/freebsd-11-stable/sys/netinet6/ |
H A D | ip6_gre.c | 127 in6_gre_output(struct mbuf *m, int af, int hlen) argument
|