Home
last modified time | relevance | path

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

/netbsd/crypto/external/bsd/openssl/dist/crypto/x509/
H A Dx509_vpm.c214 if (!X509_VERIFY_PARAM_set1_ip(dest, src->ip, src->iplen)) in X509_VERIFY_PARAM_inherit()
449 *plen = param->iplen; in int_X509_VERIFY_PARAM_get0_ip()
455 size_t iplen; in X509_VERIFY_PARAM_get1_ip_asc() local
458 return ip == NULL ? NULL : ossl_ipaddr_to_asc(ip, iplen); in X509_VERIFY_PARAM_get1_ip_asc()
462 const unsigned char *ip, size_t iplen) in X509_VERIFY_PARAM_set1_ip() argument
464 if (iplen != 0 && iplen != 4 && iplen != 16) { in X509_VERIFY_PARAM_set1_ip()
468 return int_x509_param_set1((char **)&param->ip, &param->iplen, in X509_VERIFY_PARAM_set1_ip()
469 (char *)ip, iplen); in X509_VERIFY_PARAM_set1_ip()
475 size_t iplen = (size_t)ossl_a2i_ipadd(ipout, ipasc); in X509_VERIFY_PARAM_set1_ip_asc() local
477 if (iplen == 0) in X509_VERIFY_PARAM_set1_ip_asc()
[all …]
H A Dv3_utl.c1028 size_t iplen; in X509_check_ip_asc() local
1032 iplen = (size_t)ossl_a2i_ipadd(ipout, ipasc); in X509_check_ip_asc()
1033 if (iplen == 0) in X509_check_ip_asc()
1035 return do_x509_check(x, (char *)ipout, iplen, flags, GEN_IPADD, NULL); in X509_check_ip_asc()
1077 int iplen; in a2i_IPADDRESS() local
1081 iplen = ossl_a2i_ipadd(ipout, ipasc); in a2i_IPADDRESS()
1083 if (!iplen) in a2i_IPADDRESS()
1089 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()
/netbsd/external/bsd/ipf/dist/ipsend/
H A Dip.c101 int err, iplen; local
130 iplen = ip->ip_len;
131 ip->ip_len = htons(iplen);
148 if (!frag || (sizeof(*eh) + iplen < mtu))
153 bcopy((char *)ip, ipbuf + sizeof(*eh), iplen);
207 iplen = ntohs(ip->ip_len) - hlen;
212 if ((sent + (mtu - hlen)) >= iplen)
215 ts = iplen - sent;
257 int thlen, i, iplen, hlen; local
261 iplen = ip->ip_len;
[all …]
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/x509/
H A Dx509_vpm.c221 if (!X509_VERIFY_PARAM_set1_ip(dest, src->ip, src->iplen)) in X509_VERIFY_PARAM_inherit()
432 const unsigned char *ip, size_t iplen) in X509_VERIFY_PARAM_set1_ip() argument
434 if (iplen != 0 && iplen != 4 && iplen != 16) in X509_VERIFY_PARAM_set1_ip()
436 return int_x509_param_set1((char **)&param->ip, &param->iplen, in X509_VERIFY_PARAM_set1_ip()
437 (char *)ip, iplen); in X509_VERIFY_PARAM_set1_ip()
443 size_t iplen; in X509_VERIFY_PARAM_set1_ip_asc() local
445 iplen = (size_t)a2i_ipadd(ipout, ipasc); in X509_VERIFY_PARAM_set1_ip_asc()
446 if (iplen == 0) in X509_VERIFY_PARAM_set1_ip_asc()
448 return X509_VERIFY_PARAM_set1_ip(param, ipout, iplen); in X509_VERIFY_PARAM_set1_ip_asc()
H A Dx509_local.h35 size_t iplen; /* Length of IP address */ member
H A Dx509_vfy.c770 if (vpm->ip && X509_check_ip(x, vpm->ip, vpm->iplen, 0) <= 0) { in check_id()
/netbsd/sys/arch/xen/xen/
H A Dxennet_checksum.c84 int iplen; in xennet_checksum_fill() local
119 iplen = ntohs(iph->ip_len); in xennet_checksum_fill()
134 iplen = ntohs(ip6h->ip6_plen); in xennet_checksum_fill()
142 if (ehlen + iplen > m->m_pkthdr.len) { in xennet_checksum_fill()
/netbsd/sys/netinet/
H A Dip_flow.c211 int iplen; in ipflow_fastforward() local
238 iplen = ntohs(ip->ip_len); in ipflow_fastforward()
240 iplen < sizeof(struct ip) || iplen > m->m_pkthdr.len) in ipflow_fastforward()
322 if (m->m_pkthdr.len > iplen) { in ipflow_fastforward()
324 m->m_len = iplen; in ipflow_fastforward()
325 m->m_pkthdr.len = iplen; in ipflow_fastforward()
327 m_adj(m, iplen - m->m_pkthdr.len); in ipflow_fastforward()
H A Dip_carp.c504 int iplen, len; in _carp_proto_input() local
538 iplen = ip->ip_hl << 2; in _carp_proto_input()
539 len = iplen + sizeof(*ch); in _carp_proto_input()
553 ch = (struct carp_header *)((char *)ip + iplen); in _carp_proto_input()
555 m->m_data += iplen; in _carp_proto_input()
556 if (carp_cksum(m, len - iplen)) { in _carp_proto_input()
563 m->m_data -= iplen; in _carp_proto_input()
/netbsd/sys/dist/pf/net/
H A Dif_pfsync.c388 iplen = ip->ip_hl << 2; in pfsync_input()
390 if (m->m_pkthdr.len < iplen + sizeof(*ph)) { in pfsync_input()
395 if (iplen + sizeof(*ph) > m->m_len) { in pfsync_input()
431 if ((mp = m_pulldown(m, iplen + sizeof(*ph), in pfsync_input()
472 if ((mp = m_pulldown(m, iplen + sizeof(*ph), in pfsync_input()
506 if ((mp = m_pulldown(m, iplen + sizeof(*ph), in pfsync_input()
615 if ((mp = m_pulldown(m, iplen + sizeof(*ph), in pfsync_input()
640 if ((mp = m_pulldown(m, iplen + sizeof(*ph), in pfsync_input()
739 if ((mp = m_pulldown(m, iplen + sizeof(*ph), in pfsync_input()
766 if ((mp = m_pulldown(m, iplen + sizeof(*ph), in pfsync_input()
[all …]
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/x509v3/
H A Dv3_utl.c993 size_t iplen; in X509_check_ip_asc() local
997 iplen = (size_t)a2i_ipadd(ipout, ipasc); in X509_check_ip_asc()
998 if (iplen == 0) in X509_check_ip_asc()
1000 return do_x509_check(x, (char *)ipout, iplen, flags, GEN_IPADD, NULL); in X509_check_ip_asc()
1012 int iplen; in a2i_IPADDRESS() local
1016 iplen = a2i_ipadd(ipout, ipasc); in a2i_IPADDRESS()
1018 if (!iplen) in a2i_IPADDRESS()
1024 if (!ASN1_OCTET_STRING_set(ret, ipout, iplen)) { in a2i_IPADDRESS()
/netbsd/sys/netipsec/
H A Dxform_ah.c892 uint16_t iplen; in ah_output() local
1055 memcpy(&iplen, pext + ipoffs, sizeof(iplen)); in ah_output()
1056 iplen = htons(ntohs(iplen) + ahsize); in ah_output()
1057 m_copyback(m, ipoffs, sizeof(iplen), &iplen); in ah_output()
/netbsd/crypto/external/bsd/openssl.old/dist/doc/man3/
H A DX509_VERIFY_PARAM_set_flags.pod64 const unsigned char *ip, size_t iplen);
188 B<iplen> must be set to 4 for IPv4 and 16 for IPv6. When an IP
/netbsd/crypto/external/bsd/openssl/dist/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
/netbsd/crypto/external/bsd/openssl.old/dist/include/openssl/
H A Dx509_vfy.h571 const unsigned char *ip, size_t iplen);
/netbsd/crypto/external/bsd/openssl/dist/include/openssl/
H A Dx509_vfy.h.in739 const unsigned char *ip, size_t iplen);