3 @@ -72,6 +72,80 @@ DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@
5 CSRC = setsignal.c tcpdump.c
14 + ascii_strcasecmp.c \
84 @@ -237,6 +311,8 @@ LIBNETDISSECT_SRC=\
95 @@ -566,8 +566,10 @@ linkaddr_string(netdissect_options *ndo,
96 if (type == LINKADDR_ETHER && len == ETHER_ADDR_LEN)
97 return (etheraddr_string(ndo, ep));
100 if (type == LINKADDR_FRELAY)
101 return (q922_string(ndo, ep, len));
104 tp = lookup_bytestring(ndo, ep, len);
106 @@ -1202,6 +1204,7 @@ init_addrtoname(netdissect_options *ndo,
107 init_ipxsaparray(ndo);
110 +#ifndef TCPDUMP_MINI
112 dnaddr_string(netdissect_options *ndo, u_short dnaddr)
114 @@ -1221,6 +1224,7 @@ dnaddr_string(netdissect_options *ndo, u
120 /* Return a zero'ed hnamemem struct and cuts down on calloc() overhead */
124 @@ -48,6 +48,7 @@ static const struct printer printers[] =
126 { ipnet_if_print, DLT_IPNET },
128 +#ifndef TCPDUMP_MINI
129 #ifdef DLT_IEEE802_15_4
130 { ieee802_15_4_if_print, DLT_IEEE802_15_4 },
132 @@ -57,12 +58,14 @@ static const struct printer printers[] =
134 { ppi_if_print, DLT_PPI },
137 #ifdef DLT_NETANALYZER
138 { netanalyzer_if_print, DLT_NETANALYZER },
140 #ifdef DLT_NETANALYZER_TRANSPARENT
141 { netanalyzer_transparent_if_print, DLT_NETANALYZER_TRANSPARENT },
143 +#ifndef TCPDUMP_MINI
144 #if defined(DLT_NFLOG) && defined(HAVE_PCAP_NFLOG_H)
145 { nflog_if_print, DLT_NFLOG},
147 @@ -75,10 +78,12 @@ static const struct printer printers[] =
148 #ifdef DLT_IP_OVER_FC
149 { ipfc_if_print, DLT_IP_OVER_FC },
152 { null_if_print, DLT_NULL },
154 { null_if_print, DLT_LOOP },
156 +#ifndef TCPDUMP_MINI
157 #ifdef DLT_APPLE_IP_OVER_IEEE1394
158 { ap1394_if_print, DLT_APPLE_IP_OVER_IEEE1394 },
160 @@ -92,7 +97,9 @@ static const struct printer printers[] =
161 #ifdef DLT_ARCNET_LINUX
162 { arcnet_linux_if_print, DLT_ARCNET_LINUX },
165 { raw_if_print, DLT_RAW },
166 +#ifndef TCPDUMP_MINI
168 { raw_if_print, DLT_IPV4 },
170 @@ -116,17 +123,21 @@ static const struct printer printers[] =
172 { chdlc_if_print, DLT_HDLC },
176 { pppoe_if_print, DLT_PPP_ETHER },
178 +#ifndef TCPDUMP_MINI
179 #if defined(DLT_PFLOG) && defined(HAVE_NET_IF_PFLOG_H)
180 { pflog_if_print, DLT_PFLOG },
182 { token_if_print, DLT_IEEE802 },
183 { fddi_if_print, DLT_FDDI },
186 { sll_if_print, DLT_LINUX_SLL },
188 +#ifndef TCPDUMP_MINI
190 { fr_if_print, DLT_FR },
192 @@ -198,6 +209,7 @@ static const struct printer printers[] =
194 { pktap_if_print, DLT_PKTAP },
197 #ifdef DLT_IEEE802_11_RADIO
198 { ieee802_11_radio_if_print, DLT_IEEE802_11_RADIO },
200 @@ -214,12 +226,14 @@ static const struct printer printers[] =
201 #ifdef DLT_PPP_WITHDIRECTION
202 { ppp_if_print, DLT_PPP_WITHDIRECTION },
204 +#ifndef TCPDUMP_MINI
206 { ppp_bsdos_if_print, DLT_PPP_BSDOS },
208 #ifdef DLT_PPP_SERIAL
209 { ppp_hdlc_if_print, DLT_PPP_SERIAL },
217 @@ -342,6 +342,7 @@ ethertype_print(netdissect_options *ndo,
218 arp_print(ndo, p, length, caplen);
221 +#ifndef TCPDUMP_MINI
223 decnet_print(ndo, p, length, caplen);
225 @@ -368,6 +369,7 @@ ethertype_print(netdissect_options *ndo,
227 isoclns_print(ndo, p + 1, length - 1, caplen - 1);
231 case ETHERTYPE_PPPOED:
232 case ETHERTYPE_PPPOES:
233 @@ -380,9 +382,11 @@ ethertype_print(netdissect_options *ndo,
234 eap_print(ndo, p, length);
237 +#ifndef TCPDUMP_MINI
239 rrcp_print(ndo, p, length, src, dst);
245 @@ -391,6 +395,7 @@ ethertype_print(netdissect_options *ndo,
249 +#ifndef TCPDUMP_MINI
251 mpcp_print(ndo, p, length);
253 @@ -403,6 +408,7 @@ ethertype_print(netdissect_options *ndo,
254 case ETHERTYPE_CFM_OLD:
255 cfm_print(ndo, p, length);
260 lldp_print(ndo, p, length);
261 @@ -412,6 +418,7 @@ ethertype_print(netdissect_options *ndo,
262 loopback_print(ndo, p, length);
265 +#ifndef TCPDUMP_MINI
267 case ETHERTYPE_MPLS_MULTI:
268 mpls_print(ndo, p, length);
269 @@ -441,6 +448,7 @@ ethertype_print(netdissect_options *ndo,
270 case ETHERTYPE_MEDSA:
271 medsa_print(ndo, p, length, caplen, src, dst);
279 @@ -216,6 +216,7 @@ gre_print_0(netdissect_options *ndo, con
281 ip6_print(ndo, bp, len);
283 +#ifndef TCPDUMP_MINI
285 mpls_print(ndo, bp, len);
287 @@ -231,6 +232,7 @@ gre_print_0(netdissect_options *ndo, con
289 ether_print(ndo, bp, len, ndo->ndo_snapend - bp, NULL, NULL);
293 ND_PRINT((ndo, "gre-proto-0x%x", prot));
297 @@ -306,6 +306,7 @@ igmp_print(netdissect_options *ndo,
298 ND_TCHECK2(bp[4], 4);
299 ND_PRINT((ndo, "igmp leave %s", ipaddr_string(ndo, &bp[4])));
301 +#ifndef TCPDUMP_MINI
303 ND_PRINT((ndo, "igmp dvmrp"));
305 @@ -317,6 +318,7 @@ igmp_print(netdissect_options *ndo,
306 ND_PRINT((ndo, "igmp pimv1"));
307 pimv1_print(ndo, bp, len);
311 print_mresp(ndo, bp, len);
315 @@ -303,6 +303,7 @@ ip6_print(netdissect_options *ndo, const
319 +#ifndef TCPDUMP_MINI
320 case IPPROTO_FRAGMENT:
321 advance = frag6_print(ndo, cp, (const u_char *)ip6);
322 if (advance < 0 || ndo->ndo_snapend <= cp + advance)
323 @@ -324,16 +325,19 @@ ip6_print(netdissect_options *ndo, const
324 advance = mobility_print(ndo, cp, (const u_char *)ip6);
328 case IPPROTO_ROUTING:
329 advance = rt6_print(ndo, cp, (const u_char *)ip6);
332 +#ifndef TCPDUMP_MINI
334 sctp_print(ndo, cp, (const u_char *)ip6, len);
337 dccp_print(ndo, cp, (const u_char *)ip6, len);
341 tcp_print(ndo, cp, len, (const u_char *)ip6, fragmented);
343 @@ -343,6 +347,7 @@ ip6_print(netdissect_options *ndo, const
345 icmp6_print(ndo, cp, len, (const u_char *)ip6, fragmented);
347 +#ifndef TCPDUMP_MINI
349 advance = ah_print(ndo, cp);
351 @@ -371,6 +376,7 @@ ip6_print(netdissect_options *ndo, const
353 pim_print(ndo, cp, len, (const u_char *)ip6);
358 ospf6_print(ndo, cp, len);
359 @@ -384,9 +390,11 @@ ip6_print(netdissect_options *ndo, const
360 ip_print(ndo, cp, len);
363 +#ifndef TCPDUMP_MINI
365 pgm_print(ndo, cp, len, (const u_char *)ip6);
370 gre_print(ndo, cp, len);
373 @@ -329,6 +329,7 @@ ip_print_demux(netdissect_options *ndo,
377 +#ifndef TCPDUMP_MINI
379 if (!ND_TTEST(*ipds->cp)) {
380 ND_PRINT((ndo, "[|AH]"));
381 @@ -367,7 +368,9 @@ again:
387 +#ifndef TCPDUMP_MINI
389 sctp_print(ndo, ipds->cp, (const u_char *)ipds->ip, ipds->len);
391 @@ -375,6 +378,7 @@ again:
393 dccp_print(ndo, ipds->cp, (const u_char *)ipds->ip, ipds->len);
398 /* pass on the MF bit plus the offset to detect fragments */
399 @@ -394,6 +398,7 @@ again:
400 ipds->off & (IP_MF|IP_OFFMASK));
403 +#ifndef TCPDUMP_MINI
406 * XXX - the current IANA protocol number assignments
407 @@ -414,14 +419,17 @@ again:
409 eigrp_print(ndo, ipds->cp, ipds->len);
414 ND_PRINT((ndo, " nd %d", ipds->len));
417 +#ifndef TCPDUMP_MINI
419 egp_print(ndo, ipds->cp, ipds->len);
424 ospf_print(ndo, ipds->cp, ipds->len, (const u_char *)ipds->ip);
425 @@ -454,6 +462,7 @@ again:
426 gre_print(ndo, ipds->cp, ipds->len);
429 +#ifndef TCPDUMP_MINI
431 mobile_print(ndo, ipds->cp, ipds->len);
433 @@ -482,6 +491,7 @@ again:
435 pgm_print(ndo, ipds->cp, ipds->len, (const u_char *)ipds->ip);
440 if (ndo->ndo_nflag==0 && (proto = getprotobynumber(ipds->nh)) != NULL)
443 @@ -206,6 +206,7 @@ llc_print(netdissect_options *ndo, const
444 hdrlen = 4; /* DSAP, SSAP, 2-byte control field */
447 +#ifndef TCPDUMP_MINI
448 if (ssap_field == LLCSAP_GLOBAL && dsap_field == LLCSAP_GLOBAL) {
450 * This is an Ethernet_802.3 IPX frame; it has an
451 @@ -228,6 +229,7 @@ llc_print(netdissect_options *ndo, const
452 ipx_print(ndo, p, length);
453 return (0); /* no LLC header */
457 dsap = dsap_field & ~LLC_IG;
458 ssap = ssap_field & ~LLC_GSAP;
459 @@ -291,6 +293,7 @@ llc_print(netdissect_options *ndo, const
463 +#ifndef TCPDUMP_MINI
464 if (ssap == LLCSAP_IPX && dsap == LLCSAP_IPX &&
467 @@ -304,6 +307,7 @@ llc_print(netdissect_options *ndo, const
468 ipx_print(ndo, p, length);
474 if (ssap == LLCSAP_NETBEUI && dsap == LLCSAP_NETBEUI
475 @@ -322,11 +326,13 @@ llc_print(netdissect_options *ndo, const
479 +#ifndef TCPDUMP_MINI
480 if (ssap == LLCSAP_ISONS && dsap == LLCSAP_ISONS
481 && control == LLC_UI) {
482 isoclns_print(ndo, p, length, caplen);
487 if (!ndo->ndo_eflag) {
489 @@ -480,6 +486,7 @@ snap_print(netdissect_options *ndo, cons
493 +#ifndef TCPDUMP_MINI
495 cdp_print(ndo, p, length, caplen);
497 @@ -492,6 +499,7 @@ snap_print(netdissect_options *ndo, cons
499 vtp_print(ndo, p, length);
503 case PID_CISCO_VLANBRIDGE:
504 stp_print(ndo, p, length);
505 @@ -504,6 +512,7 @@ snap_print(netdissect_options *ndo, cons
509 +#ifndef TCPDUMP_MINI
510 case PID_RFC2684_ETH_FCS:
511 case PID_RFC2684_ETH_NOFCS:
513 @@ -565,6 +574,7 @@ snap_print(netdissect_options *ndo, cons
515 fddi_print(ndo, p, length, caplen);
519 case PID_RFC2684_BPDU:
520 stp_print(ndo, p, length);
523 @@ -116,6 +116,7 @@ null_if_print(netdissect_options *ndo, c
524 ip6_print(ndo, p, length);
527 +#ifndef TCPDUMP_MINI
529 isoclns_print(ndo, p, length, caplen);
531 @@ -127,6 +128,7 @@ null_if_print(netdissect_options *ndo, c
533 ipx_print(ndo, p, length);
538 /* unknown AF_ value */
541 @@ -1358,6 +1358,7 @@ trunc:
545 +#ifndef TCPDUMP_MINI
547 ppp_hdlc(netdissect_options *ndo,
548 const u_char *p, int length)
549 @@ -1436,6 +1437,7 @@ trunc:
551 ND_PRINT((ndo, "[|ppp]"));
557 @@ -1443,10 +1445,12 @@ static void
558 handle_ppp(netdissect_options *ndo,
559 u_int proto, const u_char *p, int length)
561 +#ifndef TCPDUMP_MINI
562 if ((proto & 0xff00) == 0x7e00) { /* is this an escape code ? */
563 ppp_hdlc(ndo, p - 1, length);
569 case PPP_LCP: /* fall through */
570 @@ -1479,6 +1483,7 @@ handle_ppp(netdissect_options *ndo,
572 ip6_print(ndo, p, length);
574 +#ifndef TCPDUMP_MINI
575 case ETHERTYPE_IPX: /*XXX*/
577 ipx_print(ndo, p, length);
578 @@ -1490,6 +1495,7 @@ handle_ppp(netdissect_options *ndo,
580 mpls_print(ndo, p, length);
584 ND_PRINT((ndo, "compressed PPP data"));
586 @@ -1630,6 +1636,7 @@ ppp_if_print(netdissect_options *ndo,
590 +#ifndef TCPDUMP_MINI
592 * PPP I/F printer to use if we know that RFC 1662-style PPP in HDLC-like
593 * framing, or Cisco PPP with HDLC framing as per section 4.3.1 of RFC 1547,
594 @@ -1857,6 +1864,7 @@ printx:
595 #endif /* __bsdi__ */
604 @@ -238,12 +238,14 @@ recurse:
606 switch (ether_type) {
608 +#ifndef TCPDUMP_MINI
609 case LINUX_SLL_P_802_3:
611 * Ethernet_802.3 IPX frame.
613 ipx_print(ndo, p, length);
617 case LINUX_SLL_P_802_2:
621 @@ -589,12 +589,14 @@ tcp_print(netdissect_options *ndo,
622 ND_PRINT((ndo, " %u", utoval));
625 +#ifndef TCPDUMP_MINI
629 if (!mptcp_print(ndo, cp-2, len, flags))
634 case TCPOPT_FASTOPEN:
636 @@ -670,6 +672,7 @@ tcp_print(netdissect_options *ndo,
640 +#ifndef TCPDUMP_MINI
641 if (ndo->ndo_packettype) {
642 switch (ndo->ndo_packettype) {
644 @@ -681,28 +684,36 @@ tcp_print(netdissect_options *ndo,
650 if (IS_SRC_OR_DST_PORT(TELNET_PORT)) {
651 telnet_print(ndo, bp, length);
652 } else if (IS_SRC_OR_DST_PORT(SMTP_PORT)) {
653 ND_PRINT((ndo, ": "));
654 smtp_print(ndo, bp, length);
655 - } else if (IS_SRC_OR_DST_PORT(BGP_PORT))
657 +#ifndef TCPDUMP_MINI
658 + else if (IS_SRC_OR_DST_PORT(BGP_PORT))
659 bgp_print(ndo, bp, length);
661 else if (IS_SRC_OR_DST_PORT(PPTP_PORT))
663 +#ifndef TCPDUMP_MINI
664 else if (IS_SRC_OR_DST_PORT(REDIS_PORT))
665 resp_print(ndo, bp, length);
668 else if (IS_SRC_OR_DST_PORT(NETBIOS_SSN_PORT))
669 nbt_tcp_print(ndo, bp, length);
670 else if (IS_SRC_OR_DST_PORT(SMB_PORT))
671 smb_tcp_print(ndo, bp, length);
673 +#ifndef TCPDUMP_MINI
674 else if (IS_SRC_OR_DST_PORT(BEEP_PORT))
675 beep_print(ndo, bp, length);
676 else if (IS_SRC_OR_DST_PORT(OPENFLOW_PORT_OLD) || IS_SRC_OR_DST_PORT(OPENFLOW_PORT_IANA))
677 openflow_print(ndo, bp, length);
679 else if (IS_SRC_OR_DST_PORT(FTP_PORT)) {
680 ND_PRINT((ndo, ": "));
681 ftp_print(ndo, bp, length);
682 @@ -719,6 +730,7 @@ tcp_print(netdissect_options *ndo,
683 * XXX packet could be unaligned, it can go strange
685 ns_print(ndo, bp + 2, length - 2, 0);
686 +#ifndef TCPDUMP_MINI
687 } else if (IS_SRC_OR_DST_PORT(MSDP_PORT)) {
688 msdp_print(ndo, bp, length);
689 } else if (IS_SRC_OR_DST_PORT(RPKI_RTR_PORT)) {
690 @@ -726,6 +738,7 @@ tcp_print(netdissect_options *ndo,
692 else if (length > 0 && (IS_SRC_OR_DST_PORT(LDP_PORT))) {
693 ldp_print(ndo, bp, length);
696 else if ((IS_SRC_OR_DST_PORT(NFS_PORT)) &&
697 length >= 4 && ND_TTEST2(*bp, 4)) {
700 @@ -430,10 +430,12 @@ udp_print(netdissect_options *ndo, regis
701 vat_print(ndo, (const void *)(up + 1), up);
704 +#ifndef TCPDUMP_MINI
706 udpipaddr_print(ndo, ip, sport, dport);
707 wb_print(ndo, (const void *)(up + 1), length);
712 rp = (const struct sunrpc_msg *)(up + 1);
713 @@ -462,10 +464,12 @@ udp_print(netdissect_options *ndo, regis
714 snmp_print(ndo, (const u_char *)(up + 1), length);
717 +#ifndef TCPDUMP_MINI
719 udpipaddr_print(ndo, ip, sport, dport);
725 udpipaddr_print(ndo, ip, sport, dport);
726 @@ -483,6 +487,7 @@ udp_print(netdissect_options *ndo, regis
727 radius_print(ndo, cp, length);
730 +#ifndef TCPDUMP_MINI
732 udpipaddr_print(ndo, ip, sport, dport);
733 vxlan_print(ndo, (const u_char *)(up + 1), length);
734 @@ -497,6 +502,7 @@ udp_print(netdissect_options *ndo, regis
735 udpipaddr_print(ndo, ip, sport, dport);
736 lmp_print(ndo, cp, length);
742 @@ -574,31 +580,40 @@ udp_print(netdissect_options *ndo, regis
743 ns_print(ndo, (const u_char *)(up + 1), length, 0);
744 else if (IS_SRC_OR_DST_PORT(MULTICASTDNS_PORT))
745 ns_print(ndo, (const u_char *)(up + 1), length, 1);
746 +#ifndef TCPDUMP_MINI
747 else if (IS_SRC_OR_DST_PORT(TIMED_PORT))
748 timed_print(ndo, (const u_char *)(up + 1));
750 else if (IS_SRC_OR_DST_PORT(TFTP_PORT))
751 tftp_print(ndo, (const u_char *)(up + 1), length);
752 else if (IS_SRC_OR_DST_PORT(BOOTPC_PORT) || IS_SRC_OR_DST_PORT(BOOTPS_PORT))
753 bootp_print(ndo, (const u_char *)(up + 1), length);
754 +#ifndef TCPDUMP_MINI
755 else if (IS_SRC_OR_DST_PORT(RIP_PORT))
756 rip_print(ndo, (const u_char *)(up + 1), length);
758 else if (IS_SRC_OR_DST_PORT(AODV_PORT))
759 aodv_print(ndo, (const u_char *)(up + 1), length,
761 +#ifndef TCPDUMP_MINI
762 else if (IS_SRC_OR_DST_PORT(ISAKMP_PORT))
763 isakmp_print(ndo, (const u_char *)(up + 1), length, bp2);
765 else if (IS_SRC_OR_DST_PORT(ISAKMP_PORT_NATT))
766 isakmp_rfc3948_print(ndo, (const u_char *)(up + 1), length, bp2);
768 else if (IS_SRC_OR_DST_PORT(ISAKMP_PORT_USER1) || IS_SRC_OR_DST_PORT(ISAKMP_PORT_USER2))
769 isakmp_print(ndo, (const u_char *)(up + 1), length, bp2);
772 else if (IS_SRC_OR_DST_PORT(SNMP_PORT) || IS_SRC_OR_DST_PORT(SNMPTRAP_PORT))
773 snmp_print(ndo, (const u_char *)(up + 1), length);
774 else if (IS_SRC_OR_DST_PORT(NTP_PORT))
775 ntp_print(ndo, (const u_char *)(up + 1), length);
776 +#ifndef TCPDUMP_MINI
777 else if (IS_SRC_OR_DST_PORT(KERBEROS_PORT) || IS_SRC_OR_DST_PORT(KERBEROS_SEC_PORT))
778 krb_print(ndo, (const void *)(up + 1));
780 else if (IS_SRC_OR_DST_PORT(L2TP_PORT))
781 l2tp_print(ndo, (const u_char *)(up + 1), length);
783 @@ -609,6 +624,7 @@ udp_print(netdissect_options *ndo, regis
785 else if (dport == VAT_PORT)
786 vat_print(ndo, (const void *)(up + 1), up);
787 +#ifndef TCPDUMP_MINI
788 else if (IS_SRC_OR_DST_PORT(ZEPHYR_SRV_PORT) || IS_SRC_OR_DST_PORT(ZEPHYR_CLT_PORT))
789 zephyr_print(ndo, (const void *)(up + 1), length);
791 @@ -621,8 +637,11 @@ udp_print(netdissect_options *ndo, regis
792 (const u_char *) ip);
793 else if (IS_SRC_OR_DST_PORT(RIPNG_PORT))
794 ripng_print(ndo, (const u_char *)(up + 1), length);
797 else if (IS_SRC_OR_DST_PORT(DHCP6_SERV_PORT) || IS_SRC_OR_DST_PORT(DHCP6_CLI_PORT))
798 dhcp6_print(ndo, (const u_char *)(up + 1), length);
799 +#ifndef TCPDUMP_MINI
800 else if (IS_SRC_OR_DST_PORT(AHCP_PORT))
801 ahcp_print(ndo, (const u_char *)(up + 1), length);
802 else if (IS_SRC_OR_DST_PORT(BABEL_PORT) || IS_SRC_OR_DST_PORT(BABEL_PORT_OLD))
803 @@ -636,6 +655,7 @@ udp_print(netdissect_options *ndo, regis
804 wb_print(ndo, (const void *)(up + 1), length);
805 else if (IS_SRC_OR_DST_PORT(CISCO_AUTORP_PORT))
806 cisco_autorp_print(ndo, (const void *)(up + 1), length);
808 else if (IS_SRC_OR_DST_PORT(RADIUS_PORT) ||
809 IS_SRC_OR_DST_PORT(RADIUS_NEW_PORT) ||
810 IS_SRC_OR_DST_PORT(RADIUS_ACCOUNTING_PORT) ||
811 @@ -643,15 +663,18 @@ udp_print(netdissect_options *ndo, regis
812 IS_SRC_OR_DST_PORT(RADIUS_CISCO_COA_PORT) ||
813 IS_SRC_OR_DST_PORT(RADIUS_COA_PORT) )
814 radius_print(ndo, (const u_char *)(up+1), length);
815 +#ifndef TCPDUMP_MINI
816 else if (dport == HSRP_PORT)
817 hsrp_print(ndo, (const u_char *)(up + 1), length);
818 else if (IS_SRC_OR_DST_PORT(LWRES_PORT))
819 lwres_print(ndo, (const u_char *)(up + 1), length);
820 else if (IS_SRC_OR_DST_PORT(LDP_PORT))
821 ldp_print(ndo, (const u_char *)(up + 1), length);
823 else if (IS_SRC_OR_DST_PORT(OLSR_PORT))
824 olsr_print(ndo, (const u_char *)(up + 1), length,
825 (IP_V(ip) == 6) ? 1 : 0);
826 +#ifndef TCPDUMP_MINI
827 else if (IS_SRC_OR_DST_PORT(MPLS_LSP_PING_PORT))
828 lspping_print(ndo, (const u_char *)(up + 1), length);
829 else if (dport == BFD_CONTROL_PORT ||
830 @@ -669,10 +692,12 @@ udp_print(netdissect_options *ndo, regis
831 lwapp_control_print(ndo, (const u_char *)(up + 1), length, 0);
832 else if (IS_SRC_OR_DST_PORT(LWAPP_DATA_PORT))
833 lwapp_data_print(ndo, (const u_char *)(up + 1), length);
835 else if (IS_SRC_OR_DST_PORT(SIP_PORT))
836 sip_print(ndo, (const u_char *)(up + 1), length);
837 else if (IS_SRC_OR_DST_PORT(SYSLOG_PORT))
838 syslog_print(ndo, (const u_char *)(up + 1), length);
839 +#ifndef TCPDUMP_MINI
840 else if (IS_SRC_OR_DST_PORT(OTV_PORT))
841 otv_print(ndo, (const u_char *)(up + 1), length);
842 else if (IS_SRC_OR_DST_PORT(VXLAN_PORT))
843 @@ -689,7 +714,9 @@ udp_print(netdissect_options *ndo, regis
845 ND_PRINT((ndo, "kip "));
846 llap_print(ndo, cp, length);
852 ND_PRINT((ndo, "UDP, bad length %u > %u",