3 @@ -71,6 +71,22 @@ DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@
5 $(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c
9 +CSRC = addrtoname.c af.c checksum.c cpack.c gmpls.c oui.c gmt2local.c ipproto.c \
10 + nlpid.c l2vpn.c machdep.c parsenfsfh.c in_cksum.c \
11 + print-802_11.c print-aodv.c print-arp.c print-ascii.c \
12 + print-bgp.c print-bootp.c print-cdp.c print-domain.c print-eap.c print-ether.c \
13 + print-gre.c print-icmp.c print-igmp.c print-ip.c \
14 + print-l2tp.c print-lldp.c print-llc.c \
15 + print-nfs.c print-ntp.c print-null.c print-olsr.c print-ospf.c \
16 + print-ppp.c print-pppoe.c print-pptp.c print-radius.c print-raw.c print-rsvp.c \
17 + print-sctp.c print-sip.c print-sll.c print-snmp.c print-stp.c print-sunrpc.c \
18 + print-syslog.c print-tcp.c print-telnet.c print-tftp.c print-udp.c \
19 + setsignal.c tcpdump.c util.c signature.c print-ipnet.c print-forces.c
23 CSRC = addrtoname.c af.c checksum.c cpack.c gmpls.c oui.c gmt2local.c ipproto.c \
24 nlpid.c l2vpn.c machdep.c parsenfsfh.c in_cksum.c \
25 print-802_11.c print-802_15_4.c print-ap1394.c print-ah.c \
26 @@ -103,6 +119,8 @@ LIBNETDISSECT_SRC=print-isakmp.c
27 LIBNETDISSECT_OBJ=$(LIBNETDISSECT_SRC:.c=.o)
28 LIBNETDISSECT=libnetdissect.a
35 @@ -286,10 +304,12 @@ $(PROG): $(OBJ) @V_PCAPDEP@
37 $(CC) $(FULL_CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
40 $(LIBNETDISSECT): $(LIBNETDISSECT_OBJ)
42 $(AR) cr $@ $(LIBNETDISSECT_OBJ)
46 datalinks.o: $(srcdir)/missing/datalinks.c
47 $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/datalinks.c
50 @@ -556,10 +556,10 @@ linkaddr_string(const u_char *ep, const
52 if (type == LINKADDR_ETHER && len == ETHER_ADDR_LEN)
53 return (etheraddr_string(ep));
56 if (type == LINKADDR_FRELAY)
57 return (q922_string(ep));
60 tp = lookup_bytestring(ep, len);
63 @@ -1159,6 +1159,7 @@ init_addrtoname(u_int32_t localnet, u_in
69 dnaddr_string(u_short dnaddr)
71 @@ -1178,6 +1179,7 @@ dnaddr_string(u_short dnaddr)
77 /* Return a zero'ed hnamemem struct and cuts down on calloc() overhead */
81 @@ -342,6 +342,7 @@ ethertype_print(netdissect_options *ndo,
82 arp_print(ndo, p, length, caplen);
87 decnet_print(/*ndo,*/p, length, caplen);
89 @@ -360,10 +361,13 @@ ethertype_print(netdissect_options *ndo,
90 ND_PRINT((ndo, "(NOV-ETHII) "));
91 ipx_print(/*ndo,*/p, length);
97 isoclns_print(/*ndo,*/p+1, length-1, length-1);
101 case ETHERTYPE_PPPOED:
102 case ETHERTYPE_PPPOES:
103 @@ -376,9 +380,11 @@ ethertype_print(netdissect_options *ndo,
104 eap_print(ndo, p, length);
107 +#ifndef TCPDUMP_MINI
109 rrcp_print(ndo, p - 14 , length + 14);
115 @@ -387,6 +393,7 @@ ethertype_print(netdissect_options *ndo,
119 +#ifndef TCPDUMP_MINI
121 mpcp_print(/*ndo,*/p, length);
123 @@ -399,7 +406,7 @@ ethertype_print(netdissect_options *ndo,
124 case ETHERTYPE_CFM_OLD:
125 cfm_print(/*ndo,*/p, length);
130 lldp_print(/*ndo,*/p, length);
132 @@ -407,6 +414,7 @@ ethertype_print(netdissect_options *ndo,
133 case ETHERTYPE_LOOPBACK:
136 +#ifndef TCPDUMP_MINI
138 case ETHERTYPE_MPLS_MULTI:
139 mpls_print(/*ndo,*/p, length);
140 @@ -428,6 +436,7 @@ ethertype_print(netdissect_options *ndo,
141 case ETHERTYPE_CALM_FAST:
142 calm_fast_print(ndo, p-14, p, length);
150 @@ -213,6 +213,7 @@ gre_print_0(const u_char *bp, u_int leng
151 ip6_print(gndo, bp, len);
154 +#ifndef TCPDUMP_MINI
158 @@ -228,6 +229,7 @@ gre_print_0(const u_char *bp, u_int leng
160 ether_print(gndo, bp, len, len, NULL, NULL);
164 printf("gre-proto-0x%x", prot);
168 @@ -309,6 +309,7 @@ igmp_print(register const u_char *bp, re
170 (void)printf("igmp leave %s", ipaddr_string(&bp[4]));
172 +#ifndef TCPDUMP_MINI
174 (void)printf("igmp dvmrp");
176 @@ -320,6 +321,7 @@ igmp_print(register const u_char *bp, re
177 (void)printf("igmp pimv1");
178 pimv1_print(bp, len);
182 print_mresp(bp, len);
186 @@ -328,6 +328,7 @@ ip_print_demux(netdissect_options *ndo,
190 +#ifndef TCPDUMP_MINI
192 ipds->nh = *ipds->cp;
193 ipds->advance = ah_print(ipds->cp);
194 @@ -362,15 +363,15 @@ again:
195 ipds->nh = enh & 0xff;
201 sctp_print(ipds->cp, (const u_char *)ipds->ip, ipds->len);
204 +#ifndef TCPDUMP_MINI
206 dccp_print(ipds->cp, (const u_char *)ipds->ip, ipds->len);
211 /* pass on the MF bit plus the offset to detect fragments */
212 tcp_print(ipds->cp, ipds->len, (const u_char *)ipds->ip,
213 @@ -388,7 +389,7 @@ again:
214 icmp_print(ipds->cp, ipds->len, (const u_char *)ipds->ip,
215 ipds->off & (IP_MF|IP_OFFMASK));
218 +#ifndef TCPDUMP_MINI
221 * XXX - the current IANA protocol number assignments
222 @@ -409,15 +410,15 @@ again:
224 eigrp_print(ipds->cp, ipds->len);
229 ND_PRINT((ndo, " nd %d", ipds->len));
232 +#ifndef TCPDUMP_MINI
234 egp_print(ipds->cp, ipds->len);
239 ospf_print(ipds->cp, ipds->len, (const u_char *)ipds->ip);
241 @@ -451,10 +452,10 @@ again:
242 gre_print(ipds->cp, ipds->len);
245 +#ifndef TCPDUMP_MINI
247 mobile_print(ipds->cp, ipds->len);
251 vec[0].ptr = ipds->cp;
252 vec[0].len = ipds->len;
253 @@ -480,7 +481,7 @@ again:
255 pgm_print(ipds->cp, ipds->len, (const u_char *)ipds->ip);
260 if (ndo->ndo_nflag==0 && (proto = getprotobynumber(ipds->nh)) != NULL)
261 ND_PRINT((ndo, " %s", proto->p_name));
264 @@ -192,9 +192,11 @@ ip6_print(netdissect_options *ndo, const
266 sctp_print(cp, (const u_char *)ip6, len);
268 +#ifndef TCPDUMP_MINI
270 dccp_print(cp, (const u_char *)ip6, len);
274 tcp_print(cp, len, (const u_char *)ip6, fragmented);
276 @@ -204,6 +206,7 @@ ip6_print(netdissect_options *ndo, const
278 icmp6_print(ndo, cp, len, (const u_char *)ip6, fragmented);
280 +#ifndef TCPDUMP_MINI
282 advance = ah_print(cp);
284 @@ -228,7 +231,7 @@ ip6_print(netdissect_options *ndo, const
285 pim_print(cp, len, nextproto6_cksum(ip6, cp, len,
291 ospf6_print(cp, len);
293 @@ -240,11 +243,11 @@ ip6_print(netdissect_options *ndo, const
295 ip_print(ndo, cp, len);
298 +#ifndef TCPDUMP_MINI
300 pgm_print(cp, len, (const u_char *)ip6);
309 @@ -196,7 +196,7 @@ llc_print(const u_char *p, u_int length,
310 control = EXTRACT_LE_16BITS(p + 2);
314 +#ifndef TCPDUMP_MINI
315 if (ssap_field == LLCSAP_GLOBAL && dsap_field == LLCSAP_GLOBAL) {
317 * This is an Ethernet_802.3 IPX frame; it has an
318 @@ -219,6 +219,7 @@ llc_print(const u_char *p, u_int length,
319 ipx_print(p, length);
324 dsap = dsap_field & ~LLC_IG;
325 ssap = ssap_field & ~LLC_GSAP;
326 @@ -251,6 +252,7 @@ llc_print(const u_char *p, u_int length,
330 +#ifndef TCPDUMP_MINI
331 if (ssap == LLCSAP_IPX && dsap == LLCSAP_IPX &&
334 @@ -266,6 +268,7 @@ llc_print(const u_char *p, u_int length,
335 ipx_print(p+3, length-3);
340 #ifdef TCPDUMP_DO_SMB
341 if (ssap == LLCSAP_NETBEUI && dsap == LLCSAP_NETBEUI
342 @@ -297,11 +300,13 @@ llc_print(const u_char *p, u_int length,
346 +#ifndef TCPDUMP_MINI
347 if (ssap == LLCSAP_ISONS && dsap == LLCSAP_ISONS
348 && control == LLC_UI) {
349 isoclns_print(p + 3, length - 3, caplen - 3);
354 if (ssap == LLCSAP_SNAP && dsap == LLCSAP_SNAP
355 && control == LLC_UI) {
356 @@ -444,6 +449,7 @@ snap_print(const u_char *p, u_int length
358 cdp_print(p, length, caplen);
360 +#ifndef TCPDUMP_MINI
362 dtp_print(p, length);
364 @@ -453,6 +459,7 @@ snap_print(const u_char *p, u_int length
366 vtp_print(p, length);
370 case PID_CISCO_VLANBRIDGE:
371 stp_print(p, length);
372 @@ -484,6 +491,7 @@ snap_print(const u_char *p, u_int length
373 ether_print(gndo, p, length, caplen, NULL, NULL);
376 +#ifndef TCPDUMP_MINI
377 case PID_RFC2684_802_5_FCS:
378 case PID_RFC2684_802_5_NOFCS:
380 @@ -525,6 +533,7 @@ snap_print(const u_char *p, u_int length
382 fddi_print(p, length, caplen);
386 case PID_RFC2684_BPDU:
387 stp_print(p, length);
390 @@ -128,7 +128,7 @@ null_if_print(const struct pcap_pkthdr *
391 ip6_print(gndo, p, length);
395 +#ifndef TCPDUMP_MINI
397 isoclns_print(p, length, caplen);
399 @@ -140,7 +140,7 @@ null_if_print(const struct pcap_pkthdr *
401 ipx_print(p, length);
406 /* unknown AF_ value */
410 @@ -1262,7 +1262,7 @@ trunc:
415 +#ifndef TCPDUMP_MINI
417 ppp_hdlc(const u_char *p, int length)
419 @@ -1327,17 +1327,19 @@ cleanup:
428 handle_ppp(u_int proto, const u_char *p, int length)
430 +#ifndef TCPDUMP_MINI
431 if ((proto & 0xff00) == 0x7e00) {/* is this an escape code ? */
432 ppp_hdlc(p-1, length);
438 case PPP_LCP: /* fall through */
440 @@ -1371,6 +1373,7 @@ handle_ppp(u_int proto, const u_char *p,
441 ip6_print(gndo, p, length);
444 +#ifndef TCPDUMP_MINI
445 case ETHERTYPE_IPX: /*XXX*/
447 ipx_print(p, length);
448 @@ -1382,6 +1385,7 @@ handle_ppp(u_int proto, const u_char *p,
450 mpls_print(p, length);
454 printf("compressed PPP data");
456 @@ -1520,6 +1524,7 @@ ppp_if_print(const struct pcap_pkthdr *h
460 +#ifndef TCPDUMP_MINI
462 * PPP I/F printer to use if we know that RFC 1662-style PPP in HDLC-like
463 * framing, or Cisco PPP with HDLC framing as per section 4.3.1 of RFC 1547,
464 @@ -1747,7 +1752,7 @@ printx:
465 #endif /* __bsdi__ */
475 @@ -573,14 +573,14 @@ tcp_print(register const u_char *bp, reg
477 (void)printf(" %u", utoval);
480 +#ifndef TCPDUMP_MINI
484 if (!mptcp_print(cp-2, len, flags))
489 case TCPOPT_EXPERIMENT2:
492 @@ -659,8 +659,8 @@ tcp_print(register const u_char *bp, reg
493 if ((flags & TH_RST) && vflag) {
494 print_tcp_rst_data(bp, length);
499 +#ifndef TCPDUMP_MINI
501 switch (packettype) {
503 @@ -669,7 +669,7 @@ tcp_print(register const u_char *bp, reg
509 if (sport == TELNET_PORT || dport == TELNET_PORT) {
511 telnet_print(bp, length);
512 @@ -683,10 +683,12 @@ tcp_print(register const u_char *bp, reg
513 else if (sport == SMB_PORT || dport == SMB_PORT)
514 smb_tcp_print(bp, length);
516 +#ifndef TCPDUMP_MINI
517 else if (sport == BEEP_PORT || dport == BEEP_PORT)
518 beep_print(bp, length);
519 else if (sport == OPENFLOW_PORT || dport == OPENFLOW_PORT)
520 openflow_print(bp, length);
522 else if (length > 2 &&
523 (sport == NAMESERVER_PORT || dport == NAMESERVER_PORT ||
524 sport == MULTICASTDNS_PORT || dport == MULTICASTDNS_PORT)) {
525 @@ -695,6 +697,7 @@ tcp_print(register const u_char *bp, reg
526 * XXX packet could be unaligned, it can go strange
528 ns_print(bp + 2, length - 2, 0);
529 +#ifndef TCPDUMP_MINI
530 } else if (sport == MSDP_PORT || dport == MSDP_PORT) {
531 msdp_print(bp, length);
532 } else if (sport == RPKI_RTR_PORT || dport == RPKI_RTR_PORT) {
533 @@ -702,6 +705,7 @@ tcp_print(register const u_char *bp, reg
535 else if (length > 0 && (sport == LDP_PORT || dport == LDP_PORT)) {
536 ldp_print(bp, length);
539 else if ((sport == NFS_PORT || dport == NFS_PORT) &&
540 length >= 4 && TTEST2(*bp, 4)) {
543 @@ -418,11 +418,12 @@ udp_print(register const u_char *bp, u_i
544 vat_print((void *)(up + 1), up);
547 +#ifndef TCPDUMP_MINI
549 udpipaddr_print(ip, sport, dport);
550 wb_print((void *)(up + 1), length);
555 rp = (struct sunrpc_msg *)(up + 1);
556 direction = (enum sunrpc_msg_type)EXTRACT_32BITS(&rp->rm_direction);
557 @@ -450,11 +451,12 @@ udp_print(register const u_char *bp, u_i
558 snmp_print((const u_char *)(up + 1), length);
561 +#ifndef TCPDUMP_MINI
563 udpipaddr_print(ip, sport, dport);
564 cnfp_print(cp, (const u_char *)ip);
569 udpipaddr_print(ip, sport, dport);
570 tftp_print(cp, length);
571 @@ -475,6 +477,7 @@ udp_print(register const u_char *bp, u_i
572 radius_print(cp, length);
575 +#ifndef TCPDUMP_MINI
577 udpipaddr_print(ip, sport, dport);
578 vxlan_print((const u_char *)(up + 1), length);
579 @@ -489,6 +492,7 @@ udp_print(register const u_char *bp, u_i
580 udpipaddr_print(ip, sport, dport);
581 lmp_print(cp, length);
587 @@ -517,6 +521,7 @@ udp_print(register const u_char *bp, u_i
591 +#ifndef TCPDUMP_MINI
592 if (TTEST(((struct LAP *)cp)->type) &&
593 ((struct LAP *)cp)->type == lapDDP &&
594 (atalk_port(sport) || atalk_port(dport))) {
595 @@ -525,6 +530,7 @@ udp_print(register const u_char *bp, u_i
596 llap_print(cp, length);
601 udpipaddr_print(ip, sport, dport);
603 @@ -575,14 +581,18 @@ udp_print(register const u_char *bp, u_i
604 ns_print((const u_char *)(up + 1), length, 0);
605 else if (ISPORT(MULTICASTDNS_PORT))
606 ns_print((const u_char *)(up + 1), length, 1);
607 +#ifndef TCPDUMP_MINI
608 else if (ISPORT(TIMED_PORT))
609 timed_print((const u_char *)(up + 1));
611 else if (ISPORT(TFTP_PORT))
612 tftp_print((const u_char *)(up + 1), length);
613 else if (ISPORT(IPPORT_BOOTPC) || ISPORT(IPPORT_BOOTPS))
614 bootp_print((const u_char *)(up + 1), length);
615 +#ifndef TCPDUMP_MINI
616 else if (ISPORT(RIP_PORT))
617 rip_print((const u_char *)(up + 1), length);
619 else if (ISPORT(AODV_PORT))
620 aodv_print((const u_char *)(up + 1), length,
622 @@ -590,6 +600,7 @@ udp_print(register const u_char *bp, u_i
626 +#ifndef TCPDUMP_MINI
627 else if (ISPORT(ISAKMP_PORT))
628 isakmp_print(gndo, (const u_char *)(up + 1), length, bp2);
629 else if (ISPORT(ISAKMP_PORT_NATT))
630 @@ -598,12 +609,15 @@ udp_print(register const u_char *bp, u_i
631 else if (ISPORT(ISAKMP_PORT_USER1) || ISPORT(ISAKMP_PORT_USER2))
632 isakmp_print(gndo, (const u_char *)(up + 1), length, bp2);
635 else if (ISPORT(SNMP_PORT) || ISPORT(SNMPTRAP_PORT))
636 snmp_print((const u_char *)(up + 1), length);
637 else if (ISPORT(NTP_PORT))
638 ntp_print((const u_char *)(up + 1), length);
639 +#ifndef TCPDUMP_MINI
640 else if (ISPORT(KERBEROS_PORT) || ISPORT(KERBEROS_SEC_PORT))
641 krb_print((const void *)(up + 1));
643 else if (ISPORT(L2TP_PORT))
644 l2tp_print((const u_char *)(up + 1), length);
645 #ifdef TCPDUMP_DO_SMB
646 @@ -614,6 +628,7 @@ udp_print(register const u_char *bp, u_i
648 else if (dport == VAT_PORT)
649 vat_print((const void *)(up + 1), up);
650 +#ifndef TCPDUMP_MINI
651 else if (ISPORT(ZEPHYR_SRV_PORT) || ISPORT(ZEPHYR_CLT_PORT))
652 zephyr_print((const void *)(up + 1), length);
654 @@ -624,6 +639,7 @@ udp_print(register const u_char *bp, u_i
655 (dport >= RX_PORT_LOW && dport <= RX_PORT_HIGH))
656 rx_print((const void *)(up + 1), length, sport, dport,
660 else if (ISPORT(RIPNG_PORT))
661 ripng_print((const u_char *)(up + 1), length);
662 @@ -635,21 +651,25 @@ udp_print(register const u_char *bp, u_i
664 * Kludge in test for whiteboard packets.
666 +#ifndef TCPDUMP_MINI
667 else if (dport == WB_PORT)
668 wb_print((const void *)(up + 1), length);
669 else if (ISPORT(CISCO_AUTORP_PORT))
670 cisco_autorp_print((const void *)(up + 1), length);
672 else if (ISPORT(RADIUS_PORT) ||
673 ISPORT(RADIUS_NEW_PORT) ||
674 ISPORT(RADIUS_ACCOUNTING_PORT) ||
675 ISPORT(RADIUS_NEW_ACCOUNTING_PORT) )
676 radius_print((const u_char *)(up+1), length);
677 +#ifndef TCPDUMP_MINI
678 else if (dport == HSRP_PORT)
679 hsrp_print((const u_char *)(up + 1), length);
680 else if (ISPORT(LWRES_PORT))
681 lwres_print((const u_char *)(up + 1), length);
682 else if (ISPORT(LDP_PORT))
683 ldp_print((const u_char *)(up + 1), length);
685 else if (ISPORT(OLSR_PORT))
686 olsr_print((const u_char *)(up + 1), length,
688 @@ -657,6 +677,7 @@ udp_print(register const u_char *bp, u_i
692 +#ifndef TCPDUMP_MINI
693 else if (ISPORT(MPLS_LSP_PING_PORT))
694 lspping_print((const u_char *)(up + 1), length);
695 else if (dport == BFD_CONTROL_PORT ||
696 @@ -674,14 +695,17 @@ udp_print(register const u_char *bp, u_i
697 lwapp_control_print((const u_char *)(up + 1), length, 0);
698 else if (ISPORT(LWAPP_DATA_PORT))
699 lwapp_data_print((const u_char *)(up + 1), length);
701 else if (ISPORT(SIP_PORT))
702 sip_print((const u_char *)(up + 1), length);
703 else if (ISPORT(SYSLOG_PORT))
704 syslog_print((const u_char *)(up + 1), length);
705 +#ifndef TCPDUMP_MINI
706 else if (ISPORT(OTV_PORT))
707 otv_print((const u_char *)(up + 1), length);
708 else if (ISPORT(VXLAN_PORT))
709 vxlan_print((const u_char *)(up + 1), length);
712 (void)printf("UDP, length %u",
713 (u_int32_t)(ulen - sizeof(*up)));
716 @@ -161,6 +161,7 @@ struct ndo_printer {
719 static struct printer printers[] = {
720 +#ifndef TCPDUMP_MINI
721 { arcnet_if_print, DLT_ARCNET },
722 #ifdef DLT_ARCNET_LINUX
723 { arcnet_linux_if_print, DLT_ARCNET_LINUX },
724 @@ -179,19 +180,23 @@ static struct printer printers[] = {
725 #ifdef DLT_SLIP_BSDOS
726 { sl_bsdos_if_print, DLT_SLIP_BSDOS },
729 { ppp_if_print, DLT_PPP },
730 #ifdef DLT_PPP_WITHDIRECTION
731 { ppp_if_print, DLT_PPP_WITHDIRECTION },
733 +#ifndef TCPDUMP_MINI
735 { ppp_bsdos_if_print, DLT_PPP_BSDOS },
737 { fddi_if_print, DLT_FDDI },
739 { null_if_print, DLT_NULL },
741 { null_if_print, DLT_LOOP },
743 { raw_if_print, DLT_RAW },
744 +#ifndef TCPDUMP_MINI
745 { atm_if_print, DLT_ATM_RFC1483 },
747 { chdlc_if_print, DLT_C_HDLC },
748 @@ -202,6 +207,7 @@ static struct printer printers[] = {
749 #ifdef DLT_PPP_SERIAL
750 { ppp_hdlc_if_print, DLT_PPP_SERIAL },
754 { pppoe_if_print, DLT_PPP_ETHER },
756 @@ -211,6 +217,7 @@ static struct printer printers[] = {
757 #ifdef DLT_IEEE802_11
758 { ieee802_11_if_print, DLT_IEEE802_11},
760 +#ifndef TCPDUMP_MINI
762 { ltalk_if_print, DLT_LTALK },
764 @@ -229,12 +236,14 @@ static struct printer printers[] = {
765 #ifdef DLT_IP_OVER_FC
766 { ipfc_if_print, DLT_IP_OVER_FC },
769 #ifdef DLT_PRISM_HEADER
770 { prism_if_print, DLT_PRISM_HEADER },
772 #ifdef DLT_IEEE802_11_RADIO
773 { ieee802_11_radio_if_print, DLT_IEEE802_11_RADIO },
775 +#ifndef TCPDUMP_MINI
777 { enc_if_print, DLT_ENC },
779 @@ -244,9 +253,11 @@ static struct printer printers[] = {
780 #ifdef DLT_APPLE_IP_OVER_IEEE1394
781 { ap1394_if_print, DLT_APPLE_IP_OVER_IEEE1394 },
784 #ifdef DLT_IEEE802_11_RADIO_AVS
785 { ieee802_11_radio_avs_if_print, DLT_IEEE802_11_RADIO_AVS },
787 +#ifndef TCPDUMP_MINI
788 #ifdef DLT_JUNIPER_ATM1
789 { juniper_atm1_print, DLT_JUNIPER_ATM1 },
791 @@ -312,6 +323,7 @@ static struct printer printers[] = {
793 { raw_if_print, DLT_IPV6 },
799 @@ -320,6 +332,7 @@ static struct ndo_printer ndo_printers[]
801 { ipnet_if_print, DLT_IPNET },
803 +#ifndef TCPDUMP_MINI
804 #ifdef DLT_IEEE802_15_4
805 { ieee802_15_4_if_print, DLT_IEEE802_15_4 },
807 @@ -329,15 +342,18 @@ static struct ndo_printer ndo_printers[]
809 { ppi_if_print, DLT_PPI },
812 #ifdef DLT_NETANALYZER
813 { netanalyzer_if_print, DLT_NETANALYZER },
815 #ifdef DLT_NETANALYZER_TRANSPARENT
816 { netanalyzer_transparent_if_print, DLT_NETANALYZER_TRANSPARENT },
818 +#ifndef TCPDUMP_MINI
820 { nflog_if_print, DLT_NFLOG},
828 @@ -154,14 +154,14 @@ recurse:
829 * Yes - what type is it?
831 switch (ether_type) {
833 +#ifndef TCPDUMP_MINI
834 case LINUX_SLL_P_802_3:
836 * Ethernet_802.3 IPX frame.
838 ipx_print(p, length);
842 case LINUX_SLL_P_802_2: