Home
last modified time | relevance | path

Searched refs:init_net (Results 1 – 25 of 237) sorted by relevance

12345678910

/openbmc/linux/net/ipv4/
H A Dsysctl_net_ipv4.c672 .data = &init_net.ipv4.sysctl_tcp_ecn,
690 .data = &init_net.ipv4.sysctl_ip_dynaddr,
883 .data = &init_net.ipv4.sysctl_igmp_qrv,
1099 .data = &init_net.ipv4.sysctl_tcp_sack,
1178 .data = &init_net.ipv4.sysctl_tcp_fack,
1192 .data = &init_net.ipv4.sysctl_tcp_dsack,
1217 .data = &init_net.ipv4.sysctl_tcp_frto,
1333 .data = &init_net.ipv4.sysctl_tcp_wmem,
1341 .data = &init_net.ipv4.sysctl_tcp_rmem,
1500 if (!net_eq(net, &init_net)) { in ipv4_sysctl_init_net()
[all …]
H A Dxfrm4_policy.c146 .data = &init_net.xfrm.xfrm4_dst_ops.gc_thresh,
160 if (!net_eq(net, &init_net)) { in xfrm4_net_sysctl_init()
177 if (!net_eq(net, &init_net)) in xfrm4_net_sysctl_init()
192 if (!net_eq(net, &init_net)) in xfrm4_net_sysctl_exit()
H A Dipconfig.c221 for_each_netdev(&init_net, dev) { in ic_open_devs()
228 for_each_netdev(&init_net, dev) { in ic_open_devs()
283 for_each_netdev(&init_net, dev) in ic_open_devs()
376 if ((err = devinet_ioctl(&init_net, SIOCSIFADDR, &ir)) < 0) { in ic_setup_if()
382 if ((err = devinet_ioctl(&init_net, SIOCSIFNETMASK, &ir)) < 0) { in ic_setup_if()
424 if ((err = ip_rt_ioctl(&init_net, SIOCADDRT, &rm)) < 0) { in ic_setup_routes()
507 if (!net_eq(dev_net(dev), &init_net)) in ic_rarp_recv()
996 if (!net_eq(dev_net(dev), &init_net)) in ic_bootp_recv()
1361 ipconfig_dir = proc_net_mkdir(&init_net, "ipconfig", init_net.proc_net); in ipconfig_proc_net_init()
1382 p = proc_create(pname, 0444, init_net.proc_net, proc_ops); in ipconfig_proc_net_create()
[all …]
/openbmc/linux/net/sctp/
H A Dsysctl.c100 .data = &init_net.sctp.rto_min,
109 .data = &init_net.sctp.rto_max,
118 .data = &init_net.sctp.pf_retrans,
127 .data = &init_net.sctp.ps_retrans,
136 .data = &init_net.sctp.rto_initial,
145 .data = &init_net.sctp.rto_alpha,
154 .data = &init_net.sctp.rto_beta,
163 .data = &init_net.sctp.max_burst,
317 .data = &init_net.sctp.udp_port,
373 .data = &init_net.sctp.pf_enable,
[all …]
/openbmc/linux/net/ipv6/
H A Dsysctl_net_ipv6.c67 .data = &init_net.ipv6.sysctl.bindv6only,
88 .data = &init_net.ipv6.sysctl.auto_flowlabels,
96 .data = &init_net.ipv6.sysctl.fwmark_reflect,
103 .data = &init_net.ipv6.sysctl.idgen_retries,
110 .data = &init_net.ipv6.sysctl.idgen_delay,
124 .data = &init_net.ipv6.sysctl.ip_nonlocal_bind,
140 .data = &init_net.ipv6.sysctl.max_dst_opts_cnt,
147 .data = &init_net.ipv6.sysctl.max_hbh_opts_cnt,
186 .data = &init_net.ipv6.sysctl.seg6_flowlabel,
202 .data = &init_net.ipv6.sysctl.ioam6_id,
[all …]
H A Dxfrm6_policy.c189 .data = &init_net.xfrm.xfrm6_dst_ops.gc_thresh,
203 if (!net_eq(net, &init_net)) { in xfrm6_net_sysctl_init()
220 if (!net_eq(net, &init_net)) in xfrm6_net_sysctl_init()
235 if (!net_eq(net, &init_net)) in xfrm6_net_sysctl_exit()
/openbmc/linux/net/smc/
H A Dsmc_sysctl.c32 .data = &init_net.smc.sysctl_autocorking_size,
39 .data = &init_net.smc.sysctl_smcr_buf_type,
48 .data = &init_net.smc.sysctl_smcr_testlink_time,
55 .data = &init_net.smc.sysctl_wmem,
64 .data = &init_net.smc.sysctl_rmem,
79 if (!net_eq(net, &init_net)) { in smc_sysctl_net_init()
87 table[i].data += (void *)net - (void *)&init_net; in smc_sysctl_net_init()
104 if (!net_eq(net, &init_net)) in smc_sysctl_net_init()
116 if (!net_eq(net, &init_net)) in smc_sysctl_net_exit()
/openbmc/linux/net/mptcp/
H A Dtoken_test.c14 sock_net_set((struct sock *)req, &init_net); in build_req_sock()
26 KUNIT_EXPECT_PTR_EQ(test, null_msk, mptcp_token_get_sock(&init_net, req->token)); in mptcp_token_test_req_basic()
59 sock_net_set((struct sock *)msk, &init_net); in build_msk()
82 KUNIT_EXPECT_PTR_EQ(test, msk, mptcp_token_get_sock(&init_net, ctx->token)); in mptcp_token_test_msk_basic()
86 KUNIT_EXPECT_PTR_EQ(test, null_msk, mptcp_token_get_sock(&init_net, ctx->token)); in mptcp_token_test_msk_basic()
98 KUNIT_EXPECT_PTR_EQ(test, msk, mptcp_token_get_sock(&init_net, msk->token)); in mptcp_token_test_accept()
102 KUNIT_EXPECT_PTR_EQ(test, msk, mptcp_token_get_sock(&init_net, msk->token)); in mptcp_token_test_accept()
124 KUNIT_EXPECT_PTR_EQ(test, null_msk, mptcp_token_get_sock(&init_net, msk->token)); in mptcp_token_test_destroyed()
/openbmc/linux/net/unix/
H A Dsysctl_net_unix.c17 .data = &init_net.unx.sysctl_max_dgram_qlen,
29 if (net_eq(net, &init_net)) { in unix_sysctl_register()
47 if (!net_eq(net, &init_net)) in unix_sysctl_register()
59 if (!net_eq(net, &init_net)) in unix_sysctl_unregister()
/openbmc/linux/include/linux/
H A Dseq_file_net.h9 extern struct net init_net;
23 return &init_net; in seq_file_net()
36 return &init_net; in seq_file_single_net()
/openbmc/linux/net/appletalk/
H A Datalk_proc.c212 if (!proc_mkdir("atalk", init_net.proc_net)) in atalk_proc_init()
215 if (!proc_create_seq("atalk/interface", 0444, init_net.proc_net, in atalk_proc_init()
219 if (!proc_create_seq("atalk/route", 0444, init_net.proc_net, in atalk_proc_init()
223 if (!proc_create_seq("atalk/socket", 0444, init_net.proc_net, in atalk_proc_init()
227 if (!proc_create_seq_private("atalk/arp", 0444, init_net.proc_net, in atalk_proc_init()
235 remove_proc_subtree("atalk", init_net.proc_net); in atalk_proc_init()
241 remove_proc_subtree("atalk", init_net.proc_net); in atalk_proc_exit()
/openbmc/linux/net/x25/
H A Dx25_proc.c170 if (!proc_mkdir("x25", init_net.proc_net)) in x25_proc_init()
173 if (!proc_create_seq("x25/route", 0444, init_net.proc_net, in x25_proc_init()
177 if (!proc_create_seq("x25/socket", 0444, init_net.proc_net, in x25_proc_init()
181 if (!proc_create_seq("x25/forward", 0444, init_net.proc_net, in x25_proc_init()
187 remove_proc_subtree("x25", init_net.proc_net); in x25_proc_init()
193 remove_proc_subtree("x25", init_net.proc_net); in x25_proc_exit()
/openbmc/linux/drivers/net/wireguard/selftest/
H A Dratelimiter.c51 if (wg_ratelimiter_allow(skb4, &init_net) != in timings_test()
60 if (!wg_ratelimiter_allow(skb4, &init_net)) in timings_test()
72 if (wg_ratelimiter_allow(skb6, &init_net) != in timings_test()
82 if (!wg_ratelimiter_allow(skb6, &init_net)) in timings_test()
111 if (wg_ratelimiter_allow(skb4, &init_net) != (i != max_entries)) in capacity_test()
/openbmc/linux/net/handshake/
H A Dhandshake-test.c152 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_submit_test1()
193 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_submit_test3()
219 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_submit_test4()
254 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_submit_test5()
292 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_submit_test6()
324 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_cancel_test1()
360 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_cancel_test2()
402 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_cancel_test3()
460 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_destroy_test1()
/openbmc/linux/net/netfilter/
H A Dnf_hooks_lwtunnel.c73 if (!net_eq(net, &init_net)) { in nf_lwtunnel_net_init()
90 if (!net_eq(net, &init_net)) in nf_lwtunnel_net_init()
102 if (!net_eq(net, &init_net)) in nf_lwtunnel_net_exit()
/openbmc/linux/Documentation/networking/
H A Dnetfilter-sysctl.rst14 By default, only init_net namespace can log packets into kernel log
17 namespaces. This variable is only accessible from init_net.
/openbmc/linux/net/llc/
H A Dsysctl_net_llc.c59 llc2_timeout_header = register_net_sysctl(&init_net, "net/llc/llc2/timeout", llc2_timeout_table); in llc_sysctl_init()
60 llc_station_header = register_net_sysctl(&init_net, "net/llc/station", llc_station_table); in llc_sysctl_init()
H A Dllc_proc.c224 llc_proc_dir = proc_mkdir("llc", init_net.proc_net); in llc_proc_init()
242 remove_proc_entry("llc", init_net.proc_net); in llc_proc_init()
250 remove_proc_entry("llc", init_net.proc_net); in llc_proc_exit()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector_reattach.c19 static int init_net = -1; variable
620 netns == init_net ? " (init_net)" : ""); in run_tests()
641 init_net = open("/proc/1/ns/net", O_RDONLY); in serial_test_flow_dissector_reattach()
642 if (CHECK_FAIL(init_net < 0)) { in serial_test_flow_dissector_reattach()
647 err = setns(init_net, CLONE_NEWNET); in serial_test_flow_dissector_reattach()
653 if (prog_is_attached(init_net)) { in serial_test_flow_dissector_reattach()
660 run_tests(init_net); in serial_test_flow_dissector_reattach()
663 new_net = unshare_net(init_net); in serial_test_flow_dissector_reattach()
676 close(init_net); in serial_test_flow_dissector_reattach()
/openbmc/linux/net/core/
H A Dnetprio_cgroup.c162 for_each_netdev(&init_net, dev) { in cgrp_css_online()
188 for_each_netdev_rcu(&init_net, dev) in read_priomap()
206 dev = dev_get_by_name(&init_net, devname); in write_priomap()
H A Dsysctl_net_core.c672 .data = &init_net,
679 .data = &init_net.core.sysctl_somaxconn,
687 .data = &init_net.core.sysctl_txrehash,
715 if (!net_eq(net, &init_net)) { in sysctl_core_net_init()
721 tmp->data += (char *)net - (char *)&init_net; in sysctl_core_net_init()
758 register_net_sysctl(&init_net, "net/core", net_core_table); in sysctl_core_init()
/openbmc/linux/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_module.c261 ieee80211_proc = proc_mkdir(DRV_NAME, init_net.proc_net); in ieee80211_debug_init()
269 remove_proc_entry(DRV_NAME, init_net.proc_net); in ieee80211_debug_init()
280 remove_proc_entry(DRV_NAME, init_net.proc_net); in ieee80211_debug_exit()
/openbmc/linux/drivers/net/wireless/intel/ipw2x00/
H A Dlibipw_module.c258 libipw_proc = proc_mkdir(DRV_PROCNAME, init_net.proc_net); in libipw_init()
267 remove_proc_entry(DRV_PROCNAME, init_net.proc_net); in libipw_init()
284 remove_proc_entry(DRV_PROCNAME, init_net.proc_net); in libipw_exit()
/openbmc/linux/drivers/connector/
H A Dconnector.c286 dev->nls = netlink_kernel_create(&init_net, NETLINK_CONNECTOR, &cfg); in cn_init()
298 proc_create_single("connector", S_IRUGO, init_net.proc_net, cn_proc_show); in cn_init()
309 remove_proc_entry("connector", init_net.proc_net); in cn_fini()
/openbmc/linux/net/mctp/test/
H A Droute-test.c150 rt = mctp_test_create_route(&init_net, NULL, 10, mtu); in mctp_test_fragment()
246 rt = mctp_test_create_route(&init_net, dev->mdev, 8, 68); in mctp_test_rx_input()
297 rt = mctp_test_create_route(&init_net, dev->mdev, 8, 68); in __mctp_route_test_init()
300 rc = sock_create_kern(&init_net, AF_MCTP, SOCK_DGRAM, 0, &sock); in __mctp_route_test_init()
555 rt = mctp_test_create_route(&init_net, dev->mdev, 8, 68); in mctp_test_route_input_sk_keys()
558 rc = sock_create_kern(&init_net, AF_MCTP, SOCK_DGRAM, 0, &sock); in mctp_test_route_input_sk_keys()
571 mctp_reserve_tag(&init_net, key, msk); in mctp_test_route_input_sk_keys()

12345678910