Home
last modified time | relevance | path

Searched refs:ip4 (Results 1 – 25 of 58) sorted by relevance

123

/freebsd-14.2/sys/ofed/drivers/infiniband/core/
H A Dib_ud_header.c124 { 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 Djail_basic_test.sh40 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 Dpgrep-j_test.sh23 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 Dpkill-j_test.sh23 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 Dng_checksum.c307 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 Dtcp_lro_hpts.c251 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 Dtcp_lro.c272 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 Dtcp_hostcache.c104 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 Djail2.sh60 ip4 = 0x0,
69 j.ip4 = 0;
H A Djail3.sh60 ip4 = 0x0,
69 j.ip4 = 0;
H A Djail4.sh62 ip4 = 0x0,
71 j.ip4 = 0;
H A Djail.sh59 j.ip4 = (struct in_addr *)0x58000000;
/freebsd-14.2/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_rx.c135 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 Dmlx5_en_tx.c356 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 Dsonewconn_overflow.py111 ip4 = IPv4Test()
120 ip4.doTest(5)
125 ip4.doTest(1)
/freebsd-14.2/lib/libcasper/services/cap_dns/tests/
H A Ddns_test.c205 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 Dipc-freebsd.h189 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 Dcontainers.h34 struct in_addr ip4; member
H A Dipc-uapi.h85 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 Dshowconf.c61 if (!inet_ntop(AF_INET, &allowedip->ip4, ip, INET6_ADDRSTRLEN)) in showconf_main()
/freebsd-14.2/sys/dev/qlnx/qlnxr/
H A Dqlnxr_cm.c572 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 Drdma_sdp.h41 } ip4; member
/freebsd-14.2/tools/regression/netinet/udpconnectjail/
H A Dudpconnectjail.c106 thejail.ip4 = &ia4; in main()
/freebsd-14.2/libexec/rc/
H A Drc.firewall165 ${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 Dncpaddr.h39 } ip4; member

123