summaryrefslogtreecommitdiff
path: root/common/socket.c
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2007-05-19 23:16:13 +0000
committerDavid Hankins <dhankins@isc.org>2007-05-19 23:16:13 +0000
commit049833eee025a3e543aa791347474dd42dbbeab6 (patch)
treed937aa0518b77b139a7916d9a733b9997fd0aaef /common/socket.c
parent3af71c19e42a50b4398c120126f48859347022d2 (diff)
downloadisc-dhcp-049833eee025a3e543aa791347474dd42dbbeab6.tar.gz
Do not try to sense the hardware address of the interface "fallback"
which we produce artificially.
Diffstat (limited to 'common/socket.c')
-rw-r--r--common/socket.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/socket.c b/common/socket.c
index 3a5e5fbc..01a17b8c 100644
--- a/common/socket.c
+++ b/common/socket.c
@@ -42,7 +42,7 @@
#ifndef lint
static char copyright[] =
-"$Id: socket.c,v 1.65 2007/05/19 18:47:14 dhankins Exp $ "
+"$Id: socket.c,v 1.66 2007/05/19 23:16:13 dhankins Exp $ "
"Copyright (c) 2004-2007 Internet Systems Consortium.\n";
#endif /* not lint */
@@ -250,7 +250,8 @@ if_register_socket(struct interface_info *info, int family, int do_multicast) {
}
#endif /* DHCPv6 */
- get_hw_addr(info->name, &info->hw_address);
+ if (strcmp(info->name, "fallback") != 0)
+ get_hw_addr(info->name, &info->hw_address);
return sock;
}