summaryrefslogtreecommitdiff
path: root/usr.sbin/ipftest/ipft_pc.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-04 23:11:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-04 23:11:43 +0000
commit2df7f6110dc24b8d55e1c6c2c825fb2e393cdfb2 (patch)
treea8308b23899504202ffb5a1925373b719ca95e59 /usr.sbin/ipftest/ipft_pc.c
parent9aae5068afee870336e415b14d15b3d9dde81e34 (diff)
add DLT_LOOP support; 4-byte header indicates proto; cstone@pobox.com
Diffstat (limited to 'usr.sbin/ipftest/ipft_pc.c')
-rw-r--r--usr.sbin/ipftest/ipft_pc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/ipftest/ipft_pc.c b/usr.sbin/ipftest/ipft_pc.c
index a9319e7b932..f003bc34251 100644
--- a/usr.sbin/ipftest/ipft_pc.c
+++ b/usr.sbin/ipftest/ipft_pc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipft_pc.c,v 1.8 1998/01/26 04:16:35 dgregor Exp $ */
+/* $OpenBSD: ipft_pc.c,v 1.9 1998/06/04 23:11:40 deraadt Exp $ */
/*
* Copyright (C) 1993-1997 by Darren Reed.
*
@@ -34,7 +34,7 @@
#include "pcap.h"
#if !defined(lint)
-static const char rcsid[] = "@(#)$Id: ipft_pc.c,v 1.8 1998/01/26 04:16:35 dgregor Exp $";
+static const char rcsid[] = "@(#)$Id: ipft_pc.c,v 1.9 1998/06/04 23:11:40 deraadt Exp $";
#endif
struct llc {
@@ -47,7 +47,7 @@ struct llc {
* While many of these maybe the same, some do have different header formats
* which make this useful.
*/
-#define DLT_MAX 10
+#define DLT_MAX 12
static struct llc llcs[DLT_MAX+1] = {
{ 0, 0, 0 }, /* DLT_NULL */
@@ -60,7 +60,9 @@ static struct llc llcs[DLT_MAX+1] = {
{ 0, 0, 0 }, /* DLT_ARCNET */
{ 0, 0, 0 }, /* DLT_SLIP */
{ 0, 0, 0 }, /* DLT_PPP */
- { 0, 0, 0 } /* DLT_FDDI */
+ { 0, 0, 0 }, /* DLT_FDDI */
+ { 0, 0, 0 }, /* DLT_ATMRFC1483 */
+ { 0, 0, 0 } /* DLT_LOOP */
};
static int pcap_open __P((char *));