diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-05-21 23:41:25 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-21 23:41:25 +0200 |
commit | c0120d992ce5ab004d9be5ff6ca15e5fe17f9884 (patch) | |
tree | 77293c20ec123d0e3f56ad21a2e08d2b0775106a /src/dbus-socket.c | |
parent | 88ce42f6944774788f610598fccdc6bab4283497 (diff) |
socket: fix parsing of bind_ipv6_only
Diffstat (limited to 'src/dbus-socket.c')
-rw-r--r-- | src/dbus-socket.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dbus-socket.c b/src/dbus-socket.c index 2a2349c00d..cb244a9003 100644 --- a/src/dbus-socket.c +++ b/src/dbus-socket.c @@ -19,6 +19,8 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ +#include <errno.h> + #include "dbus-unit.h" #include "dbus-socket.h" #include "dbus-execute.h" @@ -43,10 +45,12 @@ static const char introspection[] = BUS_INTROSPECTABLE_INTERFACE "</node>"; +static DEFINE_BUS_PROPERTY_APPEND_ENUM(bus_socket_append_bind_ipv6_only, socket_address_bind_ipv6_only, SocketAddressBindIPv6Only); + DBusHandlerResult bus_socket_message_handler(Unit *u, DBusMessage *message) { const BusProperty properties[] = { BUS_UNIT_PROPERTIES, - { "org.freedesktop.systemd1.Socket", "BindIPv6Only", bus_property_append_bool, "b", &u->socket.bind_ipv6_only }, + { "org.freedesktop.systemd1.Socket", "BindIPv6Only", bus_socket_append_bind_ipv6_only, "s", &u->socket.bind_ipv6_only }, { "org.freedesktop.systemd1.Socket", "Backlog", bus_property_append_unsigned, "u", &u->socket.backlog }, { "org.freedesktop.systemd1.Socket", "TimeoutUSec", bus_property_append_usec, "t", &u->socket.timeout_usec }, /* ExecCommand */ |