3 @@ -70,6 +70,87 @@ DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@
5 $(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c
16 + ascii_strcasecmp.c \
88 CSRC = setsignal.c tcpdump.c util.c
91 @@ -236,12 +317,16 @@ LIBNETDISSECT_SRC=\
102 LIBNETDISSECT_OBJ=$(LIBNETDISSECT_SRC:.c=.o) ${LOCALSRC:.c=.o} ${LIBOBJS}
103 LIBNETDISSECT=libnetdissect.a
107 SRC = $(CSRC) $(GENSRC) $(LOCALSRC) $(LIBNETDISSECT_SRC)
108 @@ -367,10 +452,12 @@ $(PROG): $(OBJ) @V_PCAPDEP@
110 $(CC) $(FULL_CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
113 $(LIBNETDISSECT): $(LIBNETDISSECT_OBJ)
115 $(AR) cr $@ $(LIBNETDISSECT_OBJ)
119 datalinks.o: $(srcdir)/missing/datalinks.c
120 $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/datalinks.c
123 @@ -564,8 +564,10 @@ linkaddr_string(netdissect_options *ndo,
124 if (type == LINKADDR_ETHER && len == ETHER_ADDR_LEN)
125 return (etheraddr_string(ndo, ep));
127 +#ifndef TCPDUMP_MINI
128 if (type == LINKADDR_FRELAY)
129 return (q922_string(ndo, ep, len));
132 tp = lookup_bytestring(ndo, ep, len);
134 @@ -1200,6 +1202,7 @@ init_addrtoname(netdissect_options *ndo,
135 init_ipxsaparray(ndo);
138 +#ifndef TCPDUMP_MINI
140 dnaddr_string(netdissect_options *ndo, u_short dnaddr)
142 @@ -1219,6 +1222,7 @@ dnaddr_string(netdissect_options *ndo, u
148 /* Return a zero'ed hnamemem struct and cuts down on calloc() overhead */
152 @@ -48,6 +48,7 @@ static const struct printer printers[] =
154 { ipnet_if_print, DLT_IPNET },
156 +#ifndef TCPDUMP_MINI
157 #ifdef DLT_IEEE802_15_4
158 { ieee802_15_4_if_print, DLT_IEEE802_15_4 },
160 @@ -57,12 +58,14 @@ static const struct printer printers[] =
162 { ppi_if_print, DLT_PPI },
165 #ifdef DLT_NETANALYZER
166 { netanalyzer_if_print, DLT_NETANALYZER },
168 #ifdef DLT_NETANALYZER_TRANSPARENT
169 { netanalyzer_transparent_if_print, DLT_NETANALYZER_TRANSPARENT },
171 +#ifndef TCPDUMP_MINI
172 #if defined(DLT_NFLOG) && defined(HAVE_PCAP_NFLOG_H)
173 { nflog_if_print, DLT_NFLOG},
175 @@ -75,10 +78,12 @@ static const struct printer printers[] =
176 #ifdef DLT_IP_OVER_FC
177 { ipfc_if_print, DLT_IP_OVER_FC },
180 { null_if_print, DLT_NULL },
182 { null_if_print, DLT_LOOP },
184 +#ifndef TCPDUMP_MINI
185 #ifdef DLT_APPLE_IP_OVER_IEEE1394
186 { ap1394_if_print, DLT_APPLE_IP_OVER_IEEE1394 },
188 @@ -92,7 +97,9 @@ static const struct printer printers[] =
189 #ifdef DLT_ARCNET_LINUX
190 { arcnet_linux_if_print, DLT_ARCNET_LINUX },
193 { raw_if_print, DLT_RAW },
194 +#ifndef TCPDUMP_MINI
196 { raw_if_print, DLT_IPV4 },
198 @@ -116,17 +123,21 @@ static const struct printer printers[] =
200 { chdlc_if_print, DLT_HDLC },
204 { pppoe_if_print, DLT_PPP_ETHER },
206 +#ifndef TCPDUMP_MINI
207 #if defined(DLT_PFLOG) && defined(HAVE_NET_IF_PFLOG_H)
208 { pflog_if_print, DLT_PFLOG },
210 { token_if_print, DLT_IEEE802 },
211 { fddi_if_print, DLT_FDDI },
214 { sll_if_print, DLT_LINUX_SLL },
216 +#ifndef TCPDUMP_MINI
218 { fr_if_print, DLT_FR },
220 @@ -198,6 +209,7 @@ static const struct printer printers[] =
222 { pktap_if_print, DLT_PKTAP },
225 #ifdef DLT_IEEE802_11_RADIO
226 { ieee802_11_radio_if_print, DLT_IEEE802_11_RADIO },
228 @@ -214,12 +226,14 @@ static const struct printer printers[] =
229 #ifdef DLT_PPP_WITHDIRECTION
230 { ppp_if_print, DLT_PPP_WITHDIRECTION },
232 +#ifndef TCPDUMP_MINI
234 { ppp_bsdos_if_print, DLT_PPP_BSDOS },
236 #ifdef DLT_PPP_SERIAL
237 { ppp_hdlc_if_print, DLT_PPP_SERIAL },
245 @@ -332,6 +332,7 @@ ethertype_print(netdissect_options *ndo,
246 arp_print(ndo, p, length, caplen);
249 +#ifndef TCPDUMP_MINI
251 decnet_print(ndo, p, length, caplen);
253 @@ -354,6 +355,7 @@ ethertype_print(netdissect_options *ndo,
255 isoclns_print(ndo, p + 1, length - 1, length - 1);
259 case ETHERTYPE_PPPOED:
260 case ETHERTYPE_PPPOES:
261 @@ -366,9 +368,11 @@ ethertype_print(netdissect_options *ndo,
262 eap_print(ndo, p, length);
265 +#ifndef TCPDUMP_MINI
267 rrcp_print(ndo, p - 14 , length + 14);
273 @@ -377,6 +381,7 @@ ethertype_print(netdissect_options *ndo,
277 +#ifndef TCPDUMP_MINI
279 mpcp_print(ndo, p, length);
281 @@ -389,6 +394,7 @@ ethertype_print(netdissect_options *ndo,
282 case ETHERTYPE_CFM_OLD:
283 cfm_print(ndo, p, length);
288 lldp_print(ndo, p, length);
289 @@ -398,6 +404,7 @@ ethertype_print(netdissect_options *ndo,
290 loopback_print(ndo, p, length);
293 +#ifndef TCPDUMP_MINI
295 case ETHERTYPE_MPLS_MULTI:
296 mpls_print(ndo, p, length);
297 @@ -427,6 +434,7 @@ ethertype_print(netdissect_options *ndo,
298 case ETHERTYPE_MEDSA:
299 medsa_print(ndo, p, length, caplen);
307 @@ -203,6 +203,7 @@ gre_print_0(netdissect_options *ndo, con
309 ip6_print(ndo, bp, len);
311 +#ifndef TCPDUMP_MINI
313 mpls_print(ndo, bp, len);
315 @@ -218,6 +219,7 @@ gre_print_0(netdissect_options *ndo, con
317 ether_print(ndo, bp, len, len, NULL, NULL);
321 ND_PRINT((ndo, "gre-proto-0x%x", prot));
325 @@ -304,6 +304,7 @@ igmp_print(netdissect_options *ndo,
326 ND_TCHECK2(bp[4], 4);
327 ND_PRINT((ndo, "igmp leave %s", ipaddr_string(ndo, &bp[4])));
329 +#ifndef TCPDUMP_MINI
331 ND_PRINT((ndo, "igmp dvmrp"));
333 @@ -315,6 +316,7 @@ igmp_print(netdissect_options *ndo,
334 ND_PRINT((ndo, "igmp pimv1"));
335 pimv1_print(ndo, bp, len);
339 print_mresp(ndo, bp, len);
343 @@ -297,6 +297,7 @@ ip6_print(netdissect_options *ndo, const
344 advance = dstopt_print(ndo, cp);
347 +#ifndef TCPDUMP_MINI
348 case IPPROTO_FRAGMENT:
349 advance = frag6_print(ndo, cp, (const u_char *)ip6);
350 if (ndo->ndo_snapend <= cp + advance)
351 @@ -318,6 +319,7 @@ ip6_print(netdissect_options *ndo, const
352 advance = mobility_print(ndo, cp, (const u_char *)ip6);
356 case IPPROTO_ROUTING:
357 advance = rt6_print(ndo, cp, (const u_char *)ip6);
359 @@ -325,9 +327,11 @@ ip6_print(netdissect_options *ndo, const
361 sctp_print(ndo, cp, (const u_char *)ip6, len);
363 +#ifndef TCPDUMP_MINI
365 dccp_print(ndo, cp, (const u_char *)ip6, len);
369 tcp_print(ndo, cp, len, (const u_char *)ip6, fragmented);
371 @@ -337,6 +341,7 @@ ip6_print(netdissect_options *ndo, const
373 icmp6_print(ndo, cp, len, (const u_char *)ip6, fragmented);
375 +#ifndef TCPDUMP_MINI
377 advance = ah_print(ndo, cp);
379 @@ -360,6 +365,7 @@ ip6_print(netdissect_options *ndo, const
381 pim_print(ndo, cp, len, (const u_char *)ip6);
386 ospf6_print(ndo, cp, len);
387 @@ -373,9 +379,11 @@ ip6_print(netdissect_options *ndo, const
388 ip_print(ndo, cp, len);
391 +#ifndef TCPDUMP_MINI
393 pgm_print(ndo, cp, len, (const u_char *)ip6);
398 gre_print(ndo, cp, len);
401 @@ -327,6 +327,7 @@ ip_print_demux(netdissect_options *ndo,
405 +#ifndef TCPDUMP_MINI
407 ipds->nh = *ipds->cp;
408 ipds->advance = ah_print(ndo, ipds->cp);
409 @@ -361,14 +362,17 @@ again:
410 ipds->nh = enh & 0xff;
416 sctp_print(ndo, ipds->cp, (const u_char *)ipds->ip, ipds->len);
419 +#ifndef TCPDUMP_MINI
421 dccp_print(ndo, ipds->cp, (const u_char *)ipds->ip, ipds->len);
426 /* pass on the MF bit plus the offset to detect fragments */
427 @@ -388,6 +392,7 @@ again:
428 ipds->off & (IP_MF|IP_OFFMASK));
431 +#ifndef TCPDUMP_MINI
434 * XXX - the current IANA protocol number assignments
435 @@ -408,14 +413,17 @@ again:
437 eigrp_print(ndo, ipds->cp, ipds->len);
442 ND_PRINT((ndo, " nd %d", ipds->len));
445 +#ifndef TCPDUMP_MINI
447 egp_print(ndo, ipds->cp, ipds->len);
452 ospf_print(ndo, ipds->cp, ipds->len, (const u_char *)ipds->ip);
453 @@ -448,6 +456,7 @@ again:
454 gre_print(ndo, ipds->cp, ipds->len);
457 +#ifndef TCPDUMP_MINI
459 mobile_print(ndo, ipds->cp, ipds->len);
461 @@ -476,6 +485,7 @@ again:
463 pgm_print(ndo, ipds->cp, ipds->len, (const u_char *)ipds->ip);
468 if (ndo->ndo_nflag==0 && (proto = getprotobynumber(ipds->nh)) != NULL)
471 @@ -204,6 +204,7 @@ llc_print(netdissect_options *ndo, const
472 hdrlen = 4; /* DSAP, SSAP, 2-byte control field */
475 +#ifndef TCPDUMP_MINI
476 if (ssap_field == LLCSAP_GLOBAL && dsap_field == LLCSAP_GLOBAL) {
478 * This is an Ethernet_802.3 IPX frame; it has an
479 @@ -226,6 +227,7 @@ llc_print(netdissect_options *ndo, const
480 ipx_print(ndo, p, length);
481 return (0); /* no LLC header */
485 dsap = dsap_field & ~LLC_IG;
486 ssap = ssap_field & ~LLC_GSAP;
487 @@ -289,6 +291,7 @@ llc_print(netdissect_options *ndo, const
491 +#ifndef TCPDUMP_MINI
492 if (ssap == LLCSAP_IPX && dsap == LLCSAP_IPX &&
495 @@ -302,6 +305,7 @@ llc_print(netdissect_options *ndo, const
496 ipx_print(ndo, p, length);
502 if (ssap == LLCSAP_NETBEUI && dsap == LLCSAP_NETBEUI
503 @@ -320,11 +324,13 @@ llc_print(netdissect_options *ndo, const
507 +#ifndef TCPDUMP_MINI
508 if (ssap == LLCSAP_ISONS && dsap == LLCSAP_ISONS
509 && control == LLC_UI) {
510 isoclns_print(ndo, p, length, caplen);
515 if (!ndo->ndo_eflag) {
517 @@ -461,6 +467,7 @@ snap_print(netdissect_options *ndo, cons
519 cdp_print(ndo, p, length, caplen);
521 +#ifndef TCPDUMP_MINI
523 dtp_print(ndo, p, length);
525 @@ -470,6 +477,7 @@ snap_print(netdissect_options *ndo, cons
527 vtp_print(ndo, p, length);
531 case PID_CISCO_VLANBRIDGE:
532 stp_print(ndo, p, length);
533 @@ -482,6 +490,7 @@ snap_print(netdissect_options *ndo, cons
537 +#ifndef TCPDUMP_MINI
538 case PID_RFC2684_ETH_FCS:
539 case PID_RFC2684_ETH_NOFCS:
541 @@ -543,6 +552,7 @@ snap_print(netdissect_options *ndo, cons
543 fddi_print(ndo, p, length, caplen);
547 case PID_RFC2684_BPDU:
548 stp_print(ndo, p, length);
551 @@ -114,6 +114,7 @@ null_if_print(netdissect_options *ndo, c
552 ip6_print(ndo, p, length);
555 +#ifndef TCPDUMP_MINI
557 isoclns_print(ndo, p, length, caplen);
559 @@ -125,6 +126,7 @@ null_if_print(netdissect_options *ndo, c
561 ipx_print(ndo, p, length);
566 /* unknown AF_ value */
569 @@ -1346,6 +1346,7 @@ trunc:
573 +#ifndef TCPDUMP_MINI
575 ppp_hdlc(netdissect_options *ndo,
576 const u_char *p, int length)
577 @@ -1424,6 +1425,7 @@ trunc:
579 ND_PRINT((ndo, "[|ppp]"));
585 @@ -1431,10 +1433,12 @@ static void
586 handle_ppp(netdissect_options *ndo,
587 u_int proto, const u_char *p, int length)
589 +#ifndef TCPDUMP_MINI
590 if ((proto & 0xff00) == 0x7e00) { /* is this an escape code ? */
591 ppp_hdlc(ndo, p - 1, length);
597 case PPP_LCP: /* fall through */
598 @@ -1467,6 +1471,7 @@ handle_ppp(netdissect_options *ndo,
600 ip6_print(ndo, p, length);
602 +#ifndef TCPDUMP_MINI
603 case ETHERTYPE_IPX: /*XXX*/
605 ipx_print(ndo, p, length);
606 @@ -1478,6 +1483,7 @@ handle_ppp(netdissect_options *ndo,
608 mpls_print(ndo, p, length);
612 ND_PRINT((ndo, "compressed PPP data"));
614 @@ -1618,6 +1624,7 @@ ppp_if_print(netdissect_options *ndo,
618 +#ifndef TCPDUMP_MINI
620 * PPP I/F printer to use if we know that RFC 1662-style PPP in HDLC-like
621 * framing, or Cisco PPP with HDLC framing as per section 4.3.1 of RFC 1547,
622 @@ -1840,6 +1847,7 @@ printx:
623 #endif /* __bsdi__ */
632 @@ -236,12 +236,14 @@ recurse:
634 switch (ether_type) {
636 +#ifndef TCPDUMP_MINI
637 case LINUX_SLL_P_802_3:
639 * Ethernet_802.3 IPX frame.
641 ipx_print(ndo, p, length);
645 case LINUX_SLL_P_802_2:
649 @@ -565,12 +565,14 @@ tcp_print(netdissect_options *ndo,
650 ND_PRINT((ndo, " %u", utoval));
653 +#ifndef TCPDUMP_MINI
657 if (!mptcp_print(ndo, cp-2, len, flags))
662 case TCPOPT_FASTOPEN:
664 @@ -645,6 +647,7 @@ tcp_print(netdissect_options *ndo,
668 +#ifndef TCPDUMP_MINI
669 if (ndo->ndo_packettype) {
670 switch (ndo->ndo_packettype) {
672 @@ -656,6 +659,7 @@ tcp_print(netdissect_options *ndo,
678 if (IS_SRC_OR_DST_PORT(TELNET_PORT)) {
679 telnet_print(ndo, bp, length);
680 @@ -666,18 +670,22 @@ tcp_print(netdissect_options *ndo,
681 bgp_print(ndo, bp, length);
682 else if (IS_SRC_OR_DST_PORT(PPTP_PORT))
684 +#ifndef TCPDUMP_MINI
685 else if (IS_SRC_OR_DST_PORT(REDIS_PORT))
686 resp_print(ndo, bp, length);
689 else if (IS_SRC_OR_DST_PORT(NETBIOS_SSN_PORT))
690 nbt_tcp_print(ndo, bp, length);
691 else if (IS_SRC_OR_DST_PORT(SMB_PORT))
692 smb_tcp_print(ndo, bp, length);
694 +#ifndef TCPDUMP_MINI
695 else if (IS_SRC_OR_DST_PORT(BEEP_PORT))
696 beep_print(ndo, bp, length);
697 else if (IS_SRC_OR_DST_PORT(OPENFLOW_PORT_OLD) || IS_SRC_OR_DST_PORT(OPENFLOW_PORT_IANA))
698 openflow_print(ndo, bp, length);
700 else if (IS_SRC_OR_DST_PORT(FTP_PORT)) {
701 ND_PRINT((ndo, ": "));
702 ftp_print(ndo, bp, length);
703 @@ -694,6 +702,7 @@ tcp_print(netdissect_options *ndo,
704 * XXX packet could be unaligned, it can go strange
706 ns_print(ndo, bp + 2, length - 2, 0);
707 +#ifndef TCPDUMP_MINI
708 } else if (IS_SRC_OR_DST_PORT(MSDP_PORT)) {
709 msdp_print(ndo, bp, length);
710 } else if (IS_SRC_OR_DST_PORT(RPKI_RTR_PORT)) {
711 @@ -701,6 +710,7 @@ tcp_print(netdissect_options *ndo,
713 else if (length > 0 && (IS_SRC_OR_DST_PORT(LDP_PORT))) {
714 ldp_print(ndo, bp, length);
717 else if ((IS_SRC_OR_DST_PORT(NFS_PORT)) &&
718 length >= 4 && ND_TTEST2(*bp, 4)) {
721 @@ -397,10 +397,12 @@ udp_print(netdissect_options *ndo, regis
722 vat_print(ndo, (const void *)(up + 1), up);
725 +#ifndef TCPDUMP_MINI
727 udpipaddr_print(ndo, ip, sport, dport);
728 wb_print(ndo, (const void *)(up + 1), length);
733 rp = (const struct sunrpc_msg *)(up + 1);
734 @@ -429,10 +431,12 @@ udp_print(netdissect_options *ndo, regis
735 snmp_print(ndo, (const u_char *)(up + 1), length);
738 +#ifndef TCPDUMP_MINI
740 udpipaddr_print(ndo, ip, sport, dport);
746 udpipaddr_print(ndo, ip, sport, dport);
747 @@ -450,6 +454,7 @@ udp_print(netdissect_options *ndo, regis
748 radius_print(ndo, cp, length);
751 +#ifndef TCPDUMP_MINI
753 udpipaddr_print(ndo, ip, sport, dport);
754 vxlan_print(ndo, (const u_char *)(up + 1), length);
755 @@ -464,6 +469,7 @@ udp_print(netdissect_options *ndo, regis
756 udpipaddr_print(ndo, ip, sport, dport);
757 lmp_print(ndo, cp, length);
763 @@ -541,31 +547,40 @@ udp_print(netdissect_options *ndo, regis
764 ns_print(ndo, (const u_char *)(up + 1), length, 0);
765 else if (IS_SRC_OR_DST_PORT(MULTICASTDNS_PORT))
766 ns_print(ndo, (const u_char *)(up + 1), length, 1);
767 +#ifndef TCPDUMP_MINI
768 else if (IS_SRC_OR_DST_PORT(TIMED_PORT))
769 timed_print(ndo, (const u_char *)(up + 1));
771 else if (IS_SRC_OR_DST_PORT(TFTP_PORT))
772 tftp_print(ndo, (const u_char *)(up + 1), length);
773 else if (IS_SRC_OR_DST_PORT(BOOTPC_PORT) || IS_SRC_OR_DST_PORT(BOOTPS_PORT))
774 bootp_print(ndo, (const u_char *)(up + 1), length);
775 +#ifndef TCPDUMP_MINI
776 else if (IS_SRC_OR_DST_PORT(RIP_PORT))
777 rip_print(ndo, (const u_char *)(up + 1), length);
779 else if (IS_SRC_OR_DST_PORT(AODV_PORT))
780 aodv_print(ndo, (const u_char *)(up + 1), length,
782 +#ifndef TCPDUMP_MINI
783 else if (IS_SRC_OR_DST_PORT(ISAKMP_PORT))
784 isakmp_print(ndo, (const u_char *)(up + 1), length, bp2);
786 else if (IS_SRC_OR_DST_PORT(ISAKMP_PORT_NATT))
787 isakmp_rfc3948_print(ndo, (const u_char *)(up + 1), length, bp2);
789 else if (IS_SRC_OR_DST_PORT(ISAKMP_PORT_USER1) || IS_SRC_OR_DST_PORT(ISAKMP_PORT_USER2))
790 isakmp_print(ndo, (const u_char *)(up + 1), length, bp2);
793 else if (IS_SRC_OR_DST_PORT(SNMP_PORT) || IS_SRC_OR_DST_PORT(SNMPTRAP_PORT))
794 snmp_print(ndo, (const u_char *)(up + 1), length);
795 else if (IS_SRC_OR_DST_PORT(NTP_PORT))
796 ntp_print(ndo, (const u_char *)(up + 1), length);
797 +#ifndef TCPDUMP_MINI
798 else if (IS_SRC_OR_DST_PORT(KERBEROS_PORT) || IS_SRC_OR_DST_PORT(KERBEROS_SEC_PORT))
799 krb_print(ndo, (const void *)(up + 1));
801 else if (IS_SRC_OR_DST_PORT(L2TP_PORT))
802 l2tp_print(ndo, (const u_char *)(up + 1), length);
804 @@ -576,6 +591,7 @@ udp_print(netdissect_options *ndo, regis
806 else if (dport == VAT_PORT)
807 vat_print(ndo, (const void *)(up + 1), up);
808 +#ifndef TCPDUMP_MINI
809 else if (IS_SRC_OR_DST_PORT(ZEPHYR_SRV_PORT) || IS_SRC_OR_DST_PORT(ZEPHYR_CLT_PORT))
810 zephyr_print(ndo, (const void *)(up + 1), length);
812 @@ -588,8 +604,11 @@ udp_print(netdissect_options *ndo, regis
813 (const u_char *) ip);
814 else if (IS_SRC_OR_DST_PORT(RIPNG_PORT))
815 ripng_print(ndo, (const u_char *)(up + 1), length);
818 else if (IS_SRC_OR_DST_PORT(DHCP6_SERV_PORT) || IS_SRC_OR_DST_PORT(DHCP6_CLI_PORT))
819 dhcp6_print(ndo, (const u_char *)(up + 1), length);
820 +#ifndef TCPDUMP_MINI
821 else if (IS_SRC_OR_DST_PORT(AHCP_PORT))
822 ahcp_print(ndo, (const u_char *)(up + 1), length);
823 else if (IS_SRC_OR_DST_PORT(BABEL_PORT) || IS_SRC_OR_DST_PORT(BABEL_PORT_OLD))
824 @@ -603,6 +622,7 @@ udp_print(netdissect_options *ndo, regis
825 wb_print(ndo, (const void *)(up + 1), length);
826 else if (IS_SRC_OR_DST_PORT(CISCO_AUTORP_PORT))
827 cisco_autorp_print(ndo, (const void *)(up + 1), length);
829 else if (IS_SRC_OR_DST_PORT(RADIUS_PORT) ||
830 IS_SRC_OR_DST_PORT(RADIUS_NEW_PORT) ||
831 IS_SRC_OR_DST_PORT(RADIUS_ACCOUNTING_PORT) ||
832 @@ -610,15 +630,18 @@ udp_print(netdissect_options *ndo, regis
833 IS_SRC_OR_DST_PORT(RADIUS_CISCO_COA_PORT) ||
834 IS_SRC_OR_DST_PORT(RADIUS_COA_PORT) )
835 radius_print(ndo, (const u_char *)(up+1), length);
836 +#ifndef TCPDUMP_MINI
837 else if (dport == HSRP_PORT)
838 hsrp_print(ndo, (const u_char *)(up + 1), length);
839 else if (IS_SRC_OR_DST_PORT(LWRES_PORT))
840 lwres_print(ndo, (const u_char *)(up + 1), length);
841 else if (IS_SRC_OR_DST_PORT(LDP_PORT))
842 ldp_print(ndo, (const u_char *)(up + 1), length);
844 else if (IS_SRC_OR_DST_PORT(OLSR_PORT))
845 olsr_print(ndo, (const u_char *)(up + 1), length,
846 (IP_V(ip) == 6) ? 1 : 0);
847 +#ifndef TCPDUMP_MINI
848 else if (IS_SRC_OR_DST_PORT(MPLS_LSP_PING_PORT))
849 lspping_print(ndo, (const u_char *)(up + 1), length);
850 else if (dport == BFD_CONTROL_PORT ||
851 @@ -636,10 +659,12 @@ udp_print(netdissect_options *ndo, regis
852 lwapp_control_print(ndo, (const u_char *)(up + 1), length, 0);
853 else if (IS_SRC_OR_DST_PORT(LWAPP_DATA_PORT))
854 lwapp_data_print(ndo, (const u_char *)(up + 1), length);
856 else if (IS_SRC_OR_DST_PORT(SIP_PORT))
857 sip_print(ndo, (const u_char *)(up + 1), length);
858 else if (IS_SRC_OR_DST_PORT(SYSLOG_PORT))
859 syslog_print(ndo, (const u_char *)(up + 1), length);
860 +#ifndef TCPDUMP_MINI
861 else if (IS_SRC_OR_DST_PORT(OTV_PORT))
862 otv_print(ndo, (const u_char *)(up + 1), length);
863 else if (IS_SRC_OR_DST_PORT(VXLAN_PORT))
864 @@ -656,7 +681,9 @@ udp_print(netdissect_options *ndo, regis
866 ND_PRINT((ndo, "kip "));
867 llap_print(ndo, cp, length);
873 ND_PRINT((ndo, "UDP, bad length %u > %u",