3 @@ -73,6 +73,86 @@ DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@
5 CSRC = fptype.c tcpdump.c
11 + netdissect-alloc.c \
15 + ascii_strcasecmp.c \
79 + print-unsupported.c \
90 @@ -254,6 +334,8 @@ LIBNETDISSECT_SRC=\
101 @@ -680,8 +680,10 @@ linkaddr_string(netdissect_options *ndo,
102 if (type == LINKADDR_ETHER && len == MAC_ADDR_LEN)
103 return (etheraddr_string(ndo, ep));
105 +#ifndef TCPDUMP_MINI
106 if (type == LINKADDR_FRELAY)
107 return (q922_string(ndo, ep, len));
110 tp = lookup_bytestring(ndo, ep, len);
112 @@ -1260,6 +1262,7 @@ init_addrtoname(netdissect_options *ndo,
113 init_ipxsaparray(ndo);
116 +#ifndef TCPDUMP_MINI
118 dnaddr_string(netdissect_options *ndo, u_short dnaddr)
120 @@ -1276,6 +1279,7 @@ dnaddr_string(netdissect_options *ndo, u
126 /* Return a zero'ed hnamemem struct and cuts down on calloc() overhead */
130 @@ -545,6 +545,7 @@ ethertype_print(netdissect_options *ndo,
131 arp_print(ndo, p, length, caplen);
134 +#ifndef TCPDUMP_MINI
136 decnet_print(ndo, p, length, caplen);
138 @@ -575,6 +576,7 @@ ethertype_print(netdissect_options *ndo,
140 isoclns_print(ndo, p + 1, length - 1);
144 case ETHERTYPE_PPPOED:
145 case ETHERTYPE_PPPOES:
146 @@ -587,9 +589,11 @@ ethertype_print(netdissect_options *ndo,
150 +#ifndef TCPDUMP_MINI
151 case ETHERTYPE_REALTEK:
152 rtl_print(ndo, p, length, src, dst);
158 @@ -598,6 +602,7 @@ ethertype_print(netdissect_options *ndo,
162 +#ifndef TCPDUMP_MINI
164 mpcp_print(ndo, p, length);
166 @@ -610,19 +615,23 @@ ethertype_print(netdissect_options *ndo,
167 case ETHERTYPE_CFM_OLD:
168 cfm_print(ndo, p, length);
173 lldp_print(ndo, p, length);
176 +#ifndef TCPDUMP_MINI
178 nsh_print(ndo, p, length);
182 case ETHERTYPE_LOOPBACK:
183 loopback_print(ndo, p, length);
186 +#ifndef TCPDUMP_MINI
188 case ETHERTYPE_MPLS_MULTI:
189 mpls_print(ndo, p, length);
190 @@ -652,6 +661,7 @@ ethertype_print(netdissect_options *ndo,
192 ptp_print(ndo, p, length);
200 @@ -207,6 +207,7 @@ gre_print_0(netdissect_options *ndo, con
202 ip6_print(ndo, bp, len);
204 +#ifndef TCPDUMP_MINI
206 mpls_print(ndo, bp, len);
208 @@ -219,6 +220,7 @@ gre_print_0(netdissect_options *ndo, con
209 case ETHERTYPE_GRE_ISO:
210 isoclns_print(ndo, bp, len);
214 ether_print(ndo, bp, len, ND_BYTES_AVAILABLE_AFTER(bp), NULL, NULL);
218 @@ -1371,7 +1371,7 @@ get_upperlayer(netdissect_options *ndo,
219 nh = GET_U_1(fragh->ip6f_nxt);
220 hlen = sizeof(struct ip6_frag);
223 +#ifndef TCPDUMP_MINI
225 ah = (const struct ah *)bp;
226 if (!ND_TTEST_1(ah->ah_len))
227 @@ -1379,7 +1379,7 @@ get_upperlayer(netdissect_options *ndo,
228 nh = GET_U_1(ah->ah_nxt);
229 hlen = (GET_U_1(ah->ah_len) + 2) << 2;
233 default: /* unknown or undecodable header */
234 *prot = nh; /* meaningless, but set here anyway */
238 @@ -269,6 +269,7 @@ igmp_print(netdissect_options *ndo,
240 ND_PRINT("igmp leave %s", GET_IPADDR_STRING(bp + 4));
242 +#ifndef TCPDUMP_MINI
244 ND_PRINT("igmp dvmrp");
246 @@ -280,6 +281,7 @@ igmp_print(netdissect_options *ndo,
247 ND_PRINT("igmp pimv1");
248 pimv1_print(ndo, bp, len);
252 print_mtrace(ndo, "mresp", bp, len);
254 --- a/print-ip-demux.c
255 +++ b/print-ip-demux.c
256 @@ -48,6 +48,7 @@ ip_demux_print(netdissect_options *ndo,
260 +#ifndef TCPDUMP_MINI
262 if (!ND_TTEST_1(bp)) {
263 ndo->ndo_protocol = "ah";
264 @@ -85,7 +86,9 @@ again:
270 +#ifndef TCPDUMP_MINI
272 sctp_print(ndo, bp, iph, length);
274 @@ -93,7 +96,7 @@ again:
276 dccp_print(ndo, bp, iph, length);
281 tcp_print(ndo, bp, length, iph, fragmented);
283 @@ -122,6 +125,7 @@ again:
287 +#ifndef TCPDUMP_MINI
290 * XXX - the current IANA protocol number assignments
291 @@ -142,14 +146,17 @@ again:
293 eigrp_print(ndo, bp, length);
298 ND_PRINT(" nd %u", length);
301 +#ifndef TCPDUMP_MINI
303 egp_print(ndo, bp, length);
309 @@ -186,6 +193,7 @@ again:
310 gre_print(ndo, bp, length);
313 +#ifndef TCPDUMP_MINI
315 mobile_print(ndo, bp, length);
317 @@ -205,6 +213,7 @@ again:
319 pgm_print(ndo, bp, length, iph);
323 case IPPROTO_ETHERNET:
327 @@ -135,10 +135,11 @@ ip6_finddst(netdissect_options *ndo, nd_
328 * Only one routing header to a customer.
332 +#ifndef TCPDUMP_MINI
339 * AH and ESP are, in the RFCs that describe them,
340 @@ -375,6 +376,7 @@ ip6_print(netdissect_options *ndo, const
344 +#ifndef TCPDUMP_MINI
345 case IPPROTO_FRAGMENT:
346 advance = frag6_print(ndo, cp, (const u_char *)ip6);
347 if (advance < 0 || ndo->ndo_snapend <= cp + advance) {
348 @@ -405,7 +407,7 @@ ip6_print(netdissect_options *ndo, const
350 nd_pop_packet_info(ndo);
354 case IPPROTO_ROUTING:
356 advance = rt6_print(ndo, cp, (const u_char *)ip6);
359 @@ -207,6 +207,7 @@ llc_print(netdissect_options *ndo, const
360 hdrlen = 4; /* DSAP, SSAP, 2-byte control field */
363 +#ifndef TCPDUMP_MINI
364 if (ssap_field == LLCSAP_GLOBAL && dsap_field == LLCSAP_GLOBAL) {
366 * This is an Ethernet_802.3 IPX frame; it has an
367 @@ -229,6 +230,7 @@ llc_print(netdissect_options *ndo, const
368 ipx_print(ndo, p, length);
369 return (0); /* no LLC header */
373 dsap = dsap_field & ~LLC_IG;
374 ssap = ssap_field & ~LLC_GSAP;
375 @@ -292,6 +294,7 @@ llc_print(netdissect_options *ndo, const
379 +#ifndef TCPDUMP_MINI
380 if (ssap == LLCSAP_IPX && dsap == LLCSAP_IPX &&
383 @@ -305,6 +308,7 @@ llc_print(netdissect_options *ndo, const
384 ipx_print(ndo, p, length);
390 if (ssap == LLCSAP_NETBEUI && dsap == LLCSAP_NETBEUI
391 @@ -323,12 +327,13 @@ llc_print(netdissect_options *ndo, const
395 +#ifndef TCPDUMP_MINI
396 if (ssap == LLCSAP_ISONS && dsap == LLCSAP_ISONS
397 && control == LLC_UI) {
398 isoclns_print(ndo, p, length);
403 if (!ndo->ndo_eflag) {
405 if (src == NULL || dst == NULL)
406 @@ -484,6 +489,7 @@ snap_print(netdissect_options *ndo, cons
410 +#ifndef TCPDUMP_MINI
412 cdp_print(ndo, p, length);
414 @@ -496,6 +502,7 @@ snap_print(netdissect_options *ndo, cons
416 vtp_print(ndo, p, length);
420 case PID_CISCO_VLANBRIDGE:
421 stp_print(ndo, p, length);
422 @@ -508,6 +515,7 @@ snap_print(netdissect_options *ndo, cons
426 +#ifndef TCPDUMP_MINI
427 case PID_RFC2684_ETH_FCS:
428 case PID_RFC2684_ETH_NOFCS:
430 @@ -569,6 +577,7 @@ snap_print(netdissect_options *ndo, cons
432 fddi_print(ndo, p, length, caplen);
436 case PID_RFC2684_BPDU:
437 stp_print(ndo, p, length);
440 @@ -116,6 +116,7 @@ null_if_print(netdissect_options *ndo, c
441 ip6_print(ndo, p, length);
444 +#ifndef TCPDUMP_MINI
446 isoclns_print(ndo, p, length);
448 @@ -127,6 +128,7 @@ null_if_print(netdissect_options *ndo, c
450 ipx_print(ndo, p, length);
455 /* unknown AF_ value */
458 @@ -1355,6 +1355,7 @@ trunc:
459 * The length argument is the on-the-wire length, not the captured
460 * length; we can only un-escape the captured part.
462 +#ifndef TCPDUMP_MINI
464 ppp_hdlc(netdissect_options *ndo,
465 const u_char *p, u_int length)
466 @@ -1451,17 +1452,19 @@ trunc:
467 ndo->ndo_snapend = se;
475 handle_ppp(netdissect_options *ndo,
476 u_int proto, const u_char *p, u_int length)
478 +#ifndef TCPDUMP_MINI
479 if ((proto & 0xff00) == 0x7e00) { /* is this an escape code ? */
480 ppp_hdlc(ndo, p - 1, length);
486 case PPP_LCP: /* fall through */
487 @@ -1494,6 +1497,7 @@ handle_ppp(netdissect_options *ndo,
489 ip6_print(ndo, p, length);
491 +#ifndef TCPDUMP_MINI
492 case ETHERTYPE_IPX: /*XXX*/
494 ipx_print(ndo, p, length);
495 @@ -1505,6 +1509,7 @@ handle_ppp(netdissect_options *ndo,
497 mpls_print(ndo, p, length);
501 ND_PRINT("compressed PPP data");
503 @@ -1652,6 +1657,7 @@ ppp_if_print(netdissect_options *ndo,
504 ppp_print(ndo, p, length);
507 +#ifndef TCPDUMP_MINI
509 * PPP I/F printer to use if we know that RFC 1662-style PPP in HDLC-like
510 * framing, or Cisco PPP with HDLC framing as per section 4.3.1 of RFC 1547,
511 @@ -1895,3 +1901,4 @@ printx:
512 #endif /* __bsdi__ */
513 ndo->ndo_ll_hdr_len += hdrlength;
518 @@ -465,12 +465,14 @@ recurse:
520 switch (ether_type) {
522 +#ifndef TCPDUMP_MINI
523 case LINUX_SLL_P_802_3:
525 * Ethernet_802.3 IPX frame.
527 ipx_print(ndo, p, length);
531 case LINUX_SLL_P_802_2:
535 @@ -614,6 +614,7 @@ tcp_print(netdissect_options *ndo,
536 ND_PRINT(" %u", utoval);
539 +#ifndef TCPDUMP_MINI
542 const u_char *snapend_save;
543 @@ -637,7 +638,7 @@ tcp_print(netdissect_options *ndo,
549 case TCPOPT_FASTOPEN:
552 @@ -722,6 +723,7 @@ tcp_print(netdissect_options *ndo,
556 +#ifndef TCPDUMP_MINI
557 if (ndo->ndo_packettype) {
558 switch (ndo->ndo_packettype) {
560 @@ -737,6 +739,7 @@ tcp_print(netdissect_options *ndo,
566 if (IS_SRC_OR_DST_PORT(TELNET_PORT)) {
567 telnet_print(ndo, bp, length);
568 @@ -746,24 +749,31 @@ tcp_print(netdissect_options *ndo,
569 } else if (IS_SRC_OR_DST_PORT(WHOIS_PORT)) {
571 whois_print(ndo, bp, length);
572 - } else if (IS_SRC_OR_DST_PORT(BGP_PORT))
574 +#ifndef TCPDUMP_MINI
575 + else if (IS_SRC_OR_DST_PORT(BGP_PORT))
576 bgp_print(ndo, bp, length);
578 else if (IS_SRC_OR_DST_PORT(PPTP_PORT))
580 +#ifndef TCPDUMP_MINI
581 else if (IS_SRC_OR_DST_PORT(REDIS_PORT))
582 resp_print(ndo, bp, length);
583 else if (IS_SRC_OR_DST_PORT(SSH_PORT))
584 ssh_print(ndo, bp, length);
587 else if (IS_SRC_OR_DST_PORT(NETBIOS_SSN_PORT))
588 nbt_tcp_print(ndo, bp, length);
589 else if (IS_SRC_OR_DST_PORT(SMB_PORT))
590 smb_tcp_print(ndo, bp, length);
592 +#ifndef TCPDUMP_MINI
593 else if (IS_SRC_OR_DST_PORT(BEEP_PORT))
594 beep_print(ndo, bp, length);
595 else if (IS_SRC_OR_DST_PORT(OPENFLOW_PORT_OLD) || IS_SRC_OR_DST_PORT(OPENFLOW_PORT_IANA))
596 openflow_print(ndo, bp, length);
598 else if (IS_SRC_OR_DST_PORT(FTP_PORT)) {
600 ftp_print(ndo, bp, length);
601 @@ -776,12 +786,14 @@ tcp_print(netdissect_options *ndo,
602 } else if (IS_SRC_OR_DST_PORT(NAMESERVER_PORT)) {
603 /* over_tcp: TRUE, is_mdns: FALSE */
604 domain_print(ndo, bp, length, TRUE, FALSE);
605 +#ifndef TCPDUMP_MINI
606 } else if (IS_SRC_OR_DST_PORT(MSDP_PORT)) {
607 msdp_print(ndo, bp, length);
608 } else if (IS_SRC_OR_DST_PORT(RPKI_RTR_PORT)) {
609 rpki_rtr_print(ndo, bp, length);
610 } else if (IS_SRC_OR_DST_PORT(LDP_PORT)) {
611 ldp_print(ndo, bp, length);
613 } else if ((IS_SRC_OR_DST_PORT(NFS_PORT)) &&
614 length >= 4 && ND_TTEST_4(bp)) {
618 @@ -435,10 +435,12 @@ udp_print(netdissect_options *ndo, const
619 vat_print(ndo, cp, length);
622 +#ifndef TCPDUMP_MINI
624 udpipaddr_print(ndo, ip, sport, dport);
625 wb_print(ndo, cp, length);
630 rp = (const struct sunrpc_msg *)cp;
631 @@ -467,10 +469,12 @@ udp_print(netdissect_options *ndo, const
632 snmp_print(ndo, cp, length);
635 +#ifndef TCPDUMP_MINI
637 udpipaddr_print(ndo, ip, sport, dport);
643 udpipaddr_print(ndo, ip, sport, dport);
644 @@ -488,6 +492,7 @@ udp_print(netdissect_options *ndo, const
645 radius_print(ndo, cp, length);
648 +#ifndef TCPDUMP_MINI
650 udpipaddr_print(ndo, ip, sport, dport);
651 vxlan_print(ndo, cp, length);
652 @@ -510,6 +515,7 @@ udp_print(netdissect_options *ndo, const
653 udpipaddr_print(ndo, ip, sport, dport);
654 someip_print(ndo, cp, length);
658 udpipaddr_print(ndo, ip, sport, dport);
659 /* over_tcp: FALSE, is_mdns: FALSE */
660 @@ -596,29 +602,37 @@ udp_print(netdissect_options *ndo, const
661 else if (IS_SRC_OR_DST_PORT(MULTICASTDNS_PORT))
662 /* over_tcp: FALSE, is_mdns: TRUE */
663 domain_print(ndo, cp, length, FALSE, TRUE);
664 +#ifndef TCPDUMP_MINI
665 else if (IS_SRC_OR_DST_PORT(TIMED_PORT))
666 timed_print(ndo, (const u_char *)cp);
668 else if (IS_SRC_OR_DST_PORT(TFTP_PORT))
669 tftp_print(ndo, cp, length);
670 else if (IS_SRC_OR_DST_PORT(BOOTPC_PORT) || IS_SRC_OR_DST_PORT(BOOTPS_PORT))
671 bootp_print(ndo, cp, length);
672 +#ifndef TCPDUMP_MINI
673 else if (IS_SRC_OR_DST_PORT(RIP_PORT))
674 rip_print(ndo, cp, length);
676 else if (IS_SRC_OR_DST_PORT(AODV_PORT))
677 aodv_print(ndo, cp, length,
679 +#ifndef TCPDUMP_MINI
680 else if (IS_SRC_OR_DST_PORT(ISAKMP_PORT))
681 isakmp_print(ndo, cp, length, bp2);
682 else if (IS_SRC_OR_DST_PORT(ISAKMP_PORT_NATT))
683 isakmp_rfc3948_print(ndo, cp, length, bp2, IP_V(ip), fragmented, ttl_hl);
684 else if (IS_SRC_OR_DST_PORT(ISAKMP_PORT_USER1) || IS_SRC_OR_DST_PORT(ISAKMP_PORT_USER2))
685 isakmp_print(ndo, cp, length, bp2);
687 else if (IS_SRC_OR_DST_PORT(SNMP_PORT) || IS_SRC_OR_DST_PORT(SNMPTRAP_PORT))
688 snmp_print(ndo, cp, length);
689 else if (IS_SRC_OR_DST_PORT(NTP_PORT))
690 ntp_print(ndo, cp, length);
691 +#ifndef TCPDUMP_MINI
692 else if (IS_SRC_OR_DST_PORT(KERBEROS_PORT) || IS_SRC_OR_DST_PORT(KERBEROS_SEC_PORT))
693 krb_print(ndo, (const u_char *)cp);
695 else if (IS_SRC_OR_DST_PORT(L2TP_PORT))
696 l2tp_print(ndo, cp, length);
698 @@ -629,6 +643,7 @@ udp_print(netdissect_options *ndo, const
700 else if (dport == VAT_PORT)
701 vat_print(ndo, cp, length);
702 +#ifndef TCPDUMP_MINI
703 else if (IS_SRC_OR_DST_PORT(ZEPHYR_SRV_PORT) || IS_SRC_OR_DST_PORT(ZEPHYR_CLT_PORT))
704 zephyr_print(ndo, cp, length);
706 @@ -641,8 +656,11 @@ udp_print(netdissect_options *ndo, const
707 (const u_char *) ip);
708 else if (IS_SRC_OR_DST_PORT(RIPNG_PORT))
709 ripng_print(ndo, cp, length);
712 else if (IS_SRC_OR_DST_PORT(DHCP6_SERV_PORT) || IS_SRC_OR_DST_PORT(DHCP6_CLI_PORT))
713 dhcp6_print(ndo, cp, length);
714 +#ifndef TCPDUMP_MINI
715 else if (IS_SRC_OR_DST_PORT(AHCP_PORT))
716 ahcp_print(ndo, cp, length);
717 else if (IS_SRC_OR_DST_PORT(BABEL_PORT) || IS_SRC_OR_DST_PORT(BABEL_PORT_OLD))
718 @@ -656,6 +674,7 @@ udp_print(netdissect_options *ndo, const
719 wb_print(ndo, cp, length);
720 else if (IS_SRC_OR_DST_PORT(CISCO_AUTORP_PORT))
721 cisco_autorp_print(ndo, cp, length);
723 else if (IS_SRC_OR_DST_PORT(RADIUS_PORT) ||
724 IS_SRC_OR_DST_PORT(RADIUS_NEW_PORT) ||
725 IS_SRC_OR_DST_PORT(RADIUS_ACCOUNTING_PORT) ||
726 @@ -663,15 +682,18 @@ udp_print(netdissect_options *ndo, const
727 IS_SRC_OR_DST_PORT(RADIUS_CISCO_COA_PORT) ||
728 IS_SRC_OR_DST_PORT(RADIUS_COA_PORT) )
729 radius_print(ndo, cp, length);
730 +#ifndef TCPDUMP_MINI
731 else if (dport == HSRP_PORT)
732 hsrp_print(ndo, cp, length);
733 else if (IS_SRC_OR_DST_PORT(LWRES_PORT))
734 lwres_print(ndo, cp, length);
735 else if (IS_SRC_OR_DST_PORT(LDP_PORT))
736 ldp_print(ndo, cp, length);
738 else if (IS_SRC_OR_DST_PORT(OLSR_PORT))
739 olsr_print(ndo, cp, length,
740 (IP_V(ip) == 6) ? 1 : 0);
741 +#ifndef TCPDUMP_MINI
742 else if (IS_SRC_OR_DST_PORT(MPLS_LSP_PING_PORT))
743 lspping_print(ndo, cp, length);
744 else if (sport == BCM_LI_PORT)
745 @@ -693,10 +715,12 @@ udp_print(netdissect_options *ndo, const
746 lwapp_control_print(ndo, cp, length, 0);
747 else if (IS_SRC_OR_DST_PORT(LWAPP_DATA_PORT))
748 lwapp_data_print(ndo, cp, length);
750 else if (IS_SRC_OR_DST_PORT(SIP_PORT))
751 sip_print(ndo, cp, length);
752 else if (IS_SRC_OR_DST_PORT(SYSLOG_PORT))
753 syslog_print(ndo, cp, length);
754 +#ifndef TCPDUMP_MINI
755 else if (IS_SRC_OR_DST_PORT(OTV_PORT))
756 otv_print(ndo, cp, length);
757 else if (IS_SRC_OR_DST_PORT(VXLAN_PORT))
758 @@ -722,6 +746,7 @@ udp_print(netdissect_options *ndo, const
759 ptp_print(ndo, cp, length);
760 } else if (IS_SRC_OR_DST_PORT(SOMEIP_PORT))
761 someip_print(ndo, cp, length);
764 if (ulen > length && !fragmented)
765 ND_PRINT("UDP, bad length %u > %u",
768 @@ -48,6 +48,7 @@ struct printer {
771 static const struct printer printers[] = {
772 +#ifndef TCPDUMP_MINI
773 #ifdef DLT_APPLE_IP_OVER_IEEE1394
774 { ap1394_if_print, DLT_APPLE_IP_OVER_IEEE1394 },
776 @@ -86,7 +87,9 @@ static const struct printer printers[] =
778 { enc_if_print, DLT_ENC },
781 { ether_if_print, DLT_EN10MB },
782 +#ifndef TCPDUMP_MINI
783 { fddi_if_print, DLT_FDDI },
785 { fr_if_print, DLT_FR },
786 @@ -94,6 +97,7 @@ static const struct printer printers[] =
788 { fr_if_print, DLT_FRELAY },
791 #ifdef DLT_IEEE802_11
792 { ieee802_11_if_print, DLT_IEEE802_11},
794 @@ -103,6 +107,7 @@ static const struct printer printers[] =
795 #ifdef DLT_IEEE802_11_RADIO
796 { ieee802_11_radio_if_print, DLT_IEEE802_11_RADIO },
798 +#ifndef TCPDUMP_MINI
799 #ifdef DLT_IEEE802_15_4
800 { ieee802_15_4_if_print, DLT_IEEE802_15_4 },
802 @@ -115,9 +120,11 @@ static const struct printer printers[] =
803 #ifdef DLT_IP_OVER_FC
804 { ipfc_if_print, DLT_IP_OVER_FC },
808 { ipnet_if_print, DLT_IPNET },
810 +#ifndef TCPDUMP_MINI
812 { ipoib_if_print, DLT_IPOIB },
814 @@ -172,19 +179,23 @@ static const struct printer printers[] =
816 { mfr_if_print, DLT_MFR },
819 #ifdef DLT_NETANALYZER
820 { netanalyzer_if_print, DLT_NETANALYZER },
822 #ifdef DLT_NETANALYZER_TRANSPARENT
823 { netanalyzer_transparent_if_print, DLT_NETANALYZER_TRANSPARENT },
825 +#ifndef TCPDUMP_MINI
827 { nflog_if_print, DLT_NFLOG},
830 { null_if_print, DLT_NULL },
832 { null_if_print, DLT_LOOP },
834 +#ifndef TCPDUMP_MINI
836 { pflog_if_print, DLT_PFLOG },
838 @@ -200,6 +211,7 @@ static const struct printer printers[] =
839 #ifdef DLT_PPP_SERIAL
840 { ppp_hdlc_if_print, DLT_PPP_SERIAL },
843 { ppp_if_print, DLT_PPP },
845 { ppp_if_print, DLT_PPP_PPPD },
846 @@ -211,6 +223,7 @@ static const struct printer printers[] =
847 { prism_if_print, DLT_PRISM_HEADER },
849 { raw_if_print, DLT_RAW },
850 +#ifndef TCPDUMP_MINI
852 { raw_if_print, DLT_IPV4 },
854 @@ -243,6 +256,7 @@ static const struct printer printers[] =
856 { vsock_if_print, DLT_VSOCK },