From: David Hankins Date: Sat, 19 May 2007 23:16:13 +0000 (+0000) Subject: Do not try to sense the hardware address of the interface "fallback" X-Git-Tag: v4_0_0a1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=049833eee025a3e543aa791347474dd42dbbeab6;p=thirdparty%2Fdhcp.git Do not try to sense the hardware address of the interface "fallback" which we produce artificially. --- diff --git a/common/socket.c b/common/socket.c index 3a5e5fbca..01a17b8c1 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; }