Lines Matching refs:table
67 static int ipv4_local_port_range(const struct ctl_table *table, int write, in ipv4_local_port_range() argument
70 struct net *net = table->data; in ipv4_local_port_range()
76 .mode = table->mode, in ipv4_local_port_range()
101 static int ipv4_privileged_ports(const struct ctl_table *table, int write, in ipv4_privileged_ports() argument
104 struct net *net = container_of(table->data, struct net, in ipv4_privileged_ports()
112 .mode = table->mode, in ipv4_privileged_ports()
135 static void inet_get_ping_group_range_table(const struct ctl_table *table, in inet_get_ping_group_range_table() argument
138 kgid_t *data = table->data; in inet_get_ping_group_range_table()
140 container_of(table->data, struct net, ipv4.ping_group_range.range); in inet_get_ping_group_range_table()
151 static void set_ping_group_range(const struct ctl_table *table, in set_ping_group_range() argument
154 kgid_t *data = table->data; in set_ping_group_range()
156 container_of(table->data, struct net, ipv4.ping_group_range.range); in set_ping_group_range()
164 static int ipv4_ping_group_range(const struct ctl_table *table, int write, in ipv4_ping_group_range() argument
174 .mode = table->mode, in ipv4_ping_group_range()
179 inet_get_ping_group_range_table(table, &low, &high); in ipv4_ping_group_range()
193 set_ping_group_range(table, low, high); in ipv4_ping_group_range()
199 static int ipv4_fwd_update_priority(const struct ctl_table *table, int write, in ipv4_fwd_update_priority() argument
205 net = container_of(table->data, struct net, in ipv4_fwd_update_priority()
207 ret = proc_dou8vec_minmax(table, write, buffer, lenp, ppos); in ipv4_fwd_update_priority()
288 static int proc_tcp_fastopen_key(const struct ctl_table *table, int write, in proc_tcp_fastopen_key() argument
291 struct net *net = container_of(table->data, struct net, in proc_tcp_fastopen_key()
359 static int proc_tfo_blackhole_detect_timeout(const struct ctl_table *table, in proc_tfo_blackhole_detect_timeout() argument
363 struct net *net = container_of(table->data, struct net, in proc_tfo_blackhole_detect_timeout()
367 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_tfo_blackhole_detect_timeout()
391 static int proc_tcp_ehash_entries(const struct ctl_table *table, int write, in proc_tcp_ehash_entries() argument
394 struct net *net = container_of(table->data, struct net, in proc_tcp_ehash_entries()
415 static int proc_udp_hash_entries(const struct ctl_table *table, int write, in proc_udp_hash_entries() argument
418 struct net *net = container_of(table->data, struct net, in proc_udp_hash_entries()
439 static int proc_fib_multipath_hash_policy(const struct ctl_table *table, int write, in proc_fib_multipath_hash_policy() argument
443 struct net *net = container_of(table->data, struct net, in proc_fib_multipath_hash_policy()
447 ret = proc_dou8vec_minmax(table, write, buffer, lenp, ppos); in proc_fib_multipath_hash_policy()
454 static int proc_fib_multipath_hash_fields(const struct ctl_table *table, int write, in proc_fib_multipath_hash_fields() argument
461 net = container_of(table->data, struct net, in proc_fib_multipath_hash_fields()
463 ret = proc_douintvec_minmax(table, write, buffer, lenp, ppos); in proc_fib_multipath_hash_fields()
489 static int proc_fib_multipath_hash_seed(const struct ctl_table *table, int write, in proc_fib_multipath_hash_seed() argument
494 struct net *net = table->data; in proc_fib_multipath_hash_seed()
502 tmp = *table; in proc_fib_multipath_hash_seed()
1601 struct ctl_table *table; in ipv4_sysctl_init_net() local
1603 table = ipv4_net_table; in ipv4_sysctl_init_net()
1607 table = kmemdup(table, sizeof(ipv4_net_table), GFP_KERNEL); in ipv4_sysctl_init_net()
1608 if (!table) in ipv4_sysctl_init_net()
1612 if (table[i].data) { in ipv4_sysctl_init_net()
1616 table[i].data += (void *)net - (void *)&init_net; in ipv4_sysctl_init_net()
1621 table[i].mode &= ~0222; in ipv4_sysctl_init_net()
1626 net->ipv4.ipv4_hdr = register_net_sysctl_sz(net, "net/ipv4", table, in ipv4_sysctl_init_net()
1643 kfree(table); in ipv4_sysctl_init_net()
1650 const struct ctl_table *table; in ipv4_sysctl_exit_net() local
1653 table = net->ipv4.ipv4_hdr->ctl_table_arg; in ipv4_sysctl_exit_net()
1655 kfree(table); in ipv4_sysctl_exit_net()