/freebsd/lib/libcasper/services/cap_net/tests/ |
H A D | net_test.c | 253 memset(&ipv4, 0, sizeof(ipv4)); in test_bind() 257 ret = cap_bind(chan, capfd, (struct sockaddr *)&ipv4, sizeof(ipv4)); in test_bind() 273 memset(&ipv4, 0, sizeof(ipv4)); in test_connect() 278 ret = cap_connect(chan, capfd, (struct sockaddr *)&ipv4, sizeof(ipv4)); in test_connect() 293 memset(&ipv4, 0, sizeof(ipv4)); in test_connect() 297 ret = connect(sd, (struct sockaddr *)&ipv4, sizeof(ipv4)); in test_connect() 1112 memset(&ipv4, 0, sizeof(ipv4)); in ATF_TC_BODY() 1116 cap_net_limit_bind(limit, (struct sockaddr *)&ipv4, sizeof(ipv4)); in ATF_TC_BODY() 1201 memset(&ipv4, 0, sizeof(ipv4)); in ATF_TC_BODY() 1205 cap_net_limit_connect(limit, (struct sockaddr *)&ipv4, sizeof(ipv4)); in ATF_TC_BODY() [all …]
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_uverbs_std_types_flow_action.c | 122 const struct ib_uverbs_flow_ipv4_filter ipv4 = { in parse_esp_ip() local 141 struct ib_uverbs_flow_ipv4_filter ipv4; in parse_esp_ip() member 151 sizeof(ipv4.flags) != sizeof(ipv4)); in parse_esp_ip() 157 if (len > sizeof(user_val.ipv4) && in parse_esp_ip() 158 !ib_is_buffer_cleared((const u8 *)val_ptr + sizeof(user_val.ipv4), in parse_esp_ip() 159 len - sizeof(user_val.ipv4))) in parse_esp_ip() 162 val_len = min_t(size_t, len, sizeof(user_val.ipv4)); in parse_esp_ip() 163 ret = copy_from_user(&user_val.ipv4, val_ptr, in parse_esp_ip() 168 user_pmask = &ipv4; in parse_esp_ip()
|
/freebsd/sys/dev/netmap/ |
H A D | netmap_offloadings.c | 73 gso_fix_segment(uint8_t *pkt, size_t len, u_int ipv4, u_int iphlen, u_int tcp, in gso_fix_segment() argument 81 if (ipv4) { in gso_fix_segment() 126 if (ipv4) in gso_fix_segment() 252 u_int ipv4 = 0; in bdg_mismatch_datapath() local 303 ipv4 = 1; in bdg_mismatch_datapath() 308 ipv4 = 0; in bdg_mismatch_datapath() 384 ipv4, iphlen, tcp, in bdg_mismatch_datapath()
|
/freebsd/stand/efi/libefi/ |
H A D | efihttp.c | 117 IPv4_DEVICE_PATH *ipv4, DNS_DEVICE_PATH *dns) in setup_ipv4_config2() argument 126 if (ipv4 != NULL) { in setup_ipv4_config2() 134 intoa(*(n_long *)ipv4->SubnetMask.Addr), 1); in setup_ipv4_config2() 148 .Address = ipv4->LocalIpAddress, in setup_ipv4_config2() 149 .SubnetMask = ipv4->SubnetMask }); in setup_ipv4_config2() 153 if (ipv4->GatewayIpAddress.Addr[0] != 0) { in setup_ipv4_config2() 156 &ipv4->GatewayIpAddress); in setup_ipv4_config2() 233 IPv4_DEVICE_PATH *ipv4; in efihttp_dev_open() local 254 ipv4 = NULL; in efihttp_dev_open() 266 ipv4 = (IPv4_DEVICE_PATH *)imgpath; in efihttp_dev_open() [all …]
|
/freebsd/tools/tools/netmap/ |
H A D | pkt-gen.c | 210 } ipv4; member 227 } ipv4; member 452 if (r->ipv4.start > r->ipv4.end) { in extract_ip_range() 453 tmp = r->ipv4.end; in extract_ip_range() 454 r->ipv4.end = r->ipv4.start; in extract_ip_range() 455 r->ipv4.start = tmp; in extract_ip_range() 458 r->ipv4.end = r->ipv4.start; in extract_ip_range() 469 a.s_addr = htonl(r->ipv4.end); in extract_ip_range() 483 (af == AF_INET && r->ipv4.start != r->ipv4.end) || in extract_ip_range() 866 naddr = g->src_ip.ipv4.start; in update_ip() [all …]
|
/freebsd/sys/dev/irdma/ |
H A D | irdma_cm.c | 114 cm_info->ipv4 = cm_node->ipv4; in irdma_get_addr_info() 215 if (cm_node->ipv4) in irdma_send_cm_event() 493 if (cm_node->ipv4) in irdma_form_uda_cm_frame() 1538 if (listen_node->ipv4 != ipv4 || listen_port != dst_port || in irdma_find_listener() 1934 nfo.ipv4 = listener->ipv4; in irdma_dec_refcnt_listen() 2153 cm_node->ipv4 = cm_info->ipv4; in irdma_make_cm_node() 2849 listener->ipv4 = cm_info->ipv4; in irdma_make_listen_node() 3047 if (rbuf->ipv4) { in irdma_receive_ilq() 3195 tcp_info->ipv4 = cm_node->ipv4; in irdma_init_tcp_ctx() 3813 if (cm_info.ipv4) in irdma_connect() [all …]
|
H A D | irdma_puda.h | 71 bool ipv4:1; member 83 bool ipv4:1; member 105 bool ipv4:1; member
|
/freebsd/contrib/netbsd-tests/net/if_gif/ |
H A D | t_gif.sh | 151 $ROUTER1_WANIP ipv4 153 $ROUTER2_WANIP ipv4 184 $ROUTER1_WANIP ipv4 186 $ROUTER2_WANIP ipv4 752 add_test ${category} "${desc}" ipv4 ipv4 753 add_test ${category} "${desc}" ipv4 ipv6 754 add_test ${category} "${desc}" ipv6 ipv4
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_fs_tcp.c | 48 outer_headers.src_ipv4_src_ipv6.ipv4_layout.ipv4), in accel_fs_tcp_set_ipv4_flow() 51 outer_headers.dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in accel_fs_tcp_set_ipv4_flow() 54 outer_headers.src_ipv4_src_ipv6.ipv4_layout.ipv4); in accel_fs_tcp_set_ipv4_flow() 56 outer_headers.dst_ipv4_dst_ipv6.ipv4_layout.ipv4); in accel_fs_tcp_set_ipv4_flow() 255 src_ipv4_src_ipv6.ipv4_layout.ipv4); in accel_fs_tcp_create_groups() 257 dst_ipv4_dst_ipv6.ipv4_layout.ipv4); in accel_fs_tcp_create_groups()
|
/freebsd/contrib/ntp/scripts/update-leap/ |
H A D | update-leap-opts | 33 'ipv4' => '', 43 'source-url|s=s', 'ipv4|4', 'destination|d=f', 53 -4, --ipv4 Use only IPv4 addresses for DNS name resolution
|
H A D | invoke-update-leap.texi | 47 * update-leap ipv4:: ipv4 option (-4) 159 @node update-leap ipv4 160 @subsection ipv4 option (-4) 161 @cindex update-leap-ipv4 163 This is the ``use only ipv4 addresses for dns name resolution'' option. 180 flags-cant = ipv4, prefer; 191 flags-cant = ipv4, ipv6;
|
H A D | update-leap-opts.def | 25 name = ipv4; 37 flags-cant = ipv4, prefer; 48 flags-cant = ipv4, ipv6;
|
/freebsd/sys/dev/enic/ |
H A D | cq_enet_desc.h | 116 u8 ipv4_csum_ok, u8 ipv6, u8 ipv4, u8 ipv4_fragment, u8 fcs_ok) in cq_enet_rq_desc_enc() argument 156 (ipv4 ? CQ_ENET_RQ_DESC_FLAGS_IPV4 : 0) | in cq_enet_rq_desc_enc() 170 u8 *ipv6, u8 *ipv4, u8 *ipv4_fragment, u8 *fcs_ok) in cq_enet_rq_desc_dec() argument 238 *ipv4 = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4) ? 1 : 0; in cq_enet_rq_desc_dec()
|
/freebsd/lib/libc/inet/ |
H A D | inet_net_pton.c | 272 int ipv4; in inet_net_pton_ipv6() local 286 ipv4 = 0; in inet_net_pton_ipv6() 322 ipv4 = 1; in inet_net_pton_ipv6() 341 if (ipv4) in inet_net_pton_ipv6()
|
/freebsd/contrib/wpa/wpa_supplicant/examples/ |
H A D | p2p-action-udhcp.sh | 58 sysctl net.ipv4.ip_forward=1 65 sysctl net.ipv4.ip_forward=0
|
H A D | p2p-action.sh | 85 sysctl net.ipv4.ip_forward=1 92 sysctl net.ipv4.ip_forward=0
|
/freebsd/sys/netinet/ |
H A D | ip_input.c | 441 if (IPSEC_ENABLED(ipv4)) { in ip_direct_input() 442 if (IPSEC_INPUT(ipv4, m, hlen, ip->ip_p) != 0) in ip_direct_input() 582 && (!IPSEC_ENABLED(ipv4) || in ip_input() 583 IPSEC_CAPS(ipv4, m, IPSEC_CAP_OPERABLE) == 0) in ip_input() 603 if (IPSEC_ENABLED(ipv4) && in ip_input() 604 IPSEC_CAPS(ipv4, m, IPSEC_CAP_BYPASS_FILTER) != 0) in ip_input() 846 if (IPSEC_ENABLED(ipv4)) { in ip_input() 847 if (IPSEC_INPUT(ipv4, m, hlen, ip->ip_p) != 0) in ip_input() 985 if (IPSEC_ENABLED(ipv4)) { in ip_forward() 986 if ((error = IPSEC_FORWARD(ipv4, m)) != 0) { in ip_forward()
|
/freebsd/contrib/unbound/dns64/ |
H A D | dns64.c | 201 uint32_t ipv4 = 0; in extract_ipv4() local 209 ipv4 = ipv4 << 8; in extract_ipv4() 210 ipv4 |= ipv6[pos]; in extract_ipv4() 212 return ipv4; in extract_ipv4() 228 ipv4_to_ptr(uint32_t ipv4, char ptr[], size_t nm_len) in ipv4_to_ptr() argument 236 *c = uitoa((unsigned int)(ipv4 % 256), c + 1); in ipv4_to_ptr() 239 ipv4 /= 256; in ipv4_to_ptr()
|
/freebsd/contrib/netbsd-tests/net/net/ |
H A D | t_forwarding.sh | 159 setup_endpoint $SOCKSRC $IP4SRC bus1 ipv4 $IP4SRCGW 160 setup_endpoint $SOCKDST $IP4DST bus2 ipv4 $IP4DSTGW 161 setup_forwarder ipv4 191 test_endpoint $SOCKSRC $IP4SRC bus1 ipv4 192 test_endpoint $SOCKDST $IP4DST bus2 ipv4
|
/freebsd/usr.sbin/flowctl/ |
H A D | flowctl.c | 177 int ipv4, ipv6, verbose = 0; in ctl_show() local 179 ipv4 = feature_present("inet"); in ctl_show() 188 ipv4 = 0; in ctl_show() 200 if (ipv4) { in ctl_show()
|
/freebsd/contrib/ntp/ntpdc/ |
H A D | invoke-ntpdc.texi | 47 * ntpdc ipv4:: ipv4 option (-4) 83 -4 no ipv4 Force IPv4 DNS name resolution 86 - prohibits the option 'ipv4' 128 @node ntpdc ipv4 129 @subsection ipv4 option (-4) 130 @cindex ntpdc-ipv4 132 This is the ``force ipv4 dns name resolution'' option. 155 ipv4.
|
/freebsd/sys/netpfil/ipfw/ |
H A D | ip_fw_dynamic.c | 2094 DYN_FREE_STATES(s4, s4n, ipv4); in dyn_free_states() 2321 DYN_UNLINK_STATES(s4, s4p, s4n, data->expire, ipv4, ipv4, 1); in dyn_expire_states() 2607 ipv4 = ipv4_parent = NULL; in dyn_grow_hashtable() 2616 if (ipv4 == NULL) in dyn_grow_hashtable() 2662 CK_SLIST_INIT(&ipv4[bucket]); in dyn_grow_hashtable() 2688 DYN_RELINK_STATES(s4, data->hashval, bucket, ipv4, ipv4); in dyn_grow_hashtable() 2705 DYN_SWAP_PTR(V_dyn_ipv4, ipv4, tmp); in dyn_grow_hashtable() 2731 free(ipv4, M_IPFW); in dyn_grow_hashtable() 3110 DYN_EXPORT_STATES(s4, ipv4, ipv4, bucket); in ipfw_dump_states() 3157 DYN_EXPORT_STATES(s4, ipv4, ipv4, bucket); in ipfw_get_dynamic() [all …]
|
/freebsd/sbin/ipf/iplang/ |
H A D | iplang.tst | 4 ipv4 {
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_mcg.c | 874 rule_hw->ipv4.src_ip = spec->ipv4.src_ip; in parse_trans_rule() 875 rule_hw->ipv4.src_ip_msk = spec->ipv4.src_ip_msk; in parse_trans_rule() 876 rule_hw->ipv4.dst_ip = spec->ipv4.dst_ip; in parse_trans_rule() 877 rule_hw->ipv4.dst_ip_msk = spec->ipv4.dst_ip_msk; in parse_trans_rule() 934 if (cur->ipv4.src_ip) in mlx4_err_rule() 937 &cur->ipv4.src_ip); in mlx4_err_rule() 938 if (cur->ipv4.dst_ip) in mlx4_err_rule() 941 &cur->ipv4.dst_ip); in mlx4_err_rule()
|
/freebsd/contrib/ntp/sntp/ |
H A D | invoke-sntp.texi | 68 * sntp ipv4:: ipv4 option (-4) 108 -4 no ipv4 Force IPv4 DNS name resolution 111 - prohibits the option 'ipv4' 159 @node sntp ipv4 160 @subsection ipv4 option (-4) 161 @cindex sntp-ipv4 163 This is the ``force ipv4 dns name resolution'' option. 186 ipv4.
|