| /openbsd/src/regress/sys/netinet/frag/ |
| D | frag_maxlen.py | 18 iplen=2**16 variable 20 payload=b"ABCDEFGHIJKLMNOP" * int(iplen / 16) 22 ICMP(type='echo-request', id=eid)/bytes(payload)[0:iplen-20-8-1] 25 max=int((iplen-20)/size)
|
| /openbsd/src/regress/sys/netinet6/frag6/ |
| D | frag6_maxlen.py | 18 iplen=2**16 variable 20 payload=b"ABCDEFGHIJKLMNOP" * int(iplen / 16) 22 ICMPv6EchoRequest(id=eid, data=bytes(payload)[0:iplen-8-1]) 25 max=int(iplen/size)
|
| /openbsd/src/lib/libcrypto/x509/ |
| D | x509_vpm.c | 77 size_t iplen); 182 param->iplen = 0; in x509_verify_param_zero() 320 if (!X509_VERIFY_PARAM_set1_ip(dest, src->ip, src->iplen)) in X509_VERIFY_PARAM_inherit() 581 size_t iplen) in X509_VERIFY_PARAM_set1_ip() argument 583 if (iplen != 4 && iplen != 16) in X509_VERIFY_PARAM_set1_ip() 585 if (x509_param_set1_internal((char **)¶m->ip, ¶m->iplen, in X509_VERIFY_PARAM_set1_ip() 586 (char *)ip, iplen, 0)) in X509_VERIFY_PARAM_set1_ip() 598 size_t iplen; in X509_VERIFY_PARAM_set1_ip_asc() local 600 iplen = (size_t)a2i_ipadd(ipout, ipasc); in X509_VERIFY_PARAM_set1_ip_asc() 601 return X509_VERIFY_PARAM_set1_ip(param, ipout, iplen); in X509_VERIFY_PARAM_set1_ip_asc()
|
| D | x509_utl.c | 1194 size_t iplen; in X509_check_ip_asc() local 1198 iplen = (size_t)a2i_ipadd(ipout, ipasc); in X509_check_ip_asc() 1199 if (iplen == 0) in X509_check_ip_asc() 1201 return do_x509_check(x, (char *)ipout, iplen, flags, GEN_IPADD, NULL); in X509_check_ip_asc() 1214 int iplen; in a2i_IPADDRESS() local 1218 iplen = a2i_ipadd(ipout, ipasc); in a2i_IPADDRESS() 1220 if (!iplen) in a2i_IPADDRESS() 1226 if (!ASN1_OCTET_STRING_set(ret, ipout, iplen)) { in a2i_IPADDRESS()
|
| D | x509_local.h | 294 size_t iplen; /* Length of IP address */ member
|
| D | x509_vfy.h | 451 size_t iplen);
|
| D | x509_vfy.c | 209 if (vpm->ip != NULL && X509_check_ip(x, vpm->ip, vpm->iplen, 0) <= 0) { in x509_vfy_check_id()
|
| /openbsd/src/regress/sys/net/pf_forward/ |
| D | ping_mtu.py | 18 iplen=IP(bytes(ip)).len variable 33 if iiplen != iplen: 34 print("inner IP len %d!=%d" % (iiplen, iplen))
|
| D | ping6_mtu.py | 31 iplen=IPv6(bytes(ip)).plen variable 57 if iiplen != iplen: 58 print("inner IPv6 plen %d!=%d" % (iiplen, iplen))
|
| /openbsd/src/sys/net/ |
| D | if_ethersubr.c | 1066 size_t hlen, iplen; in ether_extract_headers() local 1158 iplen = ntohs(ext->ip4->ip_len); in ether_extract_headers() 1159 if (ext->paylen < iplen) { in ether_extract_headers() 1160 DPRINTF("paylen %u, ip4len %zu", ext->paylen, iplen); in ether_extract_headers() 1164 if (iplen < hlen) { in ether_extract_headers() 1165 DPRINTF("ip4len %zu, ip4hlen %zu", iplen, hlen); in ether_extract_headers() 1169 ext->iplen = iplen; in ether_extract_headers() 1193 iplen = hlen + ntohs(ext->ip6->ip6_plen); in ether_extract_headers() 1194 if (ext->paylen < iplen) { in ether_extract_headers() 1195 DPRINTF("paylen %u, ip6len %zu", ext->paylen, iplen); in ether_extract_headers() [all …]
|
| D | pf.c | 6416 int iplen = 0; in pf_pull_hdr() local 6427 iplen = ntohs(h->ip_len); in pf_pull_hdr() 6434 iplen = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr); in pf_pull_hdr() 6439 if (m->m_pkthdr.len < off + len || iplen < off + len) { in pf_pull_hdr()
|
| /openbsd/src/sys/netinet/ |
| D | ip_ah.c | 865 uint16_t iplen; in ah_output() local 1073 memcpy((caddr_t) &iplen, ((caddr_t)ptr) + in ah_output() 1075 iplen = htons(ntohs(iplen) + rplen + ahx->authsize); in ah_output() 1077 sizeof(u_int16_t), &iplen, M_NOWAIT); in ah_output() 1082 memcpy((caddr_t) &iplen, ((caddr_t)ptr) + in ah_output() 1084 iplen = htons(ntohs(iplen) + rplen + ahx->authsize); in ah_output() 1086 sizeof(u_int16_t), &iplen, M_NOWAIT); in ah_output()
|
| D | ip_carp.c | 464 int iplen, len, ismulti; in carp_proto_input_if() local 505 iplen = ip->ip_hl << 2; in carp_proto_input_if() 506 len = iplen + sizeof(*ch); in carp_proto_input_if() 520 ch = (struct carp_header *)(mtod(m, caddr_t) + iplen); in carp_proto_input_if() 523 m->m_data += iplen; in carp_proto_input_if() 524 if (carp_cksum(m, len - iplen)) { in carp_proto_input_if() 531 m->m_data -= iplen; in carp_proto_input_if()
|
| D | if_ether.h | 310 u_int iplen; member
|
| /openbsd/src/sys/dev/pci/ |
| D | if_vmx.c | 1315 paylen = ext.iplen; in vmxnet3_rx_offload()
|
| D | if_ix.c | 3354 paylen = ext.iplen; in ixgbe_rx_offload()
|
| /openbsd/src/sys/dev/pv/ |
| D | if_vio.c | 1116 htons(ext.iplen - ext.iphlen)); in vio_tx_offload()
|