diff options
author | Tom Gundersen <teg@jklm.no> | 2014-05-24 19:38:17 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-06-13 16:53:13 +0200 |
commit | 3a864fe4a894745ac61f1ecabd7cadf04139a284 (patch) | |
tree | edd58095ea36a2a9e5d5f51eb7e1aea2f3c51453 /src/libsystemd-network/test-dhcp-server.c | |
parent | ff734080aa02cd70b13bc0fdeec4a5886166163a (diff) |
sd-dhcp-server: bind to a given interface
We will (at least at first), restrict our focus to running the server
on at most one interface.
Diffstat (limited to 'src/libsystemd-network/test-dhcp-server.c')
-rw-r--r-- | src/libsystemd-network/test-dhcp-server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-network/test-dhcp-server.c b/src/libsystemd-network/test-dhcp-server.c index 80d2184b70..2feb124036 100644 --- a/src/libsystemd-network/test-dhcp-server.c +++ b/src/libsystemd-network/test-dhcp-server.c @@ -32,7 +32,8 @@ static void test_basic(sd_event *event) { _cleanup_dhcp_server_unref_ sd_dhcp_server *server = NULL; - assert_se(sd_dhcp_server_new(&server) >= 0); + /* attach to loopback interface */ + assert_se(sd_dhcp_server_new(&server, 1) >= 0); assert_se(server); assert_se(sd_dhcp_server_attach_event(server, event, 0) >= 0); |