From 4ba58919418c8d9807fc298a4b19a7429367b36d Mon Sep 17 00:00:00 2001 From: David Hankins Date: Fri, 18 May 2007 17:21:46 +0000 Subject: - DHCPv4 I/O methods that failed to sense hardware address were corrected. [ISC-Bugs #16881] - DHCPv4 is now the default (as documented) rather than DHCPv6. The default was set to DHCPv6 to facilitate ease early development, and forgotten. [ISC-Bugs #16881] - Corrected a segmentation violation in DHCPv4 socket processing. [ISC-Bugs #16881] --- common/socket.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common/socket.c') diff --git a/common/socket.c b/common/socket.c index ea103920..16acd17b 100644 --- a/common/socket.c +++ b/common/socket.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: socket.c,v 1.63 2007/05/17 18:27:11 dhankins Exp $ " +"$Id: socket.c,v 1.64 2007/05/18 17:21:46 dhankins Exp $ " "Copyright (c) 2004-2006 Internet Systems Consortium.\n"; #endif /* not lint */ @@ -244,6 +244,8 @@ if_register_socket(struct interface_info *info, int family, int do_multicast) { } } + get_hw_addr(info->name, &info->hw_address); + return sock; } #endif /* USE_SOCKET_SEND || USE_SOCKET_RECEIVE || USE_SOCKET_FALLBACK */ @@ -324,7 +326,6 @@ void if_register6(struct interface_info *info, int do_multicast) { info->rfdesc = if_register_socket(info, AF_INET6, do_multicast); info->wfdesc = info->rfdesc; - get_hw_addr(info->name, &info->hw_address); if (!quiet_interface_discovery) { if (info->shared_network != NULL) { log_info("Listening on Socket/%s/%s", info->name, -- cgit v1.2.1