Searched refs:ipv4 (Results 26 - 50 of 358) sorted by relevance

1234567891011>>

/linux-master/net/ipv4/
H A Dtcp_fastopen.c13 ctxt = rcu_dereference(net->ipv4.tcp_fastopen_ctx);
52 ctxt = xchg((__force struct tcp_fastopen_context **)&net->ipv4.tcp_fastopen_ctx, NULL);
85 octx = xchg((__force struct tcp_fastopen_context **)&net->ipv4.tcp_fastopen_ctx, ctx);
104 ctx = rcu_dereference(net->ipv4.tcp_fastopen_ctx);
338 return (READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_fastopen) & flag) ||
353 int tcp_fastopen = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_fastopen);
495 if (!READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_fastopen_blackhole_timeout))
499 WRITE_ONCE(net->ipv4.tfo_active_disable_stamp, jiffies);
502 * We want net->ipv4.tfo_active_disable_stamp to be updated first.
505 atomic_inc(&net->ipv4
[all...]
H A Dip_fragment.c92 inet_getpeer_v4(net->ipv4.peers, key->saddr, key->vif, 1) :
218 q = inet_frag_find(net->ipv4.fqdir, &key);
611 table[0].data = &net->ipv4.fqdir->high_thresh;
612 table[0].extra1 = &net->ipv4.fqdir->low_thresh;
613 table[1].data = &net->ipv4.fqdir->low_thresh;
614 table[1].extra2 = &net->ipv4.fqdir->high_thresh;
615 table[2].data = &net->ipv4.fqdir->timeout;
616 table[3].data = &net->ipv4.fqdir->max_dist;
618 hdr = register_net_sysctl_sz(net, "net/ipv4", table,
623 net->ipv4
[all...]
H A Dfib_rules.c93 err = fib_rules_lookup(net->ipv4.rules_ops, flowi4_to_flowi(flp), 0, &arg);
270 atomic_inc(&net->ipv4.fib_num_tclassid_users);
275 net->ipv4.fib_rules_require_fldissect++;
282 net->ipv4.fib_has_custom_rules = true;
301 atomic_dec(&net->ipv4.fib_num_tclassid_users);
303 net->ipv4.fib_has_custom_rules = true;
305 if (net->ipv4.fib_rules_require_fldissect &&
307 net->ipv4.fib_rules_require_fldissect--;
422 net->ipv4.rules_ops = ops;
423 net->ipv4
[all...]
H A Dtcp_ipv4.c12 * linux/ipv4/tcp.c
13 * linux/ipv4/tcp_input.c
14 * linux/ipv4/tcp_output.c
112 int reuse = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_tw_reuse);
251 tcp_death_row = &sock_net(sk)->ipv4.tcp_death_row;
489 sk = __inet_lookup_established(net, net->ipv4.tcp_death_row.hashinfo,
810 sk1 = __inet_lookup_listener(net, net->ipv4.tcp_death_row.hashinfo,
1187 if (READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_reflect_tos))
1778 if (READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_reflect_tos))
1975 sk = __inet_lookup_established(net, net->ipv4
[all...]
H A Dtcp_timer.c152 int retries = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_orphan_retries); /* May be zero. */
172 if (!READ_ONCE(net->ipv4.sysctl_tcp_mtu_probing))
180 mss = min(READ_ONCE(net->ipv4.sysctl_tcp_base_mss), mss);
181 mss = max(mss, READ_ONCE(net->ipv4.sysctl_tcp_mtu_probe_floor));
182 mss = max(mss, READ_ONCE(net->ipv4.sysctl_tcp_min_snd_mss));
256 READ_ONCE(net->ipv4.sysctl_tcp_syn_retries);
260 max_retransmits += READ_ONCE(net->ipv4.sysctl_tcp_syn_linear_timeouts);
264 if (retransmits_timed_out(sk, READ_ONCE(net->ipv4.sysctl_tcp_retries1), 0)) {
271 retry_until = READ_ONCE(net->ipv4.sysctl_tcp_retries2);
409 max_probes = READ_ONCE(sock_net(sk)->ipv4
[all...]
H A Dudplite.c67 .sysctl_wmem_offset = offsetof(struct net, ipv4.sysctl_udp_wmem_min),
68 .sysctl_rmem_offset = offsetof(struct net, ipv4.sysctl_udp_rmem_min),
/linux-master/tools/testing/selftests/netfilter/
H A Dbridge_brouter.sh65 ip netns exec ns0 ebtables -t broute -A BROUTING -p ipv4 --ip-protocol icmp -j redirect --redirect-target=DROP
82 ip netns exec ns0 sysctl -q net.ipv4.conf.veth0.forwarding=1
83 ip netns exec ns0 sysctl -q net.ipv4.conf.veth1.forwarding=1
103 ip netns exec ns0 ebtables -t filter -A FORWARD -p ipv4 --ip-protocol icmp -j DROP
113 ip netns exec ns0 ebtables -t broute -A BROUTING -p ipv4 --ip-protocol icmp -j redirect --redirect-target=DROP
H A Dnft_nat_zones.sh40 v4gc1=$(sysctl -n net.ipv4.neigh.default.gc_thresh1 2>/dev/null)
41 v4gc2=$(sysctl -n net.ipv4.neigh.default.gc_thresh2 2>/dev/null)
42 v4gc3=$(sysctl -n net.ipv4.neigh.default.gc_thresh3 2>/dev/null)
55 sysctl -q net.ipv4.neigh.default.gc_thresh1=$v4gc1 2>/dev/null
56 sysctl -q net.ipv4.neigh.default.gc_thresh2=$v4gc2 2>/dev/null
57 sysctl -q net.ipv4.neigh.default.gc_thresh3=$v4gc3 2>/dev/null
109 sysctl -q net.ipv4.neigh.default.gc_thresh1=512 2>/dev/null
110 sysctl -q net.ipv4.neigh.default.gc_thresh2=1024 2>/dev/null
111 sysctl -q net.ipv4.neigh.default.gc_thresh3=4096 2>/dev/null
132 echo netns exec "$cl" sysctl -q net.ipv4
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_tcp_check_syncookie_kern.c77 tup.ipv4.saddr = ipv4h->saddr;
78 tup.ipv4.daddr = ipv4h->daddr;
79 tup.ipv4.sport = tcph->source;
80 tup.ipv4.dport = tcph->dest;
82 sk = bpf_skc_lookup_tcp(ctx, &tup, sizeof(tup.ipv4),
H A Dtest_cls_redirect_dynptr.c88 offsetofend(struct bpf_sock_tuple, ipv4.dport) -
89 offsetof(struct bpf_sock_tuple, ipv4.sport) - 1,
135 /* skip ipv4 options */
516 struct iphdr *ipv4 = (struct iphdr *)iph; local
517 tuple->ipv4.daddr = ipv4->daddr;
518 tuple->ipv4.saddr = ipv4->saddr;
519 tuple->ipv4.sport = sport;
520 tuple->ipv4
609 struct iphdr ipv4; local
751 struct iphdr ipv4; local
[all...]
H A Dsock_iter_batch.c52 hinfo = net->ipv4.tcp_death_row.hashinfo;
84 udptable = sk->sk_net.net->ipv4.udp_table;
/linux-master/tools/testing/selftests/bpf/
H A Dtest_tc_tunnel.sh101 $0 ipv4 ipip none 100
104 $0 ipv4 ipip6 none 100
113 $0 ipv4 vxlan eth 2000
120 $0 ipv4 gre $mac 100
126 $0 ipv4 gre $mac 2000
132 $0 ipv4 udp $mac 100
138 $0 ipv4 udp $mac 2000
150 echo " or: $0 <ipv4|ipv6> <tuntype> <none|mpls|eth> <data_len>"
155 "ipv4")
276 ip netns exec "${ns2}" sysctl -qw net.ipv4
[all...]
/linux-master/samples/bpf/
H A Dtc_l2_redirect.sh10 RP_FILTER=$(< /proc/sys/net/ipv4/conf/all/rp_filter)
49 $IP netns exec ns2 sysctl -q -w net.ipv4.conf.all.rp_filter=0
50 $IP netns exec ns2 sysctl -q -w net.ipv4.conf.ipt2.rp_filter=0
54 $IP netns exec ns2 sysctl -q -w net.ipv4.conf.all.rp_filter=0
55 $IP netns exec ns2 sysctl -q -w net.ipv4.conf.ip6t2.rp_filter=0
66 sysctl -q -w net.ipv4.conf.all.rp_filter=0
80 sysctl -q -w net.ipv4.conf.all.rp_filter=$RP_FILTER
97 sysctl -q -w net.ipv4.conf.ipt.rp_filter=0
98 sysctl -q -w net.ipv4.conf.ipt.forwarding=1
103 sysctl -q -w net.ipv4
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dct_fs_smfs.c47 mlx5_ct_fs_smfs_fill_mask(struct mlx5_ct_fs *fs, struct mlx5_flow_spec *spec, bool ipv4, bool tcp, argument
58 if (likely(ipv4)) {
60 src_ipv4_src_ipv6.ipv4_layout.ipv4);
62 dst_ipv4_dst_ipv6.ipv4_layout.ipv4);
90 mlx5_ct_fs_smfs_matcher_create(struct mlx5_ct_fs *fs, struct mlx5dr_table *tbl, bool ipv4, argument
100 mlx5_ct_fs_smfs_fill_mask(fs, spec, ipv4, tcp, gre);
112 mlx5_ct_fs_smfs_matcher_get(struct mlx5_ct_fs *fs, bool nat, bool ipv4, bool tcp, bool gre) argument
123 smfs_matcher = &matchers->smfs_matchers[ipv4 * 3 + tcp * 2 + gre];
149 dr_matcher = mlx5_ct_fs_smfs_matcher_create(fs, tbl, ipv4, tcp, gre, prio);
152 "ct_fs_smfs: failed to create matcher (nat %d, ipv4
305 bool nat, tcp, ipv4, gre; local
[all...]
/linux-master/tools/testing/selftests/net/
H A Dtcp_fastopen_backup_key.sh4 # rotate TFO keys for ipv4/ipv6 and verify that the client does
15 ip netns exec "${NETNS}" sysctl -w net.ipv4.tcp_fastopen=3 \
H A Dicmp.sh54 ip netns exec $NS2 sysctl -qw net.ipv4.icmp_ratelimit=0 net.ipv4.ip_forward=1
H A Dbareudp.sh233 ip netns exec "${NS1}" sysctl -qw net.ipv4.ip_forward=1
234 ip netns exec "${NS2}" sysctl -qw net.ipv4.ip_forward=1
241 ip netns exec "${NS1}" sysctl -qw net.ipv4.conf.all.rp_filter=0
242 ip netns exec "${NS2}" sysctl -qw net.ipv4.conf.all.rp_filter=0
243 ip netns exec "${NS1}" sysctl -qw net.ipv4.conf.default.rp_filter=0
244 ip netns exec "${NS2}" sysctl -qw net.ipv4.conf.default.rp_filter=0
367 "ipv4")
368 IPV4="ipv4"
401 tc -netns "${NS1}" filter add dev veth10 ingress protocol ipv4 \
405 tc -netns "${NS2}" filter add dev veth23 ingress protocol ipv4 \
[all...]
/linux-master/tools/testing/selftests/net/forwarding/
H A Drouter.sh194 sysctl_set net.ipv4.conf.all.rp_filter 0
195 sysctl_set net.ipv4.conf.$rp1.rp_filter 0
209 sysctl_restore net.ipv4.conf.$rp1.rp_filter
210 sysctl_restore net.ipv4.conf.all.rp_filter
272 sysctl_set net.ipv4.conf.all.rp_filter 0
273 sysctl_set net.ipv4.conf.$rp1.rp_filter 0
287 sysctl_restore net.ipv4.conf.$rp1.rp_filter
288 sysctl_restore net.ipv4.conf.all.rp_filter
/linux-master/drivers/net/ethernet/cisco/enic/
H A Denic_clsf.c13 /* enic_addfltr_5t - Add ipv4 5tuple filter
15 * @keys: flow_keys of ipv4 5tuple
28 data.u.ipv4.protocol = PROTO_TCP;
31 data.u.ipv4.protocol = PROTO_UDP;
38 data.u.ipv4.src_addr = ntohl(keys->addrs.v4addrs.src);
39 data.u.ipv4.dst_addr = ntohl(keys->addrs.v4addrs.dst);
40 data.u.ipv4.src_port = ntohs(keys->ports.src);
41 data.u.ipv4.dst_port = ntohs(keys->ports.dst);
42 data.u.ipv4.flags = FILTER_FIELDS_IPV4_5TUPLE;
/linux-master/tools/testing/selftests/bpf/map_tests/
H A Dlpm_trie_map_batch_ops.c19 struct in_addr ipv4; member in struct:test_lpm_key
36 inet_pton(AF_INET, buff, &keys[i].ipv4);
53 inet_ntop(AF_INET, &keys[i].ipv4, buff, 32);
/linux-master/security/selinux/
H A Dnetnode.c124 if (node->nsec.addr.ipv4 == *(const __be32 *)addr)
151 idx = sel_netnode_hashfn_ipv4(node->nsec.addr.ipv4);
210 new->nsec.addr.ipv4 = *(__be32 *)addr;
/linux-master/net/core/
H A Dlwt_bpf.c181 bool ipv4; local
184 ipv4 = true;
186 ipv4 = false;
199 if (ipv4) {
535 static int handle_gso_encap(struct sk_buff *skb, bool ipv4, int encap_len) argument
548 if (ipv4) {
581 if (ipv4)
594 bool ipv4; local
603 ipv4 = true;
607 ipv4
[all...]
/linux-master/drivers/infiniband/hw/irdma/
H A Dcm.h262 bool ipv4:1; member in struct:irdma_cm_listener
321 bool ipv4:1; member in struct:irdma_cm_node
340 bool ipv4; member in struct:irdma_cm_info
399 int irdma_add_arp(struct irdma_pci_f *rf, u32 *ip, bool ipv4, const u8 *mac);
407 int irdma_arp_table(struct irdma_pci_f *rf, u32 *ip_addr, bool ipv4,
410 u32 *ipaddr, bool ipv4, bool ifup);
/linux-master/tools/usb/usbip/src/
H A Dusbipd.c54 " -4, --ipv4\n"
491 static int do_standalone_mode(int daemonize, int ipv4, int ipv6) argument
523 if (ipv4 && ipv6)
525 else if (ipv4)
589 { "ipv4", no_argument, NULL, '4' },
609 int ipv4 = 0, ipv6 = 0; local
630 ipv4 = 1;
663 if (!ipv4 && !ipv6)
664 ipv4 = ipv6 = 1;
668 rc = do_standalone_mode(daemonize, ipv4, ipv
[all...]
/linux-master/net/sctp/
H A Doffload.c112 goto ipv4;
117 ipv4:

Completed in 236 milliseconds

1234567891011>>