diff options
author | Tom Gundersen <teg@jklm.no> | 2014-04-20 19:10:02 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-04-20 19:20:26 +0200 |
commit | 6317519517210f703e20dc846b31d018845244cd (patch) | |
tree | 1e4f34bf41acf8b403d27f5a457703f7077ac13a /src/libsystemd-network | |
parent | c6a1eb79a52a29ddb80bc2b58f44a86a33e9f027 (diff) |
sd-dhcp-client: log ifindex and mac address when starting
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r-- | src/libsystemd-network/sd-dhcp-client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c index 489220326e..854c6711a8 100644 --- a/src/libsystemd-network/sd-dhcp-client.c +++ b/src/libsystemd-network/sd-dhcp-client.c @@ -23,6 +23,7 @@ #include <stdio.h> #include <net/ethernet.h> #include <net/if_arp.h> +#include <netinet/ether.h> #include <sys/param.h> #include <sys/ioctl.h> @@ -1264,7 +1265,9 @@ int sd_dhcp_client_start(sd_dhcp_client *client) { r = client_start(client); if (r >= 0) - log_dhcp_client(client, "STARTED"); + log_dhcp_client(client, "STARTED on ifindex %u with address %s", + client->index, + ether_ntoa(&client->client_id.mac_addr)); return r; } |