/linux/net/ipv4/ |
H A D | sysctl_net_ipv4.c | 724 .data = &init_net.ipv4.sysctl_tcp_ecn, 789 .data = &init_net, 935 .data = &init_net.ipv4.sysctl_igmp_qrv, 1132 .data = &init_net, 1158 .data = &init_net.ipv4.sysctl_tcp_sack, 1237 .data = &init_net.ipv4.sysctl_tcp_fack, 1276 .data = &init_net.ipv4.sysctl_tcp_frto, 1392 .data = &init_net.ipv4.sysctl_tcp_wmem, 1400 .data = &init_net.ipv4.sysctl_tcp_rmem, 1584 if (!net_eq(net, &init_net)) { in ipv4_sysctl_init_net() [all …]
|
H A D | xfrm4_policy.c | 146 .data = &init_net.xfrm.xfrm4_dst_ops.gc_thresh, 159 if (!net_eq(net, &init_net)) { in xfrm4_net_sysctl_init() 176 if (!net_eq(net, &init_net)) in xfrm4_net_sysctl_init() 191 if (!net_eq(net, &init_net)) in xfrm4_net_sysctl_exit()
|
H A D | ipconfig.c | 221 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 …]
|
/linux/net/sctp/ |
H A D | sysctl.c | 98 .data = &init_net.sctp.rto_min, 107 .data = &init_net.sctp.rto_max, 116 .data = &init_net.sctp.pf_retrans, 125 .data = &init_net.sctp.ps_retrans, 134 .data = &init_net.sctp.rto_initial, 143 .data = &init_net.sctp.rto_alpha, 152 .data = &init_net.sctp.rto_beta, 161 .data = &init_net.sctp.max_burst, 315 .data = &init_net.sctp.udp_port, 371 .data = &init_net.sctp.pf_enable, [all …]
|
/linux/net/ipv6/ |
H A D | sysctl_net_ipv6.c | 67 .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 D | xfrm6_policy.c | 189 .data = &init_net.xfrm.xfrm6_dst_ops.gc_thresh, 202 if (!net_eq(net, &init_net)) { in xfrm6_net_sysctl_init() 219 if (!net_eq(net, &init_net)) in xfrm6_net_sysctl_init() 234 if (!net_eq(net, &init_net)) in xfrm6_net_sysctl_exit()
|
/linux/net/smc/ |
H A D | smc_sysctl.c | 43 .data = &init_net.smc.sysctl_smcr_buf_type, 52 .data = &init_net.smc.sysctl_smcr_testlink_time, 59 .data = &init_net.smc.sysctl_wmem, 68 .data = &init_net.smc.sysctl_rmem, 77 .data = &init_net.smc.sysctl_max_links_per_lgr, 86 .data = &init_net.smc.sysctl_max_conns_per_lgr, 95 .data = &init_net.smc.limit_smc_hs, 110 if (!net_eq(net, &init_net)) { in smc_sysctl_net_init() 118 table[i].data += (void *)net - (void *)&init_net; in smc_sysctl_net_init() 139 if (!net_eq(net, &init_net)) in smc_sysctl_net_init() [all …]
|
/linux/net/mptcp/ |
H A D | token_test.c | 14 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() 60 sock_net_set((struct sock *)msk, &init_net); in build_msk() 87 KUNIT_EXPECT_PTR_EQ(test, msk, mptcp_token_get_sock(&init_net, ctx->token)); in mptcp_token_test_msk_basic() 91 KUNIT_EXPECT_PTR_EQ(test, null_msk, mptcp_token_get_sock(&init_net, ctx->token)); in mptcp_token_test_msk_basic() 103 KUNIT_EXPECT_PTR_EQ(test, msk, mptcp_token_get_sock(&init_net, msk->token)); in mptcp_token_test_accept() 107 KUNIT_EXPECT_PTR_EQ(test, msk, mptcp_token_get_sock(&init_net, msk->token)); in mptcp_token_test_accept() 129 KUNIT_EXPECT_PTR_EQ(test, null_msk, mptcp_token_get_sock(&init_net, msk->token)); in mptcp_token_test_destroyed()
|
/linux/net/unix/ |
H A D | sysctl_net_unix.c | 17 .data = &init_net.unx.sysctl_max_dgram_qlen, 28 if (net_eq(net, &init_net)) { in unix_sysctl_register() 46 if (!net_eq(net, &init_net)) in unix_sysctl_register() 58 if (!net_eq(net, &init_net)) in unix_sysctl_unregister()
|
/linux/net/appletalk/ |
H A D | atalk_proc.c | 212 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()
|
/linux/net/x25/ |
H A D | x25_proc.c | 170 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()
|
/linux/include/linux/ |
H A D | seq_file_net.h | 9 extern struct net init_net; 23 return &init_net; in seq_file_net() 36 return &init_net; in seq_file_single_net()
|
/linux/net/handshake/ |
H A D | handshake-test.c | 152 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()
|
/linux/drivers/net/wireguard/selftest/ |
H A D | ratelimiter.c | 51 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()
|
/linux/net/netfilter/ |
H A D | nf_hooks_lwtunnel.c | 73 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()
|
/linux/Documentation/networking/ |
H A D | netfilter-sysctl.rst | 14 By default, only init_net namespace can log packets into kernel log 17 namespaces. This variable is only accessible from init_net.
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector_reattach.c | 19 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()
|
/linux/net/llc/ |
H A D | sysctl_net_llc.c | 55 llc2_timeout_header = register_net_sysctl(&init_net, "net/llc/llc2/timeout", llc2_timeout_table); in llc_sysctl_init() 56 llc_station_header = register_net_sysctl_sz(&init_net, "net/llc/station", empty, 0); in llc_sysctl_init()
|
H A D | llc_proc.c | 224 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()
|
/linux/net/core/ |
H A D | netprio_cgroup.c | 162 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 D | sysctl_net_core.c | 638 .data = &init_net, 645 .data = &init_net.core.sysctl_somaxconn, 653 .data = &init_net.core.sysctl_optmem_max, 661 .data = &init_net.core.sysctl_txrehash, 724 if (!net_eq(net, &init_net)) { in sysctl_core_net_init() 734 tbl[i].data += (char *)net - (char *)&init_net; in sysctl_core_net_init() 773 register_net_sysctl(&init_net, "net/core", net_core_table); in sysctl_core_init()
|
/linux/drivers/net/wireless/intel/ipw2x00/ |
H A D | libipw_module.c | 258 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()
|
/linux/drivers/connector/ |
H A D | connector.c | 285 dev->nls = netlink_kernel_create(&init_net, NETLINK_CONNECTOR, &cfg); in cn_init() 297 proc_create_single("connector", S_IRUGO, init_net.proc_net, cn_proc_show); in cn_init() 308 remove_proc_entry("connector", init_net.proc_net); in cn_fini()
|
/linux/drivers/net/hamradio/ |
H A D | bpqether.c | 177 if (!net_eq(dev_net(dev), &init_net)) in bpq_rcv() 533 if (!net_eq(dev_net(dev), &init_net)) in bpq_device_event() 571 if (!proc_create_seq("bpqether", 0444, init_net.proc_net, &bpq_seqops)) { in bpq_init_driver() 595 remove_proc_entry("bpqether", init_net.proc_net); in bpq_cleanup_driver()
|
/linux/drivers/staging/gdm724x/ |
H A D | netlink_k.c | 59 dev = dev_get_by_index(&init_net, ifindex); in netlink_rcv_cb() 84 sock = netlink_kernel_create(&init_net, unit, &cfg); in netlink_init()
|