From 61e786809c15717b49e8bb7142788a83ce2c4499 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Thu, 15 Apr 2004 23:17:20 +0000 Subject: dhcpd actually does not listen on port 68 ... --- usr.sbin/dhcpd/bpf.c | 4 ++-- 1 file 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"); -- cgit v1.2.3