/freebsd/sbin/ipf/ipsend/ |
H A D | ip.c | 85 int err, iplen; in send_ip() local 114 iplen = ip->ip_len; in send_ip() 115 ip->ip_len = htons(iplen); in send_ip() 132 if (!frag || (sizeof(*eh) + iplen < mtu)) in send_ip() 137 bcopy((char *)ip, ipbuf + sizeof(*eh), iplen); in send_ip() 138 err = sendip(nfd, ipbuf, sizeof(*eh) + iplen); in send_ip() 191 iplen = ntohs(ip->ip_len) - hlen; in send_ip() 196 if ((sent + (mtu - hlen)) >= iplen) in send_ip() 199 ts = iplen - sent; in send_ip() 239 int thlen, i, iplen, hlen; in send_tcp() local [all …]
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | x509_vpm.c | 214 if (!X509_VERIFY_PARAM_set1_ip(dest, src->ip, src->iplen)) in X509_VERIFY_PARAM_inherit() 452 *plen = param->iplen; in int_X509_VERIFY_PARAM_get0_ip() 458 size_t iplen; in X509_VERIFY_PARAM_get1_ip_asc() local 459 unsigned char *ip = int_X509_VERIFY_PARAM_get0_ip(param, &iplen); in X509_VERIFY_PARAM_get1_ip_asc() 461 return ip == NULL ? NULL : ossl_ipaddr_to_asc(ip, iplen); in X509_VERIFY_PARAM_get1_ip_asc() 465 const unsigned char *ip, size_t iplen) in X509_VERIFY_PARAM_set1_ip() argument 467 if (iplen != 0 && iplen != 4 && iplen != 16) { in X509_VERIFY_PARAM_set1_ip() 471 return int_x509_param_set1((char **)¶m->ip, ¶m->iplen, in X509_VERIFY_PARAM_set1_ip() 472 (char *)ip, iplen); in X509_VERIFY_PARAM_set1_ip() 478 size_t iplen = (size_t)ossl_a2i_ipadd(ipout, ipasc); in X509_VERIFY_PARAM_set1_ip_asc() local [all …]
|
H A D | v3_utl.c | 1056 size_t iplen; in X509_check_ip_asc() local 1060 iplen = (size_t)ossl_a2i_ipadd(ipout, ipasc); in X509_check_ip_asc() 1061 if (iplen == 0) in X509_check_ip_asc() 1063 return do_x509_check(x, (char *)ipout, iplen, flags, GEN_IPADD, NULL); in X509_check_ip_asc() 1105 int iplen; in a2i_IPADDRESS() local 1109 iplen = ossl_a2i_ipadd(ipout, ipasc); in a2i_IPADDRESS() 1111 if (!iplen) in a2i_IPADDRESS() 1117 if (!ASN1_OCTET_STRING_set(ret, ipout, iplen)) { in a2i_IPADDRESS()
|
H A D | x509_local.h | 38 size_t iplen; /* Length of IP address */ member
|
H A D | x509_vfy.c | 802 if (vpm->ip != NULL && X509_check_ip(x, vpm->ip, vpm->iplen, 0) <= 0) { in check_id()
|
/freebsd/sys/netipsec/ |
H A D | xform_ah.c | 852 uint16_t iplen; in ah_output() local 1013 (caddr_t) &iplen, sizeof(u_int16_t)); in ah_output() 1014 iplen = htons(ntohs(iplen) + ahsize); in ah_output() 1016 sizeof(u_int16_t), (caddr_t) &iplen); in ah_output() 1024 (caddr_t) &iplen, sizeof(uint16_t)); in ah_output() 1025 iplen = htons(ntohs(iplen) + ahsize); in ah_output() 1027 sizeof(uint16_t), (caddr_t) &iplen); in ah_output()
|
/freebsd/sys/netinet/ |
H A D | ip_carp.c | 521 int iplen; in carp_input() local 525 iplen = *offp; in carp_input() 536 if (m->m_pkthdr.len < iplen + sizeof(*vh)) { in carp_input() 545 if (m->m_len < iplen + sizeof(*vh)) { in carp_input() 546 if ((m = m_pullup(m, iplen + sizeof(*vh))) == NULL) { in carp_input() 554 vh = (struct vrrpv3_header *)((char *)ip + iplen); in carp_input() 572 if (m->m_pkthdr.len < iplen + minlen) { in carp_input() 576 iplen + minlen, in carp_input() 582 if (m->m_len < iplen + minlen) { in carp_input() 583 if ((m = m_pullup(m, iplen + minlen)) == NULL) { in carp_input() [all …]
|
/freebsd/sys/netpfil/ipfw/ |
H A D | ip_fw_log.c | 408 int ipoff, iplen; in ipfw_log() local 410 iplen = ntohs(ip->ip_len); in ipfw_log() 414 ntohs(ip->ip_id), iplen - (ip->ip_hl << 2), in ipfw_log()
|
H A D | ip_fw2.c | 996 send_reject(struct ip_fw_args *args, const ipfw_insn *cmd, int iplen, in send_reject() argument 1045 if (iplen >= (ip->ip_hl << 2) + sizeof(struct sctphdr) + in send_reject() 1060 if (iplen > in send_reject() 1066 if ((iplen >= (ip->ip_hl << 2) + in send_reject() 1433 int iplen = 0; in ipfw_chk() local 1741 iplen = ntohs(ip6->ip6_plen) + sizeof(*ip6); in ipfw_chk() 1756 iplen = ntohs(ip->ip_len); in ipfw_chk() 1818 pktlen = iplen < pktlen ? iplen: pktlen; in ipfw_chk() 2353 x = iplen; in ipfw_chk() 2423 x = iplen - hlen; in ipfw_chk() [all …]
|
/freebsd/sys/dev/usb/net/ |
H A D | uhso.c | 1667 uint16_t iplen; in uhso_if_rxflush() local 1709 iplen = htons(ip->ip_len); in uhso_if_rxflush() 1715 iplen = htons(ip6->ip6_plen); in uhso_if_rxflush() 1730 if (iplen == 0) { in uhso_if_rxflush() 1740 m, m->m_pkthdr.len, cp, iplen); in uhso_if_rxflush() 1745 if (iplen < m->m_pkthdr.len) { in uhso_if_rxflush() 1753 memcpy(mtod(m, uint8_t *), mtod(m0, uint8_t *), iplen); in uhso_if_rxflush() 1754 m->m_pkthdr.len = m->m_len = iplen; in uhso_if_rxflush() 1757 m_adj(m0, iplen); in uhso_if_rxflush() 1764 else if (iplen > m->m_pkthdr.len) { in uhso_if_rxflush()
|
/freebsd/sys/dev/qlxgbe/ |
H A D | ql_isr.c | 196 uint32_t i, rem_len = 0, pkt_length, iplen; in qla_lro_intr() local 309 iplen = (ip->ip_hl << 2) + (th->th_off << 2) + in qla_lro_intr() 312 ip->ip_len = htons(iplen); in qla_lro_intr() 321 iplen = (th->th_off << 2) + sgc->payload_length; in qla_lro_intr() 323 ip6->ip6_plen = htons(iplen); in qla_lro_intr()
|
/freebsd/sys/dev/e1000/ |
H A D | e1000_82575.h | 101 u32 iplen:9; member
|
/freebsd/sys/dev/irdma/ |
H A D | irdma_puda.c | 467 u32 iplen, l4len; in irdma_puda_send() local 476 iplen = 5; in irdma_puda_send() 479 iplen = 10; in irdma_puda_send() 507 FIELD_PREP(IRDMA_UDA_QPSQ_IPLEN, iplen) | in irdma_puda_send()
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | X509_VERIFY_PARAM_set_flags.pod | 69 const unsigned char *ip, size_t iplen); 205 B<iplen> must be set to 4 for IPv4 and 16 for IPv6. When an IP
|
/freebsd/sys/dev/hyperv/netvsc/ |
H A D | if_hn.c | 4829 int len, iphlen, iplen; in hn_check_iplen() local 4854 iplen = ntohs(ip->ip_len); in hn_check_iplen() 4860 if (m->m_pkthdr.len < hoff + iplen) in hn_check_iplen() 4875 if (iplen < iphlen + sizeof(struct tcphdr)) in hn_check_iplen() 4881 if (thoff < sizeof(struct tcphdr) || thoff + iphlen > iplen) in hn_check_iplen() 4887 if (iplen < iphlen + sizeof(struct udphdr)) in hn_check_iplen() 4893 if (iplen < iphlen) in hn_check_iplen()
|
/freebsd/tools/tools/net80211/wesside/wesside/ |
H A D | wesside.c | 1367 unsigned short iplen = htons(len - 8); in known_clear() local 1379 memcpy(ptr, &iplen, len); in known_clear()
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | x509_vfy.h | 836 const unsigned char *ip, size_t iplen);
|
H A D | x509_vfy.h.in | 739 const unsigned char *ip, size_t iplen);
|
/freebsd/sys/dev/cxgbe/common/ |
H A D | t4_msg.h | 1424 __be16 iplen; member
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_sge.c | 6664 wr->u.udpseg.iplen = htobe16(m0->m_pkthdr.l3hlen); in write_ethofld_wr() 6676 wr->u.tcpseg.iplen = htobe16(m0->m_pkthdr.l3hlen); in write_ethofld_wr()
|
/freebsd/sys/dev/cxgbe/firmware/ |
H A D | t4fw_interface.h | 806 __be16 iplen; member 817 __be16 iplen; member
|