summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/bpf.c
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2004-04-15 23:17:19 +0000
committerhenning <henning@openbsd.org>2004-04-15 23:17:19 +0000
commit33bab31e3876db9f5d399fd297b9224a6456aa2f (patch)
treed0169ffdc1f614bcadaecc36cfcee9da251ee83b /usr.sbin/dhcpd/bpf.c
parentknf + ansi (diff)
downloadwireguard-openbsd-33bab31e3876db9f5d399fd297b9224a6456aa2f.tar.xz
wireguard-openbsd-33bab31e3876db9f5d399fd297b9224a6456aa2f.zip
dhcpd actually does not listen on port 68 ...
Diffstat (limited to 'usr.sbin/dhcpd/bpf.c')
-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");