summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/bpf.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2017-07-24 16:17:35 +0000
committerkrw <krw@openbsd.org>2017-07-24 16:17:35 +0000
commitad7cd28feaa9ede1625959b17a4f41709d85f4a7 (patch)
treea398ea2dc626b498f9c9f09e61ff1b0cbf92a87e /sbin/dhclient/bpf.c
parentadd some missing MULTIPROCESSOR ifdefs to not compile in code on (diff)
downloadwireguard-openbsd-ad7cd28feaa9ede1625959b17a4f41709d85f4a7.tar.xz
wireguard-openbsd-ad7cd28feaa9ede1625959b17a4f41709d85f4a7.zip
Tweak some comments
Diffstat (limited to 'sbin/dhclient/bpf.c')
-rw-r--r--sbin/dhclient/bpf.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c
index 926a76ff210..30490fdd5b1 100644
--- a/sbin/dhclient/bpf.c
+++ b/sbin/dhclient/bpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.c,v 1.62 2017/07/14 16:35:59 krw Exp $ */
+/* $OpenBSD: bpf.c,v 1.63 2017/07/24 16:17:35 krw Exp $ */
/* BPF socket interface code, originally contributed by Archie Cobbs. */
@@ -65,9 +65,6 @@
#include "dhcpd.h"
#include "log.h"
-/*
- * Returns a packet filter socket fd on the interface.
- */
int
get_bpf_sock(char *name)
{
@@ -108,7 +105,7 @@ get_udp_sock(int rdomain)
/*
* Packet filter program.
*
- * XXX: Changes to the filter program may require changes to the
+ * N.B.: Changes to the filter program may require changes to the
* constant offsets used in if_register_receive to patch the BPF program!
*/
struct bpf_insn dhcp_bpf_filter[] = {
@@ -217,7 +214,7 @@ configure_bpf_sock(int bfdesc)
/* Patch the server port into the BPF program.
*
- * XXX: changes to filter program may require changes to the
+ * N.B.: changes to filter program may require changes to the
* insn number(s) used below!
*/
dhcp_bpf_filter[8].k = LOCAL_PORT;