diff options
author | 27o <27o@users.noreply.github.com> | 2016-12-07 02:00:05 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-12-07 02:00:05 +0100 |
commit | 3e7b9f76f56db77fa1e8a09b543176c7ddd136de (patch) | |
tree | 26ce6515ce42f7d6dda06f4ddac49a6b620a1cac /src/libsystemd-network/sd-dhcp-client.c | |
parent | 73e383cc62c57aedbac26b969a6194c0841a7c99 (diff) |
dhcp: bind udp sockets to interfaces (#4822)
Diffstat (limited to 'src/libsystemd-network/sd-dhcp-client.c')
-rw-r--r-- | src/libsystemd-network/sd-dhcp-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c index 1423264806..b4bf75a3dc 100644 --- a/src/libsystemd-network/sd-dhcp-client.c +++ b/src/libsystemd-network/sd-dhcp-client.c @@ -1546,7 +1546,7 @@ static int client_handle_message(sd_dhcp_client *client, DHCPMessage *message, i goto error; } - r = dhcp_network_bind_udp_socket(client->lease->address, client->port); + r = dhcp_network_bind_udp_socket(client->ifindex, client->lease->address, client->port); if (r < 0) { log_dhcp_client(client, "could not bind UDP socket"); goto error; |