Home
last modified time | relevance | path

Searched refs:ipv4 (Results 1 – 25 of 791) sorted by relevance

12345678910>>...32

/linux/net/ipv4/
A D.built-in.a.cmd1ipv4/built-in.a := echo >/dev/null; rm -f net/ipv4/built-in.a; /usr/bin/ccache /home/test/workspac…
A Dsysctl_net_ipv4.c57 net->ipv4.ip_local_ports.warned = true; in set_local_port_range()
60 net->ipv4.ip_local_ports.range[0] = range[0]; in set_local_port_range()
61 net->ipv4.ip_local_ports.range[1] = range[1]; in set_local_port_range()
105 ipv4.sysctl_ip_prot_sock); in ipv4_privileged_ports()
117 pports = net->ipv4.sysctl_ip_prot_sock; in ipv4_privileged_ports()
129 net->ipv4.sysctl_ip_prot_sock = pports; in ipv4_privileged_ports()
204 ipv4.sysctl_ip_fwd_update_priority); in ipv4_fwd_update_priority()
217 ipv4.tcp_congestion_control); in proc_tcp_congestion_control()
290 ipv4.sysctl_tcp_fastopen); in proc_tcp_fastopen_key()
663 .data = &init_net.ipv4.sysctl_tcp_ecn,
[all …]
A Dtcp_ipv4.c3113 free_percpu(net->ipv4.tcp_sk); in tcp_sk_exit()
3121 if (!net->ipv4.tcp_sk) in tcp_sk_init()
3141 net->ipv4.sysctl_tcp_ecn = 2; in tcp_sk_init()
3163 net->ipv4.sysctl_tcp_tw_reuse = 2; in tcp_sk_init()
3171 net->ipv4.sysctl_tcp_sack = 1; in tcp_sk_init()
3179 net->ipv4.sysctl_tcp_dsack = 1; in tcp_sk_init()
3180 net->ipv4.sysctl_tcp_app_win = 31; in tcp_sk_init()
3182 net->ipv4.sysctl_tcp_frto = 2; in tcp_sk_init()
3200 memcpy(net->ipv4.sysctl_tcp_rmem, in tcp_sk_init()
3203 memcpy(net->ipv4.sysctl_tcp_wmem, in tcp_sk_init()
[all …]
A Dfib_rules.c267 atomic_inc(&net->ipv4.fib_num_tclassid_users); in fib4_rule_configure()
272 net->ipv4.fib_rules_require_fldissect++; in fib4_rule_configure()
280 net->ipv4.fib_has_custom_rules = true; in fib4_rule_configure()
299 atomic_dec(&net->ipv4.fib_num_tclassid_users); in fib4_rule_delete()
301 net->ipv4.fib_has_custom_rules = true; in fib4_rule_delete()
303 if (net->ipv4.fib_rules_require_fldissect && in fib4_rule_delete()
305 net->ipv4.fib_rules_require_fldissect--; in fib4_rule_delete()
421 net->ipv4.rules_ops = ops; in fib4_rules_init()
422 net->ipv4.fib_has_custom_rules = false; in fib4_rules_init()
423 net->ipv4.fib_rules_require_fldissect = 0; in fib4_rules_init()
[all …]
A Dip_fragment.c216 q = inet_frag_find(net->ipv4.fqdir, &key); in ip_find()
604 table[1].data = &net->ipv4.fqdir->low_thresh; in ip4_frags_ns_ctl_register()
606 table[2].data = &net->ipv4.fqdir->timeout; in ip4_frags_ns_ctl_register()
607 table[3].data = &net->ipv4.fqdir->max_dist; in ip4_frags_ns_ctl_register()
613 net->ipv4.frags_hdr = hdr; in ip4_frags_ns_ctl_register()
627 table = net->ipv4.frags_hdr->ctl_table_arg; in ip4_frags_ns_ctl_unregister()
679 net->ipv4.fqdir->timeout = IP_FRAG_TIME; in ipv4_frags_init_net()
681 net->ipv4.fqdir->max_dist = 64; in ipv4_frags_init_net()
685 fqdir_exit(net->ipv4.fqdir); in ipv4_frags_init_net()
691 fqdir_pre_exit(net->ipv4.fqdir); in ipv4_frags_pre_exit_net()
[all …]
A Dfib_notifier.c25 net->ipv4.fib_seq++; in call_fib4_notifiers()
33 return net->ipv4.fib_seq + fib4_rules_seq_read(net); in fib4_seq_read()
59 net->ipv4.fib_seq = 0; in fib4_notifier_init()
64 net->ipv4.notifier_ops = ops; in fib4_notifier_init()
71 fib_notifier_ops_unregister(net->ipv4.notifier_ops); in fib4_notifier_exit()
A Dtcp_fastopen.c13 ctxt = rcu_dereference(net->ipv4.tcp_fastopen_ctx); in tcp_fastopen_init_key_once()
104 ctx = rcu_dereference(net->ipv4.tcp_fastopen_ctx); in tcp_fastopen_get_cipher()
335 return (sock_net(sk)->ipv4.sysctl_tcp_fastopen & flag) || in tcp_fastopen_no_cookie()
350 int tcp_fastopen = sock_net(sk)->ipv4.sysctl_tcp_fastopen; in tcp_try_fastopen()
492 if (!sock_net(sk)->ipv4.sysctl_tcp_fastopen_blackhole_timeout) in tcp_fastopen_active_disable()
496 WRITE_ONCE(net->ipv4.tfo_active_disable_stamp, jiffies); in tcp_fastopen_active_disable()
502 atomic_inc(&net->ipv4.tfo_active_disable_times); in tcp_fastopen_active_disable()
521 tfo_da_times = atomic_read(&sock_net(sk)->ipv4.tfo_active_disable_times); in tcp_fastopen_active_should_disable()
532 timeout = READ_ONCE(sock_net(sk)->ipv4.tfo_active_disable_stamp) + in tcp_fastopen_active_should_disable()
568 atomic_read(&sock_net(sk)->ipv4.tfo_active_disable_times)) { in tcp_fastopen_active_disable_ofo_check()
[all …]
/linux/net/
A Dbuilt-in.a86 ipv4/route.o/
98 ipv4/tcp.o/
109 ipv4/tcp_ulp.o/
112 ipv4/raw.o/
113 ipv4/udp.o/
114 ipv4/udplite.o/
116 ipv4/arp.o/
117 ipv4/icmp.o/
120 ipv4/igmp.o/
126 ipv4/ping.o/
[all …]
/linux/tools/testing/selftests/bpf/progs/
A Dtest_sk_assign.c43 get_tuple(struct __sk_buff *skb, bool *ipv4, bool *tcp) in get_tuple() argument
67 *ipv4 = true; in get_tuple()
76 *ipv4 = false; in get_tuple()
99 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_udp()
107 dport = ipv4 ? tuple->ipv4.dport : tuple->ipv6.dport; in handle_udp()
131 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_tcp()
142 dport = ipv4 ? tuple->ipv4.dport : tuple->ipv6.dport; in handle_tcp()
165 bool ipv4 = false; in bpf_sk_assign_test() local
170 tuple = get_tuple(skb, &ipv4, &tcp); in bpf_sk_assign_test()
180 ret = handle_tcp(skb, tuple, ipv4); in bpf_sk_assign_test()
[all …]
A Dtest_cls_redirect.c215 struct iphdr *ipv4 = buf_assign(pkt, sizeof(*ipv4), scratch); in pkt_parse_ipv4() local
216 if (ipv4 == NULL) { in pkt_parse_ipv4()
220 if (ipv4->ihl < 5) { in pkt_parse_ipv4()
228 return ipv4; in pkt_parse_ipv4()
624 tuple->ipv4.daddr = ipv4->daddr; in fill_tuple()
625 tuple->ipv4.saddr = ipv4->saddr; in fill_tuple()
740 if (ipv4 == NULL) { in process_icmpv4()
750 tuple.ipv4.saddr = ipv4->daddr; in process_icmpv4()
751 tuple.ipv4.daddr = ipv4->saddr; in process_icmpv4()
880 return process_tcp(pkt, ipv4, sizeof(*ipv4), metrics); in process_ipv4()
[all …]
A Dconnect4_prog.c152 memset(&tuple.ipv4.saddr, 0, sizeof(tuple.ipv4.saddr)); in connect_v4_prog()
153 memset(&tuple.ipv4.sport, 0, sizeof(tuple.ipv4.sport)); in connect_v4_prog()
155 tuple.ipv4.daddr = bpf_htonl(DST_REWRITE_IP4); in connect_v4_prog()
156 tuple.ipv4.dport = bpf_htons(DST_REWRITE_PORT4); in connect_v4_prog()
171 sk = bpf_sk_lookup_tcp(ctx, &tuple, sizeof(tuple.ipv4), in connect_v4_prog()
174 sk = bpf_sk_lookup_udp(ctx, &tuple, sizeof(tuple.ipv4), in connect_v4_prog()
180 if (sk->src_ip4 != tuple.ipv4.daddr || in connect_v4_prog()
A Dtest_sk_lookup_kern.c23 bool *ipv4) in get_tuple() argument
36 *ipv4 = true; in get_tuple()
45 *ipv4 = true; in get_tuple()
64 bool ipv4; in sk_lookup_success() local
69 tuple = get_tuple(data, sizeof(*eth), data_end, eth->h_proto, &ipv4); in sk_lookup_success()
73 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in sk_lookup_success()
/linux/drivers/infiniband/hw/irdma/
A Dtrace_cm.h15 #define __print_ip_addr(addr, port, ipv4) print_ip_addr(p, addr, port, ipv4) argument
26 __field(bool, ipv4)
30 __entry->ipv4 = cm_info->ipv4;
48 __field(bool, ipv4)
53 __entry->ipv4 = listener->ipv4;
71 __field(bool, ipv4)
79 __entry->ipv4 = listener->ipv4;
159 __entry->ipv4 = listener->ipv4;
227 __entry->ipv4 = cm_node->ipv4;
302 __entry->ipv4 = cm_node->ipv4;
[all …]
/linux/tools/testing/selftests/net/forwarding/
A Dgre_custom_multipath_hash.sh373 sysctl_set net.ipv4.neigh.default.gc_thresh1 1024
374 sysctl_set net.ipv4.neigh.default.gc_thresh2 1024
375 sysctl_set net.ipv4.neigh.default.gc_thresh3 1024
377 sysctl_set net.ipv4.fib_multipath_hash_fields 0x0040
381 sysctl_set net.ipv4.fib_multipath_hash_fields 0x0080
385 sysctl_set net.ipv4.fib_multipath_hash_fields 0x0400
393 sysctl_restore net.ipv4.neigh.default.gc_thresh3
394 sysctl_restore net.ipv4.neigh.default.gc_thresh2
395 sysctl_restore net.ipv4.neigh.default.gc_thresh1
442 sysctl_set net.ipv4.fib_multipath_hash_policy 3
[all …]
A Drouter_broadcast.sh146 sysctl_set net.ipv4.conf.all.bc_forwarding 0
147 sysctl_set net.ipv4.conf.$rp1.bc_forwarding 0
148 sysctl_set net.ipv4.conf.$rp2.bc_forwarding 0
153 sysctl_set net.ipv4.conf.all.bc_forwarding 1
154 sysctl_set net.ipv4.conf.$rp1.bc_forwarding 1
155 sysctl_set net.ipv4.conf.$rp2.bc_forwarding 1
160 sysctl_restore net.ipv4.conf.$rp2.bc_forwarding
161 sysctl_restore net.ipv4.conf.$rp1.bc_forwarding
162 sysctl_restore net.ipv4.conf.all.bc_forwarding
183 sysctl_set net.ipv4.icmp_echo_ignore_broadcasts 0
[all …]
A Dcustom_multipath_hash.sh276 sysctl_set net.ipv4.fib_multipath_hash_policy 3
280 sysctl_set net.ipv4.neigh.default.gc_thresh1 1024
281 sysctl_set net.ipv4.neigh.default.gc_thresh2 1024
282 sysctl_set net.ipv4.neigh.default.gc_thresh3 1024
284 sysctl_set net.ipv4.fib_multipath_hash_fields 0x0001
288 sysctl_set net.ipv4.fib_multipath_hash_fields 0x0002
292 sysctl_set net.ipv4.fib_multipath_hash_fields 0x0010
300 sysctl_restore net.ipv4.neigh.default.gc_thresh3
301 sysctl_restore net.ipv4.neigh.default.gc_thresh2
302 sysctl_restore net.ipv4.neigh.default.gc_thresh1
[all …]
A Dmirror_gre_nh.sh32 sysctl_set net.ipv4.conf.all.rp_filter 0
33 sysctl_set net.ipv4.conf.$h3.rp_filter 0
38 sysctl_set net.ipv4.conf.v$h3.rp_filter 0
66 sysctl_restore net.ipv4.conf.v$h3.rp_filter 0
71 sysctl_restore net.ipv4.conf.$h3.rp_filter
72 sysctl_restore net.ipv4.conf.all.rp_filter
/linux/tools/testing/selftests/netfilter/
A Dipvs.sh141 ip netns exec ns1 sysctl -qw net.ipv4.ip_forward=1
147 ip netns exec ns2 sysctl -qw net.ipv4.conf.all.arp_ignore=1
148 ip netns exec ns2 sysctl -qw net.ipv4.conf.all.arp_announce=2
150 ip netns exec ns2 sysctl -qw net.ipv4.conf.all.rp_filter=0
160 ip netns exec ns1 sysctl -qw net.ipv4.ip_forward=1
176 ip netns exec ns1 sysctl -qw net.ipv4.ip_forward=0
185 ip netns exec ns2 sysctl -qw net.ipv4.conf.all.arp_ignore=1
186 ip netns exec ns2 sysctl -qw net.ipv4.conf.all.arp_announce=2
187 ip netns exec ns2 sysctl -qw net.ipv4.conf.all.rp_filter=0
188 ip netns exec ns2 sysctl -qw net.ipv4.conf.tunl0.rp_filter=0
[all …]
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.tcp_syn_retries=2
[all …]
/linux/drivers/net/ethernet/mediatek/
A Dmtk_ppe_debugfs.c107 ai.src_port = &entry->ipv4.orig.src_port; in mtk_ppe_debugfs_foe_show()
108 ai.dest_port = &entry->ipv4.orig.dest_port; in mtk_ppe_debugfs_foe_show()
111 ai.src = &entry->ipv4.orig.src_ip; in mtk_ppe_debugfs_foe_show()
112 ai.dest = &entry->ipv4.orig.dest_ip; in mtk_ppe_debugfs_foe_show()
132 ai.src_port = &entry->ipv4.new.src_port; in mtk_ppe_debugfs_foe_show()
133 ai.dest_port = &entry->ipv4.new.dest_port; in mtk_ppe_debugfs_foe_show()
136 ai.src = &entry->ipv4.new.src_ip; in mtk_ppe_debugfs_foe_show()
137 ai.dest = &entry->ipv4.new.dest_ip; in mtk_ppe_debugfs_foe_show()
147 l2 = &entry->ipv4.l2; in mtk_ppe_debugfs_foe_show()
148 ib2 = entry->ipv4.ib2; in mtk_ppe_debugfs_foe_show()
/linux/samples/bpf/
A Dtc_l2_redirect.sh10 RP_FILTER=$(< /proc/sys/net/ipv4/conf/all/rp_filter)
48 $IP netns exec ns2 sysctl -q -w net.ipv4.conf.all.rp_filter=0
53 $IP netns exec ns2 sysctl -q -w net.ipv4.conf.all.rp_filter=0
65 sysctl -q -w net.ipv4.conf.all.rp_filter=0
78 sysctl -q -w net.ipv4.conf.all.rp_filter=$RP_FILTER
94 sysctl -q -w net.ipv4.conf.ipt.rp_filter=0
95 sysctl -q -w net.ipv4.conf.ipt.forwarding=1
100 sysctl -q -w net.ipv4.conf.ve1.forwarding=1
130 sysctl -q -w net.ipv4.conf.ip6t.rp_filter=0
131 sysctl -q -w net.ipv4.conf.ip6t.forwarding=1
[all …]
/linux/drivers/infiniband/hw/ocrdma/
A Docrdma_ah.c83 struct iphdr ipv4; in set_av_attr() local
128 *((__be16 *)&ipv4) = htons((4 << 12) | (5 << 8) | in set_av_attr()
130 ipv4.id = cpu_to_be16(pdid); in set_av_attr()
131 ipv4.frag_off = htons(IP_DF); in set_av_attr()
132 ipv4.tot_len = htons(0); in set_av_attr()
133 ipv4.ttl = ib_grh->hop_limit; in set_av_attr()
134 ipv4.protocol = nxthdr; in set_av_attr()
136 ipv4.saddr = sgid_addr._sockaddr_in.sin_addr.s_addr; in set_av_attr()
138 ipv4.daddr = dgid_addr._sockaddr_in.sin_addr.s_addr; in set_av_attr()
139 memcpy((u8 *)ah->av + eth_sz, &ipv4, sizeof(struct iphdr)); in set_av_attr()
/linux/drivers/infiniband/hw/usnic/
A Dusnic_fwd.h115 filter->u.ipv4.flags = FILTER_FIELD_5TUP_PROTO; in usnic_fwd_init_udp_filter()
116 filter->u.ipv4.protocol = PROTO_UDP; in usnic_fwd_init_udp_filter()
119 filter->u.ipv4.flags |= FILTER_FIELD_5TUP_DST_AD; in usnic_fwd_init_udp_filter()
120 filter->u.ipv4.dst_addr = daddr; in usnic_fwd_init_udp_filter()
124 filter->u.ipv4.flags |= FILTER_FIELD_5TUP_DST_PT; in usnic_fwd_init_udp_filter()
125 filter->u.ipv4.dst_port = dport; in usnic_fwd_init_udp_filter()
/linux/tools/testing/selftests/net/
A Droute_localnet.sh16 sysctl -w net.ipv4.conf.veth0.route_localnet=1
17 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.route_localnet=1
40 sysctl -w net.ipv4.conf.veth0.arp_announce=2
41 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_announce=2
57 sysctl -w net.ipv4.conf.veth0.arp_ignore=3
58 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_ignore=3
/linux/drivers/infiniband/core/
A Duverbs_std_types_flow_action.c120 const struct ib_uverbs_flow_ipv4_filter ipv4 = { in parse_esp_ip() local
139 struct ib_uverbs_flow_ipv4_filter ipv4; in parse_esp_ip() member
149 sizeof(ipv4.flags) != sizeof(ipv4)); in parse_esp_ip()
155 if (len > sizeof(user_val.ipv4) && in parse_esp_ip()
156 !ib_is_buffer_cleared(val_ptr + sizeof(user_val.ipv4), in parse_esp_ip()
157 len - sizeof(user_val.ipv4))) in parse_esp_ip()
160 val_len = min_t(size_t, len, sizeof(user_val.ipv4)); in parse_esp_ip()
161 ret = copy_from_user(&user_val.ipv4, val_ptr, in parse_esp_ip()
166 user_pmask = &ipv4; in parse_esp_ip()

Completed in 36 milliseconds

12345678910>>...32