summaryrefslogtreecommitdiff
path: root/common/bpf.c
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2007-05-18 17:21:46 +0000
committerDavid Hankins <dhankins@isc.org>2007-05-18 17:21:46 +0000
commit4ba58919418c8d9807fc298a4b19a7429367b36d (patch)
tree9f79980c6443f404324e88fbf553f86ecb126ec9 /common/bpf.c
parentf66f02cc9c7e713bb5e8b40352052cd007e54215 (diff)
downloadisc-dhcp-4ba58919418c8d9807fc298a4b19a7429367b36d.tar.gz
- 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]
Diffstat (limited to 'common/bpf.c')
-rw-r--r--common/bpf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/bpf.c b/common/bpf.c
index e3a4e11d..eb104b40 100644
--- a/common/bpf.c
+++ b/common/bpf.c
@@ -34,7 +34,7 @@
#ifndef lint
static char copyright[] =
-"$Id: bpf.c,v 1.52 2007/05/16 22:27:34 shane Exp $ Copyright (c) 2004 Internet Systems Consortium. All rights reserved.\n";
+"$Id: bpf.c,v 1.53 2007/05/18 17:21:46 dhankins Exp $ Copyright (c) 2004 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -116,6 +116,8 @@ int if_register_bpf (info)
log_fatal ("Can't attach interface %s to bpf device %s: %m",
info -> name, filename);
+ get_hw_addr(info->name, &info->hw_address);
+
return sock;
}
#endif /* USE_BPF_SEND || USE_BPF_RECEIVE */