]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Remove the unused DLT_LANE8023 link-layer dissector
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 5 Aug 2020 20:15:45 +0000 (22:15 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 6 Aug 2020 07:44:45 +0000 (09:44 +0200)
DLT_LANE8023 was never defined in libpcap.
It was, perhaps, defined in some SuSE libpcap update, but no evidence
of this.
It is not defined in OpenSuSE Leap 15.2 (information from Guy).

missing/dlnames.c
netdissect.h
print-lane.c
print.c

index 61fa18c12aeeac36466f3cfe58ba5d809267e186..03c2b38c1b7f5d1bcf98528be08f53a870c76ba4 100644 (file)
@@ -119,9 +119,6 @@ static struct dlt_choice dlt_choices[] = {
 #ifdef DLT_LINUX_IRDA
        DLT_CHOICE(DLT_LINUX_IRDA, "Linux IrDA"),
 #endif
-#ifdef DLT_LANE8023
-       DLT_CHOICE(DLT_LANE8023, "Linux 802.3 LANE"),
-#endif
 #ifdef DLT_CIP
        DLT_CHOICE(DLT_CIP, "Linux Classical IP-over-ATM"),
 #endif
index dde21bc8385bd24571f6f70db730c6449d269a00..6e96626259ff991e2eba5df63e107f0c68849d3b 100644 (file)
@@ -503,7 +503,6 @@ extern void juniper_ppp_if_print IF_PRINTER_ARGS;
 extern void juniper_pppoe_atm_if_print IF_PRINTER_ARGS;
 extern void juniper_pppoe_if_print IF_PRINTER_ARGS;
 extern void juniper_services_if_print IF_PRINTER_ARGS;
-extern u_int lane_if_print IF_PRINTER_ARGS;
 extern u_int ltalk_if_print IF_PRINTER_ARGS;
 extern void mfr_if_print IF_PRINTER_ARGS;
 extern void netanalyzer_if_print IF_PRINTER_ARGS;
index d608ffde81c5c68ca5cc1a0394e36a179d1d87be..09f92c0616cf5190c794471897191d06413bf9ea 100644 (file)
@@ -115,12 +115,3 @@ lane_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen)
         */
        ether_print(ndo, p, length, caplen, lane_hdr_print, p - 2, FALSE);
 }
-
-u_int
-lane_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p)
-{
-       ndo->ndo_protocol = "lane_if";
-       lane_print(ndo, p, h->len, h->caplen);
-
-       return (sizeof(struct lecdatahdr_8023));
-}
diff --git a/print.c b/print.c
index 780a6281dae940bcc9e658d9bf76dc7b1a00f833..b79aaf8b41bdec602557fb2631435254bf7e9c62 100644 (file)
--- a/print.c
+++ b/print.c
@@ -53,9 +53,6 @@ struct void_printer {
 };
 
 static const struct uint_printer uint_printers[] = {
-#ifdef DLT_LANE8023
-       { lane_if_print,        DLT_LANE8023 },
-#endif
 #ifdef DLT_C_HDLC
        { chdlc_if_print,       DLT_C_HDLC },
 #endif