summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/test-dhcp-server.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-24 19:38:17 +0200
committerTom Gundersen <teg@jklm.no>2014-06-13 16:53:13 +0200
commit3a864fe4a894745ac61f1ecabd7cadf04139a284 (patch)
treeedd58095ea36a2a9e5d5f51eb7e1aea2f3c51453 /src/libsystemd-network/test-dhcp-server.c
parentff734080aa02cd70b13bc0fdeec4a5886166163a (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.c3
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);