summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2002-05-10 15:13:13 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2002-05-10 15:13:13 +0000
commit13645039eec0bf26f9aed9d52ff29bc118df7fb2 (patch)
treeec46468cc5b3698a363214945d40f041ad0d8db4 /sbin
parent472bcd915ee832eff0a4e7647ca355dd55249457 (diff)
Use DLT_LOOP instead of DLT_NULL for pcap, to keep track of changes in
tcpdump(8). This repairs the '-L' (cleartext packet capture) option.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/log.c b/sbin/isakmpd/log.c
index 304bebd75a0..f05d404a49e 100644
--- a/sbin/isakmpd/log.c
+++ b/sbin/isakmpd/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.27 2002/02/19 19:39:38 millert Exp $ */
+/* $OpenBSD: log.c,v 1.28 2002/05/10 15:13:12 ho Exp $ */
/* $EOM: log.c,v 1.30 2000/09/29 08:19:23 niklas Exp $ */
/*
@@ -372,7 +372,7 @@ log_packet_init (char *newname)
sf_hdr.thiszone = 0;
sf_hdr.snaplen = SNAPLEN;
sf_hdr.sigfigs = 0;
- sf_hdr.linktype = DLT_NULL;
+ sf_hdr.linktype = DLT_LOOP;
fwrite ((char *)&sf_hdr, sizeof sf_hdr, 1, packet_log);
fflush (packet_log);