@SuperQ yeah, you know there is a batch of sysctl config located under procfs.
Under sysctl config file, They looks like this:
# enable fast open
net.ipv4.tcp_fastopen = 3
# turn on path MTU discovery
net.ipv4.tcp_mtu_probing = 1
# tcp window scaling
net.ipv4.tcp_window_scaling = 1
and under procfs, it's saparated files located at different path.
for example:
/proc/sys/net/ipv4/tcp_fastopen
at first, I want to provide a struct and read those config into struct. but thosed config very scattered and commonly a file only contains a single config. so I created this helper method to load those config. Is there a better way ?
@SuperQ yeah, you know there is a batch of sysctl config located under procfs. Under sysctl config file, They looks like this:
and under procfs, it's saparated files located at different path. for example:
at first, I want to provide a struct and read those config into struct. but thosed config very scattered and commonly a file only contains a single config. so I created this helper method to load those config. Is there a better way ?