/linux-master/tools/testing/selftests/netfilter/ |
H A D | nft_nat.sh | 526 ip netns exec "$ns0" sysctl net.ipv4.conf.veth0.forwarding=1 > /dev/null 527 ip netns exec "$ns0" sysctl net.ipv4.conf.veth1.forwarding=1 > /dev/null 707 ip netns exec "$ns0" sysctl net.ipv4.conf.veth0.forwarding=1 > /dev/null 708 ip netns exec "$ns0" sysctl net.ipv4.conf.veth1.forwarding=1 > /dev/null 908 ip netns exec "$ns0" sysctl net.ipv4.conf.veth0.forwarding=1 > /dev/null 909 ip netns exec "$ns0" sysctl net.ipv4.conf.veth1.forwarding=1 > /dev/null 946 ip netns exec "$ns0" sysctl net.ipv4.conf.veth0.forwarding=1 > /dev/null 947 ip netns exec "$ns0" sysctl net.ipv4.conf.veth1.forwarding=1 > /dev/null
|
H A D | conntrack_icmp_related.sh | 40 ipv4() { function 94 ip -net nsclient$i addr add $(ipv4 $i)/24 dev $DEV
|
/linux-master/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | one_armed_router.sh | 230 sysctl_set net.ipv4.conf.all.accept_redirects 0 247 sysctl_restore net.ipv4.conf.all.accept_redirects
|
/linux-master/net/ipv4/ |
H A D | udp_tunnel_core.c | 230 fl4.daddr = key->u.ipv4.dst; 231 fl4.saddr = key->u.ipv4.src;
|
H A D | tcp_metrics.c | 352 if (READ_ONCE(net->ipv4.sysctl_tcp_nometrics_save) || !dst) 408 if (!READ_ONCE(net->ipv4.sysctl_tcp_no_ssthresh_metrics_save) && 424 if (!READ_ONCE(net->ipv4.sysctl_tcp_no_ssthresh_metrics_save) && 441 if (!READ_ONCE(net->ipv4.sysctl_tcp_no_ssthresh_metrics_save) && 452 READ_ONCE(net->ipv4.sysctl_tcp_reordering)) 490 val = READ_ONCE(net->ipv4.sysctl_tcp_no_ssthresh_metrics_save) ?
|
H A D | tcp_minisocks.c | 189 if (!READ_ONCE(twsk_net(tw)->ipv4.sysctl_tcp_rfc1337)) { 299 tw = inet_twsk_alloc(sk, &net->ipv4.tcp_death_row, state); 350 inet_twsk_hashdance(tw, sk, net->ipv4.tcp_death_row.hashinfo); 397 if (net->ipv4.tcp_death_row.hashinfo->pernet) { 399 inet_twsk_purge(net->ipv4.tcp_death_row.hashinfo, family); 870 if (!READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_abort_on_overflow)) {
|
H A D | igmp.c | 474 !READ_ONCE(net->ipv4.sysctl_igmp_llm_reports)) 600 !READ_ONCE(net->ipv4.sysctl_igmp_llm_reports)) 744 !READ_ONCE(net->ipv4.sysctl_igmp_llm_reports)) 833 WRITE_ONCE(in_dev->mr_ifc_count, in_dev->mr_qrv ?: READ_ONCE(net->ipv4.sysctl_igmp_qrv)); 929 !READ_ONCE(net->ipv4.sysctl_igmp_llm_reports)) 1015 in_dev->mr_qrv = ih3->qrv ?: READ_ONCE(net->ipv4.sysctl_igmp_qrv); 1054 !READ_ONCE(net->ipv4.sysctl_igmp_llm_reports)) 1195 pmc->crcount = in_dev->mr_qrv ?: READ_ONCE(net->ipv4.sysctl_igmp_qrv); 1247 READ_ONCE(net->ipv4.sysctl_igmp_qrv); 1250 READ_ONCE(net->ipv4 [all...] |
H A D | tcp_input.c | 444 min(sndmem, READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_wmem[2]))); 479 int window = tcp_win_from_space(sk, READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_rmem[2])) >> 1; 552 int tcp_app_win = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_app_win); 595 rmem2 = READ_ONCE(net->ipv4.sysctl_tcp_rmem[2]); 755 if (READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_moderate_rcvbuf) && 771 READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_rmem[2])); 946 rate *= READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_pacing_ss_ratio); 948 rate *= READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_pacing_ca_ratio); 1087 READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_max_reordering)); 2066 READ_ONCE(sock_net(sk)->ipv4 [all...] |
H A D | udp.c | 138 return sk->sk_prot->h.udp_table ? : sock_net(sk)->ipv4.udp_table; 492 udptable == net->ipv4.udp_table) { 543 sdif, net->ipv4.udp_table, NULL); 556 dif, 0, net->ipv4.udp_table, NULL); 801 return __udp4_lib_err(skb, info, dev_net(skb->dev)->ipv4.udp_table); 2484 struct udp_table *udptable = net->ipv4.udp_table; 2519 struct udp_table *udptable = net->ipv4.udp_table; 2612 return __udp4_lib_rcv(skb, dev_net(skb->dev)->ipv4.udp_table, IPPROTO_UDP); 2948 .sysctl_wmem_offset = offsetof(struct net, ipv4.sysctl_udp_wmem_min), 2949 .sysctl_rmem_offset = offsetof(struct net, ipv4 [all...] |
H A D | ip_tunnel_core.c | 146 dst->key.u.ipv4.dst = src->key.u.ipv4.src; 697 tun_info->key.u.ipv4.dst = nla_get_in_addr(tb[LWTUNNEL_IP_DST]); 700 tun_info->key.u.ipv4.src = nla_get_in_addr(tb[LWTUNNEL_IP_SRC]); 845 nla_put_in_addr(skb, LWTUNNEL_IP_DST, tun_info->key.u.ipv4.dst) || 846 nla_put_in_addr(skb, LWTUNNEL_IP_SRC, tun_info->key.u.ipv4.src) ||
|
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | gre_multipath_nh_res.sh | 241 sysctl_set net.ipv4.fib_multipath_hash_policy 1 260 sysctl_restore net.ipv4.fib_multipath_hash_policy
|
H A D | gre_multipath_nh.sh | 239 sysctl_set net.ipv4.fib_multipath_hash_policy 1 257 sysctl_restore net.ipv4.fib_multipath_hash_policy
|
H A D | bridge_vlan_mcast.sh | 168 flower vlan_id 10 vlan_ethtype ipv4 dst_ip 224.0.0.1 ip_proto 2 \ 501 flower vlan_id 10 vlan_ethtype ipv4 dst_ip 239.1.1.1 ip_proto udp action pass 503 flower vlan_id 10 vlan_ethtype ipv4 dst_ip 239.1.1.1 ip_proto udp action pass
|
/linux-master/include/net/ |
H A D | inet_connection_sock.h | 334 READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_pingpong_thresh); 345 READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_pingpong_thresh);
|
H A D | ip.h | 354 u32 range = READ_ONCE(net->ipv4.ip_local_ports.range); 364 if (!net->ipv4.sysctl_local_reserved_ports) 366 return test_bit(port, net->ipv4.sysctl_local_reserved_ports); 376 return port < READ_ONCE(net->ipv4.sysctl_ip_prot_sock); 403 (READ_ONCE((net)->ipv4.sysctl_fwmark_reflect) ? (mark) : 0) 468 if (READ_ONCE(net->ipv4.sysctl_ip_fwd_use_pmtu) || 519 /* ipv4 and ipv6 both use refcounted metrics if it is not the default */
|
/linux-master/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | match.c | 495 nfp_flower_compile_tun_ipv4_addrs(&ext->ipv4, &msk->ipv4, rule); 506 nfp_flower_compile_tun_ipv4_addrs(&ext->ipv4, &msk->ipv4, rule); 659 dst = ((struct nfp_flower_ipv4_gre_tun *)ext)->ipv4.dst; 695 dst = ((struct nfp_flower_ipv4_udp_tun *)ext)->ipv4.dst;
|
H A D | tunnel_conf.c | 42 * @tun_info.ipv4: dest IPv4 address of active route 52 __be32 ipv4; member in struct:nfp_tun_active_tuns::route_ip_info 82 * @ipv4_addr: destination ipv4 address for route 232 ipv4_addr = payload->tun_info[i].ipv4; 871 void nfp_tunnel_add_ipv4_off(struct nfp_app *app, __be32 ipv4) argument 880 if (entry->ipv4_addr == ipv4) { 893 entry->ipv4_addr = ipv4; 901 void nfp_tunnel_del_ipv4_off(struct nfp_app *app, __be32 ipv4) argument 910 if (entry->ipv4_addr == ipv4) { 1550 /* Free any memory that may be occupied by ipv4 lis [all...] |
H A D | cmsg.h | 444 struct nfp_flower_tun_ipv4 ipv4; member in struct:nfp_flower_ipv4_udp_tun 507 struct nfp_flower_tun_ipv4 ipv4; member in struct:nfp_flower_ipv4_gre_tun
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_arfs.c | 298 src_ipv4_src_ipv6.ipv4_layout.ipv4); 300 dst_ipv4_dst_ipv6.ipv4_layout.ipv4); 567 outer_headers.src_ipv4_src_ipv6.ipv4_layout.ipv4), 571 outer_headers.dst_ipv4_dst_ipv6.ipv4_layout.ipv4), 575 outer_headers.src_ipv4_src_ipv6.ipv4_layout.ipv4); 577 outer_headers.dst_ipv4_dst_ipv6.ipv4_layout.ipv4);
|
H A D | en_rx.c | 1179 struct iphdr *ipv4 = ip_p; local 1184 ipv4->ttl = cqe->lro.min_ttl; 1185 ipv4->tot_len = cpu_to_be16(tot_len); 1186 ipv4->check = 0; 1187 ipv4->check = ip_fast_csum((unsigned char *)ipv4, 1188 ipv4->ihl); 1194 tcp->check = csum_tcpudp_magic(ipv4->saddr, ipv4->daddr, 1224 static void mlx5e_shampo_update_ipv4_udp_hdr(struct mlx5e_rq *rq, struct iphdr *ipv4) argument 1274 mlx5e_shampo_update_ipv4_tcp_hdr(struct mlx5e_rq *rq, struct iphdr *ipv4, struct mlx5_cqe64 *cqe, bool match) argument 1329 struct iphdr *ipv4 = (struct iphdr *)(skb->data + nhoff); local [all...] |
/linux-master/net/netfilter/ |
H A D | nf_flow_table_offload.c | 52 key->enc_ipv4.src = tun_info->key.u.ipv4.dst; 53 key->enc_ipv4.dst = tun_info->key.u.ipv4.src; 102 NF_FLOW_DISSECTOR(match, FLOW_DISSECTOR_KEY_IPV4_ADDRS, ipv4); 149 key->ipv4.src = tuple->src_v4.s_addr; 150 mask->ipv4.src = 0xffffffff; 151 key->ipv4.dst = tuple->dst_v4.s_addr; 152 mask->ipv4.dst = 0xffffffff;
|
/linux-master/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_router_hw.c | 584 prestera_hw_lpm_del(sw, vr->hw_vr_id, fib_node->key.addr.u.ipv4, 664 err = prestera_hw_lpm_add(sw, vr->hw_vr_id, key->addr.u.ipv4, 677 prestera_hw_lpm_del(sw, vr->hw_vr_id, key->addr.u.ipv4,
|
/linux-master/tools/testing/selftests/net/ |
H A D | vrf_route_leaking.sh | 218 ip netns exec $ns sysctl -q -w net.ipv4.ip_forward=1 296 ip netns exec $ns sysctl -q -w net.ipv4.ip_forward=1 568 4) TESTS=ipv4;; 583 elif [ "$TESTS" = "ipv4" ]; then
|
/linux-master/net/ipv6/ |
H A D | ip6_input.c | 10 * Based in linux/net/ipv4/ip_input.c 51 if (READ_ONCE(net->ipv4.sysctl_ip_early_demux) && 55 if (READ_ONCE(net->ipv4.sysctl_tcp_early_demux)) 59 if (READ_ONCE(net->ipv4.sysctl_udp_early_demux))
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | fs_tracepoint.c | 90 src_ipv4_src_ipv6.ipv4_layout.ipv4); 92 dst_ipv4_dst_ipv6.ipv4_layout.ipv4);
|