Home
last modified time | relevance | path

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

12

/net/ipv4/
Dsysctl_net_ipv4.c226 ctl->data = &net->ipv4.sysctl_tcp_mem; in ipv4_tcp_mem()
244 net->ipv4.sysctl_tcp_mem[0] = vec[0]; in ipv4_tcp_mem()
245 net->ipv4.sysctl_tcp_mem[1] = vec[1]; in ipv4_tcp_mem()
246 net->ipv4.sysctl_tcp_mem[2] = vec[2]; in ipv4_tcp_mem()
802 .data = &init_net.ipv4.sysctl_icmp_echo_ignore_all,
809 .data = &init_net.ipv4.sysctl_icmp_echo_ignore_broadcasts,
816 .data = &init_net.ipv4.sysctl_icmp_ignore_bogus_error_responses,
823 .data = &init_net.ipv4.sysctl_icmp_errors_use_inbound_ifaddr,
830 .data = &init_net.ipv4.sysctl_icmp_ratelimit,
837 .data = &init_net.ipv4.sysctl_icmp_ratemask,
[all …]
Dip_fragment.c91 return net->ipv4.frags.nqueues; in ip_frag_nqueues()
96 return sum_frag_mem_limit(&net->ipv4.frags); in ip_frag_mem()
138 struct netns_ipv4 *ipv4 = container_of(q->net, struct netns_ipv4, in ip4_frag_init() local
140 struct net *net = container_of(ipv4, struct net, ipv4); in ip4_frag_init()
151 inet_getpeer_v4(net->ipv4.peers, arg->iph->saddr, 1) : NULL; in ip4_frag_init()
186 evicted = inet_frag_evictor(&net->ipv4.frags, &ip4_frags, false); in ip_evictor()
200 net = container_of(qp->q.net, struct net, ipv4.frags); in ip_expire()
264 q = inet_frag_find(&net->ipv4.frags, &ip4_frags, &arg, hash); in ip_find()
293 net = container_of(qp->q.net, struct net, ipv4.frags); in ip_frag_too_far()
520 struct net *net = container_of(qp->q.net, struct net, ipv4.frags); in ip_frag_reasm()
[all …]
Dtcp_metrics.c146 oldest = rcu_dereference(net->ipv4.tcp_metrics_hash[hash].chain); in tcpm_new()
163 tm->tcpm_next = net->ipv4.tcp_metrics_hash[hash].chain; in tcpm_new()
164 rcu_assign_pointer(net->ipv4.tcp_metrics_hash[hash].chain, tm); in tcpm_new()
198 for (tm = rcu_dereference(net->ipv4.tcp_metrics_hash[hash].chain); tm; in __tcp_get_metrics()
230 hash = hash_32(hash, net->ipv4.tcp_metrics_hash_log); in __tcp_get_metrics_req()
232 for (tm = rcu_dereference(net->ipv4.tcp_metrics_hash[hash].chain); tm; in __tcp_get_metrics_req()
265 hash = hash_32(hash, net->ipv4.tcp_metrics_hash_log); in __tcp_get_metrics_tw()
267 for (tm = rcu_dereference(net->ipv4.tcp_metrics_hash[hash].chain); tm; in __tcp_get_metrics_tw()
300 hash = hash_32(hash, net->ipv4.tcp_metrics_hash_log); in tcp_get_metrics()
829 unsigned int max_rows = 1U << net->ipv4.tcp_metrics_hash_log; in tcp_metrics_nl_dump()
[all …]
Dicmp.c208 return net->ipv4.icmp_sk[smp_processor_id()]; in icmp_sk()
256 if ((1 << type) & net->ipv4.sysctl_icmp_ratemask) { in icmpv4_xrlim_allow()
257 struct inet_peer *peer = inet_getpeer_v4(net->ipv4.peers, fl4->daddr, 1); in icmpv4_xrlim_allow()
259 net->ipv4.sysctl_icmp_ratelimit); in icmpv4_xrlim_allow()
581 net->ipv4.sysctl_icmp_errors_use_inbound_ifaddr) in icmp_send()
743 if (!net->ipv4.sysctl_icmp_ignore_bogus_error_responses && in icmp_unreach()
796 if (!net->ipv4.sysctl_icmp_echo_ignore_all) { in icmp_echo()
925 net->ipv4.sysctl_icmp_echo_ignore_broadcasts) { in icmp_rcv()
1051 inet_ctl_sock_destroy(net->ipv4.icmp_sk[i]); in icmp_sk_exit()
1052 kfree(net->ipv4.icmp_sk); in icmp_sk_exit()
[all …]
Dfib_rules.c58 err = fib_rules_lookup(net->ipv4.rules_ops, flowi4_to_flowi(flp), 0, &arg); in __fib_lookup()
172 net->ipv4.fib_num_tclassid_users++; in fib4_rule_configure()
182 net->ipv4.fib_has_custom_rules = true; in fib4_rule_configure()
195 net->ipv4.fib_num_tclassid_users--; in fib4_rule_delete()
197 net->ipv4.fib_has_custom_rules = true; in fib4_rule_delete()
311 net->ipv4.rules_ops = ops; in fib4_rules_init()
312 net->ipv4.fib_has_custom_rules = false; in fib4_rules_init()
323 fib_rules_unregister(net->ipv4.rules_ops); in fib4_rules_exit()
Dfib_frontend.c64 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX]); in fib4_rules_init()
66 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]); in fib4_rules_init()
92 net->ipv4.fib_local = tb; in fib_new_table()
96 net->ipv4.fib_main = tb; in fib_new_table()
100 net->ipv4.fib_default = tb; in fib_new_table()
108 hlist_add_head_rcu(&tb->tb_hlist, &net->ipv4.fib_table_hash[h]); in fib_new_table()
123 head = &net->ipv4.fib_table_hash[h]; in fib_get_table()
143 head = &net->ipv4.fib_table_hash[h]; in fib_flush()
670 head = &net->ipv4.fib_table_hash[h]; in inet_dump_fib()
978 netlink_unicast(net->ipv4.fibnl, skb, portid, MSG_DONTWAIT); in nl_fib_input()
[all …]
Ddevinet.c91 IPV4_DEVCONF((*net->ipv4.devconf_dflt), attr)
239 memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt, in inetdev_init()
1538 cb->seq = atomic_read(&net->ipv4.dev_addr_genid) ^ in inet_dump_ifaddr()
1796 devconf = net->ipv4.devconf_all; in inet_netconf_get_devconf()
1799 devconf = net->ipv4.devconf_dflt; in inet_netconf_get_devconf()
1849 cb->seq = atomic_read(&net->ipv4.dev_addr_genid) ^ in inet_netconf_dump_devconf()
1876 net->ipv4.devconf_all, in inet_netconf_dump_devconf()
1887 net->ipv4.devconf_dflt, in inet_netconf_dump_devconf()
1915 in_dev->cnf.data[i] = net->ipv4.devconf_dflt->data[i]; in devinet_copy_dflt_conf()
1930 net->ipv4.devconf_all); in inet_forward_change()
[all …]
Dtcp_memcontrol.c40 tcp->tcp_prot_mem[0] = net->ipv4.sysctl_tcp_mem[0]; in tcp_init_cgroup()
41 tcp->tcp_prot_mem[1] = net->ipv4.sysctl_tcp_mem[1]; in tcp_init_cgroup()
42 tcp->tcp_prot_mem[2] = net->ipv4.sysctl_tcp_mem[2]; in tcp_init_cgroup()
102 net->ipv4.sysctl_tcp_mem[i]); in tcp_update_limit()
Dxfrm4_policy.c287 net->ipv4.xfrm4_hdr = hdr; in xfrm4_net_init()
301 if (net->ipv4.xfrm4_hdr == NULL) in xfrm4_net_exit()
304 table = net->ipv4.xfrm4_hdr->ctl_table_arg; in xfrm4_net_exit()
305 unregister_net_sysctl_table(net->ipv4.xfrm4_hdr); in xfrm4_net_exit()
Dipmr.c144 list_for_each_entry_rcu(mrt, &net->ipv4.mr_tables, list)
164 err = fib_rules_lookup(net->ipv4.mr_rules_ops, in ipmr_fib_lookup()
252 INIT_LIST_HEAD(&net->ipv4.mr_tables); in ipmr_rules_init()
264 net->ipv4.mr_rules_ops = ops; in ipmr_rules_init()
278 list_for_each_entry_safe(mrt, next, &net->ipv4.mr_tables, list) { in ipmr_rules_exit()
282 fib_rules_unregister(net->ipv4.mr_rules_ops); in ipmr_rules_exit()
286 for (mrt = net->ipv4.mrt; mrt; mrt = NULL)
290 return net->ipv4.mrt; in ipmr_get_table()
296 *mrt = net->ipv4.mrt; in ipmr_fib_lookup()
302 net->ipv4.mrt = ipmr_new_table(net, RT_TABLE_DEFAULT); in ipmr_rules_init()
[all …]
Droute.c492 peer = inet_getpeer_v4(net->ipv4.peers, iph->daddr, 1); in __ip_select_ident()
808 peer = inet_getpeer_v4(net->ipv4.peers, ip_hdr(skb)->saddr, 1); in ip_rt_send_redirect()
893 peer = inet_getpeer_v4(net->ipv4.peers, ip_hdr(skb)->saddr, 1); in ip_error()
2606 net->ipv4.route_hdr = register_net_sysctl(net, "net/ipv4/route", tbl); in sysctl_route_net_init()
2607 if (net->ipv4.route_hdr == NULL) in sysctl_route_net_init()
2622 tbl = net->ipv4.route_hdr->ctl_table_arg; in sysctl_route_net_exit()
2623 unregister_net_sysctl_table(net->ipv4.route_hdr); in sysctl_route_net_exit()
2637 get_random_bytes(&net->ipv4.dev_addr_genid, in rt_genid_init()
2638 sizeof(net->ipv4.dev_addr_genid)); in rt_genid_init()
2653 net->ipv4.peers = bp; in ipv4_inetpeer_init()
[all …]
Dfib_semantics.c229 fi->fib_net->ipv4.fib_num_tclassid_users--; in free_fib_info()
490 fi->fib_net->ipv4.fib_num_tclassid_users++; in fib_get_nhs()
769 nh->nh_saddr_genid = atomic_read(&net->ipv4.dev_addr_genid); in fib_info_update_nh_saddr()
893 fi->fib_net->ipv4.fib_num_tclassid_users++; in fib_create_info()
DKconfig34 echo "1" > /proc/sys/net/ipv4/ip_forward
48 echo 1 > /proc/sys/net/ipv4/conf/<device>/rp_filter
50 echo 1 > /proc/sys/net/ipv4/conf/all/rp_filter
313 echo 0 > /proc/sys/net/ipv4/tcp_syncookies
405 tristate "Large Receive Offload (ipv4/tcp)"
408 Support for Large Receive Offload (ipv4/tcp).
Dtcp_ipv4.c710 ip_send_unicast_reply(*this_cpu_ptr(net->ipv4.tcp_sk), in tcp_v4_send_reset()
796 ip_send_unicast_reply(*this_cpu_ptr(net->ipv4.tcp_sk), in tcp_v4_send_ack()
2912 inet_ctl_sock_destroy(*per_cpu_ptr(net->ipv4.tcp_sk, cpu)); in tcp_sk_exit()
2913 free_percpu(net->ipv4.tcp_sk); in tcp_sk_exit()
2920 net->ipv4.tcp_sk = alloc_percpu(struct sock *); in tcp_sk_init()
2921 if (!net->ipv4.tcp_sk) in tcp_sk_init()
2931 *per_cpu_ptr(net->ipv4.tcp_sk, cpu) = sk; in tcp_sk_init()
2933 net->ipv4.sysctl_tcp_ecn = 2; in tcp_sk_init()
/net/openvswitch/
Dflow.c640 key_len = SW_FLOW_KEY_OFFSET(ipv4.addr); in ovs_flow_extract()
652 key->ipv4.addr.src = nh->saddr; in ovs_flow_extract()
653 key->ipv4.addr.dst = nh->daddr; in ovs_flow_extract()
670 key_len = SW_FLOW_KEY_OFFSET(ipv4.tp); in ovs_flow_extract()
673 key->ipv4.tp.src = tcp->source; in ovs_flow_extract()
674 key->ipv4.tp.dst = tcp->dest; in ovs_flow_extract()
677 key_len = SW_FLOW_KEY_OFFSET(ipv4.tp); in ovs_flow_extract()
680 key->ipv4.tp.src = udp->source; in ovs_flow_extract()
681 key->ipv4.tp.dst = udp->dest; in ovs_flow_extract()
684 key_len = SW_FLOW_KEY_OFFSET(ipv4.tp); in ovs_flow_extract()
[all …]
Dflow.h77 } ipv4; member
/net/ipv4/netfilter/
Diptable_mangle.c62 dev_net(out)->ipv4.iptable_mangle); in ipt_mangle_out()
92 dev_net(out)->ipv4.iptable_mangle); in iptable_mangle_hook()
95 dev_net(in)->ipv4.iptable_mangle); in iptable_mangle_hook()
107 net->ipv4.iptable_mangle = in iptable_mangle_net_init()
110 return PTR_RET(net->ipv4.iptable_mangle); in iptable_mangle_net_init()
115 ipt_unregister_table(net, net->ipv4.iptable_mangle); in iptable_mangle_net_exit()
Darptable_filter.c36 return arpt_do_table(skb, hook, in, out, net->ipv4.arptable_filter); in arptable_filter_hook()
48 net->ipv4.arptable_filter = in arptable_filter_net_init()
51 return PTR_RET(net->ipv4.arptable_filter); in arptable_filter_net_init()
56 arpt_unregister_table(net->ipv4.arptable_filter); in arptable_filter_net_exit()
Diptable_raw.c36 return ipt_do_table(skb, hook, in, out, net->ipv4.iptable_raw); in iptable_raw_hook()
48 net->ipv4.iptable_raw = in iptable_raw_net_init()
51 return PTR_RET(net->ipv4.iptable_raw); in iptable_raw_net_init()
56 ipt_unregister_table(net, net->ipv4.iptable_raw); in iptable_raw_net_exit()
Diptable_security.c54 return ipt_do_table(skb, hook, in, out, net->ipv4.iptable_security); in iptable_security_hook()
66 net->ipv4.iptable_security = in iptable_security_net_init()
69 return PTR_RET(net->ipv4.iptable_security); in iptable_security_net_init()
74 ipt_unregister_table(net, net->ipv4.iptable_security); in iptable_security_net_exit()
Diptable_filter.c49 return ipt_do_table(skb, hook, in, out, net->ipv4.iptable_filter); in iptable_filter_hook()
69 net->ipv4.iptable_filter = in iptable_filter_net_init()
72 return PTR_RET(net->ipv4.iptable_filter); in iptable_filter_net_init()
77 ipt_unregister_table(net, net->ipv4.iptable_filter); in iptable_filter_net_exit()
Diptable_nat.c55 ret = ipt_do_table(skb, hooknum, in, out, net->ipv4.nat_table); in nf_nat_rule_find()
293 net->ipv4.nat_table = ipt_register_table(net, &nf_nat_ipv4_table, repl); in iptable_nat_net_init()
295 return PTR_RET(net->ipv4.nat_table); in iptable_nat_net_init()
300 ipt_unregister_table(net, net->ipv4.nat_table); in iptable_nat_net_exit()
/net/dccp/
DMakefile16 dccp_ipv4-y := ipv4.o
/net/
DMakefile19 obj-$(CONFIG_INET) += ipv4/
DKconfig72 /proc/sys/net/ipv4/*; the options are explained in the file
78 source "net/ipv4/Kconfig"
202 source "net/ipv4/netfilter/Kconfig"

12