diff options
| author | thorpej <thorpej@NetBSD.org> | 1999-05-11 02:20:56 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 1999-05-11 02:20:56 +0000 |
| commit | 4e571c43d430afd67cdfaa0c9ea9c714692a8e2d (patch) | |
| tree | fe0fae81c11ffc8ca221e9169302a43907c1ab5d /lib/libpcap/gencode.c | |
| parent | 4c89a367d553cc657fb9e062cca4bc905e2e3003 (diff) | |
Handle the new NetBSD PPP data link types.
Diffstat (limited to 'lib/libpcap/gencode.c')
| -rw-r--r-- | lib/libpcap/gencode.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/lib/libpcap/gencode.c b/lib/libpcap/gencode.c index b4b919b163e..8c84053947f 100644 --- a/lib/libpcap/gencode.c +++ b/lib/libpcap/gencode.c @@ -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 @@ init_linktype(type) 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. |
