chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6a1eb7
)
sd-dhcp-client: log ifindex and mac address when starting
author
Tom Gundersen
<teg@jklm.no>
Sun, 20 Apr 2014 17:10:02 +0000
(19:10 +0200)
committer
Tom Gundersen
<teg@jklm.no>
Sun, 20 Apr 2014 17:20:26 +0000
(19:20 +0200)
src/libsystemd-network/sd-dhcp-client.c
patch
|
blob
|
history
diff --git
a/src/libsystemd-network/sd-dhcp-client.c
b/src/libsystemd-network/sd-dhcp-client.c
index 489220326e90843872e246b7956ced1e6a6b24bd..854c6711a8f82cd35ee82e53fad85edd79c6630c 100644
(file)
--- 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;
}