summaryrefslogtreecommitdiffstats
path: root/src/basic/sysctl-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/sysctl-util.h')
-rw-r--r--src/basic/sysctl-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/sysctl-util.h b/src/basic/sysctl-util.h
index 041292f693..bbfc4ce1ea 100644
--- a/src/basic/sysctl-util.h
+++ b/src/basic/sysctl-util.h
@@ -17,6 +17,8 @@ static inline int sysctl_write(const char *property, const char *value) {
}
int sysctl_read_ip_property(int af, const char *ifname, const char *property, char **ret);
+int sysctl_read_ip_property_int(int af, const char *ifname, const char *property, int *ret);
+int sysctl_read_ip_property_uint32(int af, const char *ifname, const char *property, uint32_t *ret);
int sysctl_write_ip_property(int af, const char *ifname, const char *property, const char *value, Hashmap **shadow);
static inline int sysctl_write_ip_property_boolean(int af, const char *ifname, const char *property, bool value, Hashmap **shadow) {
return sysctl_write_ip_property(af, ifname, property, one_zero(value), shadow);