| /freebsd-14.2/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_ud_header.c | 124 { STRUCT_FIELD(ip4, ver), 128 { STRUCT_FIELD(ip4, hdr_len), 132 { STRUCT_FIELD(ip4, tos), 136 { STRUCT_FIELD(ip4, tot_len), 140 { STRUCT_FIELD(ip4, id), 148 { STRUCT_FIELD(ip4, ttl), 156 { STRUCT_FIELD(ip4, check), 160 { STRUCT_FIELD(ip4, saddr), 164 { STRUCT_FIELD(ip4, daddr), 295 iph.ip_id = header->ip4.id; in ib_ud_ip4_csum() [all …]
|
| /freebsd-14.2/usr.sbin/jail/tests/ |
| H A D | jail_basic_test.sh | 40 atf_check -s exit:0 -o ignore jail -c name=basejail persist ip4.addr=192.0.1.1 47 jail -c name=basejail persist ip4.addr=192.0.1.1 51 atf_check -s exit:0 -o ignore jail -cm name=basejail persist ip4.addr=192.0.1.1 53 atf_check -s exit:0 -o ignore jail -rc name=basejail persist ip4.addr=192.0.1.1 70 jail -c name=basejail persist ip4.addr=192.0.1.1 children.max=1 73 jail -c name=nestedjail persist ip4.addr=192.0.1.1 77 jail -c name=secondnestedjail persist ip4.addr=192.0.1.1 86 jail -c name=basejail_nochild persist ip4.addr=192.0.1.1 90 jail -c name=nestedjail persist ip4.addr=192.0.1.1
|
| /freebsd-14.2/bin/pkill/tests/ |
| H A D | pgrep-j_test.sh | 23 jail -c path=/ name=${base}_1_1 ip4.addr=127.0.0.1 \ 26 jail -c path=/ name=${base}_1_2 ip4.addr=127.0.0.1 \ 57 jail -c path=/ name=${base}_2_1 ip4.addr=127.0.0.1 \ 60 jail -c path=/ name=${base}_2_2 ip4.addr=127.0.0.1 \ 79 jail -c path=/ name=${base}_3_2 ip4.addr=127.0.0.1 \ 95 jail -c path=/ name=${base}_4_1 ip4.addr=127.0.0.1 \ 98 jail -c path=/ name=${base}_4_2 ip4.addr=127.0.0.1 \
|
| H A D | pkill-j_test.sh | 23 jail -c path=/ name=${base}_1_1 ip4.addr=127.0.0.1 \ 26 jail -c path=/ name=${base}_1_2 ip4.addr=127.0.0.1 \ 60 jail -c path=/ name=${base}_2_1 ip4.addr=127.0.0.1 \ 63 jail -c path=/ name=${base}_2_2 ip4.addr=127.0.0.1 \ 83 jail -c path=/ name=${base}_3_2 ip4.addr=127.0.0.1 \ 100 jail -c path=/ name=${base}_4_1 ip4.addr=127.0.0.1 \ 103 jail -c path=/ name=${base}_4_2 ip4.addr=127.0.0.1 \
|
| /freebsd-14.2/sys/netgraph/ |
| H A D | ng_checksum.c | 307 struct ip *ip4; in checksum_ipv4() local 315 ip4 = (struct ip *) mtodo(m, l3_offset); in checksum_ipv4() 317 if (ip4->ip_v != IPVERSION) in checksum_ipv4() 320 hlen = ip4->ip_hl << 2; in checksum_ipv4() 321 plen = ntohs(ip4->ip_len); in checksum_ipv4() 327 ip4->ip_sum = 0; in checksum_ipv4() 331 ip4->ip_sum = in_cksum_hdr(ip4); in checksum_ipv4() 344 if (ip4->ip_off & htons(IP_MF|IP_OFFMASK)) { in checksum_ipv4() 349 switch (ip4->ip_p) in checksum_ipv4() 359 ip4->ip_dst.s_addr, htons(ip4->ip_p + plen - hlen)); in checksum_ipv4() [all …]
|
| /freebsd-14.2/sys/netinet/ |
| H A D | tcp_lro_hpts.c | 251 struct ip *ip4; in do_bpf_strip_and_compress() member 283 tcp_hdr_offset -= sizeof(*le->outer.ip4); in do_bpf_strip_and_compress() 286 le->outer.ip4, NULL); in do_bpf_strip_and_compress() 302 le->outer.ip4, NULL); in do_bpf_strip_and_compress() 303 UDP_PROBE(receive, NULL, NULL, le->outer.ip4, NULL, in do_bpf_strip_and_compress() 316 tcp_hdr_offset -= sizeof(*le->outer.ip4); in do_bpf_strip_and_compress() 318 IP_PROBE(receive, NULL, NULL, le->inner.ip4, NULL, in do_bpf_strip_and_compress() 319 le->inner.ip4, NULL); in do_bpf_strip_and_compress() 325 le->outer.ip4, NULL); in do_bpf_strip_and_compress() 326 UDP_PROBE(receive, NULL, NULL, le->outer.ip4, NULL, in do_bpf_strip_and_compress() [all …]
|
| H A D | tcp_lro.c | 272 parser->ip4 = ptr; in tcp_lro_low_level_parser() 276 if ((parser->ip4->ip_hl << 2) != sizeof (*parser->ip4)) in tcp_lro_low_level_parser() 283 parser->ip4->ip_dst.s_addr == INADDR_ANY)) in tcp_lro_low_level_parser() 291 switch (parser->ip4->ip_p) { in tcp_lro_low_level_parser() 452 ntohs(po->ip4->ip_len); in tcp_lro_trim_mbuf_chain() 561 cs = in_addword(ntohs(pa->ip4->ip_len) - sizeof(*pa->ip4), IPPROTO_TCP); in tcp_lro_rx_csum_data() 562 cs = in_pseudo(pa->ip4->ip_src.s_addr, pa->ip4->ip_dst.s_addr, htons(cs)); in tcp_lro_rx_csum_data() 655 csum = in_cksum_hdr(ip4); in tcp_lro_rx_ipv4() 692 csum = pa->ip4->ip_sum + 0xffff - temp[0]; in tcp_lro_update_checksum() 710 csum = pa->ip4->ip_sum + 0xffff - temp[0]; in tcp_lro_update_checksum() [all …]
|
| H A D | tcp_hostcache.c | 104 struct in_addr ip4; /* IP address */ member 325 if (memcmp(&inc->inc_faddr, &hc_entry->ip4, in tcp_hc_cmp() 538 hc_entry->ip4 = inc->inc_faddr; in tcp_hc_update() 678 hc_entry->ip4.s_addr ? in sysctl_tcp_hc_list() 679 inet_ntoa_r(hc_entry->ip4, ip4buf) : in sysctl_tcp_hc_list()
|
| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | jail2.sh | 60 ip4 = 0x0, 69 j.ip4 = 0;
|
| H A D | jail3.sh | 60 ip4 = 0x0, 69 j.ip4 = 0;
|
| H A D | jail4.sh | 62 ip4 = 0x0, 71 j.ip4 = 0;
|
| H A D | jail.sh | 59 j.ip4 = (struct in_addr *)0x58000000;
|
| /freebsd-14.2/sys/dev/mlx5/mlx5_en/ |
| H A D | mlx5_en_rx.c | 135 struct ip *ip4 = NULL; in mlx5e_lro_update_hdr() local 153 ip4 = (struct ip *)(eh + 1); in mlx5e_lro_update_hdr() 154 th = (struct tcphdr *)(ip4 + 1); in mlx5e_lro_update_hdr() 198 if (ip4) { in mlx5e_lro_update_hdr() 199 ip4->ip_ttl = cqe->lro_min_ttl; in mlx5e_lro_update_hdr() 200 ip4->ip_len = cpu_to_be16(tot_len); in mlx5e_lro_update_hdr() 201 ip4->ip_sum = 0; in mlx5e_lro_update_hdr() 202 ip4->ip_sum = in_cksum(mb, ip4->ip_hl << 2); in mlx5e_lro_update_hdr()
|
| H A D | mlx5_en_tx.c | 356 struct ip *ip4; in mlx5e_get_vxlan_header_size() local 389 ip4 = mlx5e_parse_mbuf_chain(&mb, &offset, eth_hdr_len, in mlx5e_get_vxlan_header_size() 390 sizeof(*ip4)); in mlx5e_get_vxlan_header_size() 391 if (unlikely(ip4 == NULL)) in mlx5e_get_vxlan_header_size() 393 ip_type = ip4->ip_p; in mlx5e_get_vxlan_header_size() 398 ip_hlen = ip4->ip_hl << 2; in mlx5e_get_vxlan_header_size() 461 ip4 = mlx5e_parse_mbuf_chain(&mb, &offset, eth_hdr_len, in mlx5e_get_vxlan_header_size() 462 sizeof(*ip4)); in mlx5e_get_vxlan_header_size() 463 if (unlikely(ip4 == NULL)) in mlx5e_get_vxlan_header_size() 467 ip_type = ip4->ip_p; in mlx5e_get_vxlan_header_size() [all …]
|
| /freebsd-14.2/tests/sys/kern/ |
| H A D | sonewconn_overflow.py | 111 ip4 = IPv4Test() 120 ip4.doTest(5) 125 ip4.doTest(1)
|
| /freebsd-14.2/lib/libcasper/services/cap_dns/tests/ |
| H A D | dns_test.c | 205 struct in_addr ip4; in runtest() local 309 inet_pton(AF_INET, GOOGLE_DNS_IPV4, &ip4); in runtest() 310 hps = gethostbyaddr(&ip4, sizeof(ip4), AF_INET); in runtest() 315 hpc = cap_gethostbyaddr(capdns, &ip4, sizeof(ip4), AF_INET); in runtest()
|
| /freebsd-14.2/contrib/wireguard-tools/ |
| H A D | ipc-freebsd.h | 189 memcpy(&aip->ip4, binary, sizeof(aip->ip4)); in kernel_get_device() 312 nvlist_add_binary(nvl_aips[j], "ipv4", &aip->ip4, sizeof(aip->ip4)); in kernel_set_device()
|
| H A D | containers.h | 34 struct in_addr ip4; member
|
| H A D | ipc-uapi.h | 85 if (!inet_ntop(AF_INET, &allowedip->ip4, ip, INET6_ADDRSTRLEN)) in userspace_set_device() 268 if (inet_pton(AF_INET, ip, &allowedip->ip4) == 1) in userspace_get_device()
|
| H A D | showconf.c | 61 if (!inet_ntop(AF_INET, &allowedip->ip4, ip, INET6_ADDRSTRLEN)) in showconf_main()
|
| /freebsd-14.2/sys/dev/qlnx/qlnxr/ |
| H A D | qlnxr_cm.c | 572 udh->ip4.protocol = IPPROTO_UDP; in qlnxr_gsi_build_header() 573 udh->ip4.tos = htonl(grh->flow_label); in qlnxr_gsi_build_header() 574 udh->ip4.frag_off = htons(IP_DF); in qlnxr_gsi_build_header() 575 udh->ip4.ttl = grh->hop_limit; in qlnxr_gsi_build_header() 578 udh->ip4.saddr = ipv4_addr; in qlnxr_gsi_build_header() 580 udh->ip4.daddr = ipv4_addr; in qlnxr_gsi_build_header()
|
| /freebsd-14.2/sys/ofed/include/rdma/ |
| H A D | rdma_sdp.h | 41 } ip4; member
|
| /freebsd-14.2/tools/regression/netinet/udpconnectjail/ |
| H A D | udpconnectjail.c | 106 thejail.ip4 = &ia4; in main()
|
| /freebsd-14.2/libexec/rc/ |
| H A D | rc.firewall | 165 ${fwcmd} add 50 divert natd ip4 from any to any via ${natd_interface} 179 ${fwcmd} add 50 nat 123 ip4 from any to any via ${firewall_nat_interface} 326 ${fwcmd} add divert natd ip4 from any to any via ${natd_interface} 399 ${fwcmd} add deny log ip4 from any to any in via ${oif} setup proto tcp
|
| /freebsd-14.2/usr.sbin/ppp/ |
| H A D | ncpaddr.h | 39 } ip4; member
|