Home
last modified time | relevance | path

Searched refs:iplen (Results 1 – 21 of 21) sorted by relevance

/freebsd/sbin/ipf/ipsend/
H A Dip.c85 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 Dx509_vpm.c214 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 **)&param->ip, &param->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 Dv3_utl.c1056 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 Dx509_local.h38 size_t iplen; /* Length of IP address */ member
H A Dx509_vfy.c802 if (vpm->ip != NULL && X509_check_ip(x, vpm->ip, vpm->iplen, 0) <= 0) { in check_id()
/freebsd/sys/netipsec/
H A Dxform_ah.c852 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 Dip_carp.c521 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 Dip_fw_log.c408 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 Dip_fw2.c996 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 Duhso.c1667 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 Dql_isr.c196 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 De1000_82575.h101 u32 iplen:9; member
/freebsd/sys/dev/irdma/
H A Dirdma_puda.c467 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 DX509_VERIFY_PARAM_set_flags.pod69 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 Dif_hn.c4829 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 Dwesside.c1367 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 Dx509_vfy.h836 const unsigned char *ip, size_t iplen);
H A Dx509_vfy.h.in739 const unsigned char *ip, size_t iplen);
/freebsd/sys/dev/cxgbe/common/
H A Dt4_msg.h1424 __be16 iplen; member
/freebsd/sys/dev/cxgbe/
H A Dt4_sge.c6664 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 Dt4fw_interface.h806 __be16 iplen; member
817 __be16 iplen; member