/freebsd/lib/libcasper/services/cap_net/tests/ |
H A D | net_test.c | 247 struct sockaddr_in ipv4; in test_bind() local 253 memset(&ipv4, 0, sizeof(ipv4)); in test_bind() 254 ipv4.sin_family = AF_INET; in test_bind() 255 inet_pton(AF_INET, ip, &ipv4.sin_addr); in test_bind() 257 ret = cap_bind(chan, capfd, (struct sockaddr *)&ipv4, sizeof(ipv4)); in test_bind() 267 struct sockaddr_in ipv4; in test_connect() local 273 memset(&ipv4, 0, sizeof(ipv4)); in test_connect() 274 ipv4.sin_family = AF_INET; in test_connect() 275 ipv4.sin_port = htons(port); in test_connect() 276 inet_pton(AF_INET, ip, &ipv4.sin_addr); in test_connect() [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() 132 inet_ntoa(*(struct in_addr *)ipv4->LocalIpAddress.Addr), 1); in setup_ipv4_config2() 134 intoa(*(n_long *)ipv4->SubnetMask.Addr), 1); in setup_ipv4_config2() 136 inet_ntoa(*(struct in_addr *)ipv4->GatewayIpAddress.Addr), 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 [all …]
|
/freebsd/tools/tools/netmap/ |
H A D | pkt-gen.c | 210 } ipv4; member 220 ((af) == AF_INET ? (p)->ipv4.f: (p)->ipv6.f) 227 } ipv4; member 437 extract_ipv4_addr(name, &r->ipv4.start, &r->port0); in extract_ip_range() 451 extract_ipv4_addr(ap, &r->ipv4.end, &r->port1); in extract_ip_range() 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() [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() 512 if (cm_node->ipv4) { in irdma_form_uda_cm_frame() 513 sqbuf->ipv4 = true; in irdma_form_uda_cm_frame() 547 sqbuf->ipv4 = false; in irdma_form_uda_cm_frame() 756 if ((cm_node->ipv4 && in irdma_process_options() 758 (!cm_node->ipv4 && in irdma_process_options() 1524 irdma_find_listener(struct irdma_cm_core *cm_core, u32 *dst_addr, bool ipv4, u16 dst_port, in irdma_find_listener() argument 1538 if (listen_node->ipv4 != ipv4 || listen_port != dst_port || in irdma_find_listener() [all …]
|
H A D | irdma_puda.h | 71 bool ipv4:1; member 83 bool ipv4:1; member 105 bool ipv4:1; member
|
H A D | irdma_cm.h | 294 bool ipv4:1; member 349 bool ipv4:1; member 370 bool ipv4; 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() 251 src_ipv4_src_ipv6.ipv4_layout.ipv4); in accel_fs_tcp_create_groups() 253 dst_ipv4_dst_ipv6.ipv4_layout.ipv4); in accel_fs_tcp_create_groups()
|
/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/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/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/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() 577 && (!IPSEC_ENABLED(ipv4) || in ip_input() 578 IPSEC_CAPS(ipv4, m, IPSEC_CAP_OPERABLE) == 0) in ip_input() 598 if (IPSEC_ENABLED(ipv4) && in ip_input() 599 IPSEC_CAPS(ipv4, m, IPSEC_CAP_BYPASS_FILTER) != 0) in ip_input() 850 if (IPSEC_ENABLED(ipv4)) { in ip_input() 851 if (IPSEC_INPUT(ipv4, m, hlen, ip->ip_p) != 0) in ip_input() 1001 if (IPSEC_ENABLED(ipv4)) { in ip_forward() 1002 if ((error = IPSEC_FORWARD(ipv4, m)) != 0) { in ip_forward()
|
/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/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.
|
/freebsd/sys/security/mac_ipacl/ |
H A D | mac_ipacl.c | 78 SYSCTL_INT(_security_mac_ipacl, OID_AUTO, ipv4, CTLFLAG_RWTUN, 95 struct in_addr ipv4; member 105 #define v4 ipa.ipv4
|