Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sctp: add sysctl net.sctp.l3mdev_accept

This patch is to add sysctl net.sctp.l3mdev_accept to allow
users to change the pernet global l3mdev_accept.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Xin Long and committed by
David S. Miller
b712d032 0af03170

+20
+9
Documentation/networking/ip-sysctl.rst
··· 3127 3127 3128 3128 Default: 1 3129 3129 3130 + l3mdev_accept - BOOLEAN 3131 + Enabling this option allows a "global" bound socket to work 3132 + across L3 master domains (e.g., VRFs) with packets capable of 3133 + being received regardless of the L3 domain in which they 3134 + originated. Only valid when the kernel was compiled with 3135 + CONFIG_NET_L3_MASTER_DEV. 3136 + 3137 + Default: 1 (enabled) 3138 + 3130 3139 3131 3140 ``/proc/sys/net/core/*`` 3132 3141 ========================
+11
net/sctp/sysctl.c
··· 347 347 .extra1 = &max_autoclose_min, 348 348 .extra2 = &max_autoclose_max, 349 349 }, 350 + #ifdef CONFIG_NET_L3_MASTER_DEV 351 + { 352 + .procname = "l3mdev_accept", 353 + .data = &init_net.sctp.l3mdev_accept, 354 + .maxlen = sizeof(int), 355 + .mode = 0644, 356 + .proc_handler = proc_dointvec_minmax, 357 + .extra1 = SYSCTL_ZERO, 358 + .extra2 = SYSCTL_ONE, 359 + }, 360 + #endif 350 361 { 351 362 .procname = "pf_enable", 352 363 .data = &init_net.sctp.pf_enable,