diff options
author | 2004-04-15 23:17:19 +0000 | |
---|---|---|
committer | 2004-04-15 23:17:19 +0000 | |
commit | 33bab31e3876db9f5d399fd297b9224a6456aa2f (patch) | |
tree | d0169ffdc1f614bcadaecc36cfcee9da251ee83b /usr.sbin/dhcpd/bpf.c | |
parent | knf + ansi (diff) | |
download | wireguard-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.c | 4 |
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"); |