summaryrefslogtreecommitdiff
path: root/sysctl.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-07-19 14:41:18 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2015-07-20 10:03:54 +0200
commita1e7c1dc527ca3c37349cebc6fbeaa12a594fcf3 (patch)
tree6f9eefe9f5b3dfaf9ecfd4c1964e0ec0c6bf2c5d /sysctl.h
parentbcc10fdc239d2fe7073637df4febfe60463b4b46 (diff)
sysctl: Add sysctl module with /proc/sys helpers
Moved sysctl get/set funcs from flowtop to separated sysctl module. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'sysctl.h')
-rw-r--r--sysctl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysctl.h b/sysctl.h
new file mode 100644
index 0000000..2f88f0a
--- /dev/null
+++ b/sysctl.h
@@ -0,0 +1,7 @@
+#ifndef SYSCTL_H
+#define SYSCTL_H
+
+int sysctl_set_int(const char *file, int value);
+int sysctl_get_int(const char *file, int *value);
+
+#endif