sysctl-util: make sysctl_write_ip_property() a wrapper around sysctl_write()
authorLennart Poettering <lennart@poettering.net>
Wed, 15 Sep 2021 07:19:04 +0000 (09:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 15 Sep 2021 14:32:40 +0000 (16:32 +0200)
commit6aebfec3a5b56f3f210a4b06bfb806089cbf95b7
tree85f101e1bb8785ef9995f7775cfa6e841ae81a93
parent13239c86e01b4d96ca08b321ffc01a30905d46ce
sysctl-util: make sysctl_write_ip_property() a wrapper around sysctl_write()

It does the same stuff, let's use the same codepaths as much as we can.

And while we are at it, let's generate good error codes in case we are
called with unsupported parameters/let's validate stuff more that might
originate from user input.
src/basic/socket-util.c
src/basic/socket-util.h
src/basic/sysctl-util.c