Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpcap Handle the new NetBSD PPP data link types.
details: https://anonhg.NetBSD.org/src/rev/f246aa0c40c8
branches: trunk
changeset: 472875:f246aa0c40c8
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue May 11 02:20:56 1999 +0000
description:
Handle the new NetBSD PPP data link types.
diffstat:
lib/libpcap/gencode.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r 9fc98828a23f -r f246aa0c40c8 lib/libpcap/gencode.c
--- a/lib/libpcap/gencode.c Tue May 11 02:18:52 1999 +0000
+++ b/lib/libpcap/gencode.c Tue May 11 02:20:56 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gencode.c,v 1.9 1998/07/26 07:23:53 explorer Exp $ */
+/* $NetBSD: gencode.c,v 1.10 1999/05/11 02:20:56 thorpej Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -26,7 +26,7 @@
static const char rcsid[] =
"@(#) Header: gencode.c,v 1.93 97/06/12 14:22:47 leres Exp (LBL)";
#else
-__RCSID("$NetBSD: gencode.c,v 1.9 1998/07/26 07:23:53 explorer Exp $");
+__RCSID("$NetBSD: gencode.c,v 1.10 1999/05/11 02:20:56 thorpej Exp $");
#endif
#endif
@@ -508,6 +508,21 @@
off_nl = 24;
return;
+ case DLT_PPP_SERIAL: /* NetBSD sync/async serial PPP */
+ off_linktype = 2;
+ off_nl = 4;
+ return;
+
+ case DLT_PPP_ETHER: /* NetBSD PPP over Ethernet */
+ /*
+ * This still includes the Ethernet header, since
+ * the Ethertype is used to dispatch Session vs.
+ * Discovery.
+ */
+ off_linktype = 14;
+ off_nl = 16;
+ return;
+
case DLT_FDDI:
/*
* FDDI doesn't really have a link-level type field.
Home |
Main Index |
Thread Index |
Old Index