summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-04-15 23:17:20 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-04-15 23:17:20 +0000
commit61e786809c15717b49e8bb7142788a83ce2c4499 (patch)
tree1a466565a8e67dd4c2ad2fd581b44aed52f1ff59
parentfb94bde1c1e9490917d8f3962d8f6255598ac472 (diff)
dhcpd actually does not listen on port 68 ...
-rw-r--r--usr.sbin/dhcpd/bpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dhcpd/bpf.c b/usr.sbin/dhcpd/bpf.c
index b996cf27fc0..3d0b625786b 100644
--- a/usr.sbin/dhcpd/bpf.c
+++ b/usr.sbin/dhcpd/bpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.c,v 1.1 2004/04/13 23:41:48 henning Exp $ */
+/* $OpenBSD: bpf.c,v 1.2 2004/04/15 23:17:19 henning Exp $ */
/* BPF socket interface code, originally contributed by Archie Cobbs. */
@@ -175,7 +175,7 @@ if_register_receive(struct interface_info *info)
* XXX: changes to filter program may require changes to the
* insn number(s) used below!
*/
- dhcp_bpf_filter[8].k = LOCAL_PORT;
+ dhcp_bpf_filter[8].k = ntohs(local_port);
if (ioctl(info->rfdesc, BIOCSETF, &p) < 0)
error("Can't install packet filter program: %m");