recognise DLT_PPP_SERIAL.
authordlg <dlg@openbsd.org>
Tue, 6 Feb 2018 02:55:48 +0000 (02:55 +0000)
committerdlg <dlg@openbsd.org>
Tue, 6 Feb 2018 02:55:48 +0000 (02:55 +0000)
shlib version doesnt need a bump before no new symbols were added
or removed.

part of a larger diff that was ok sthen@

lib/libpcap/gencode.c
lib/libpcap/pcap.c

index fed5811..23057fd 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: gencode.c,v 1.47 2018/02/03 13:39:48 mpi Exp $        */
+/*     $OpenBSD: gencode.c,v 1.48 2018/02/06 02:55:48 dlg Exp $        */
 
 /*
  * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998
@@ -707,6 +707,11 @@ init_linktype(type)
                off_nl = 4;
                return;
 
+       case DLT_PPP_SERIAL:
+               off_linktype = -1;
+               off_nl = 2;
+               return;
+
        case DLT_PPP_ETHER:
                /*
                 * This does not include the Ethernet header, and
index fe6f4b8..4a31a04 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: pcap.c,v 1.21 2018/02/03 13:39:48 mpi Exp $   */
+/*     $OpenBSD: pcap.c,v 1.22 2018/02/06 02:55:48 dlg Exp $   */
 
 /*
  * Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998
@@ -313,6 +313,7 @@ DLT_CHOICE(DLT_IEEE802, "IEEE 802 Networks"),
 DLT_CHOICE(DLT_ARCNET, "ARCNET"),
 DLT_CHOICE(DLT_SLIP, "Serial Line IP"),
 DLT_CHOICE(DLT_PPP, "Point-to-point Protocol"),
+DLT_CHOICE(DLT_PPP_SERIAL, "PPP over serial"),
 DLT_CHOICE(DLT_FDDI, "FDDI"),
 DLT_CHOICE(DLT_ATM_RFC1483, "LLC/SNAP encapsulated atm"),
 DLT_CHOICE(DLT_LOOP, "loopback type (af header)"),