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 @@ -578,8 +578,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 @@ -1214,6 +1216,7 @@ init_addrtoname(netdissect_options *ndo,
107 init_ipxsaparray(ndo);
110 +#ifndef TCPDUMP_MINI
112 dnaddr_string(netdissect_options *ndo, u_short dnaddr)
114 @@ -1233,6 +1236,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);
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 @@ -305,6 +305,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 @@ -328,6 +329,7 @@ ip6_print(netdissect_options *ndo, const
328 case IPPROTO_ROUTING:
330 advance = rt6_print(ndo, cp, (const u_char *)ip6);
331 @@ -335,12 +337,14 @@ ip6_print(netdissect_options *ndo, const
335 +#ifndef TCPDUMP_MINI
337 sctp_print(ndo, cp, (const u_char *)ip6, len);
340 dccp_print(ndo, cp, (const u_char *)ip6, len);
344 tcp_print(ndo, cp, len, (const u_char *)ip6, fragmented);
346 @@ -350,6 +354,7 @@ ip6_print(netdissect_options *ndo, const
348 icmp6_print(ndo, cp, len, (const u_char *)ip6, fragmented);
350 +#ifndef TCPDUMP_MINI
352 advance = ah_print(ndo, cp);
354 @@ -382,6 +387,7 @@ ip6_print(netdissect_options *ndo, const
356 pim_print(ndo, cp, len, (const u_char *)ip6);
361 ospf6_print(ndo, cp, len);
362 @@ -395,9 +401,11 @@ ip6_print(netdissect_options *ndo, const
363 ip_print(ndo, cp, len);
366 +#ifndef TCPDUMP_MINI
368 pgm_print(ndo, cp, len, (const u_char *)ip6);
373 gre_print(ndo, cp, len);
376 @@ -344,6 +344,7 @@ ip_print_demux(netdissect_options *ndo,
380 +#ifndef TCPDUMP_MINI
382 if (!ND_TTEST(*ipds->cp)) {
383 ND_PRINT((ndo, "[|AH]"));
384 @@ -382,7 +383,9 @@ again:
390 +#ifndef TCPDUMP_MINI
392 sctp_print(ndo, ipds->cp, (const u_char *)ipds->ip, ipds->len);
394 @@ -390,6 +393,7 @@ again:
396 dccp_print(ndo, ipds->cp, (const u_char *)ipds->ip, ipds->len);
401 /* pass on the MF bit plus the offset to detect fragments */
402 @@ -409,6 +413,7 @@ again:
403 ipds->off & (IP_MF|IP_OFFMASK));
406 +#ifndef TCPDUMP_MINI
409 * XXX - the current IANA protocol number assignments
410 @@ -429,14 +434,17 @@ again:
412 eigrp_print(ndo, ipds->cp, ipds->len);
417 ND_PRINT((ndo, " nd %d", ipds->len));
420 +#ifndef TCPDUMP_MINI
422 egp_print(ndo, ipds->cp, ipds->len);
427 ospf_print(ndo, ipds->cp, ipds->len, (const u_char *)ipds->ip);
428 @@ -469,6 +477,7 @@ again:
429 gre_print(ndo, ipds->cp, ipds->len);
432 +#ifndef TCPDUMP_MINI
434 mobile_print(ndo, ipds->cp, ipds->len);
436 @@ -497,6 +506,7 @@ again:
438 pgm_print(ndo, ipds->cp, ipds->len, (const u_char *)ipds->ip);
443 if (ndo->ndo_nflag==0 && (p_name = netdb_protoname(ipds->nh)) != NULL)
446 @@ -206,6 +206,7 @@ llc_print(netdissect_options *ndo, const
447 hdrlen = 4; /* DSAP, SSAP, 2-byte control field */
450 +#ifndef TCPDUMP_MINI
451 if (ssap_field == LLCSAP_GLOBAL && dsap_field == LLCSAP_GLOBAL) {
453 * This is an Ethernet_802.3 IPX frame; it has an
454 @@ -228,6 +229,7 @@ llc_print(netdissect_options *ndo, const
455 ipx_print(ndo, p, length);
456 return (0); /* no LLC header */
460 dsap = dsap_field & ~LLC_IG;
461 ssap = ssap_field & ~LLC_GSAP;
462 @@ -291,6 +293,7 @@ llc_print(netdissect_options *ndo, const
466 +#ifndef TCPDUMP_MINI
467 if (ssap == LLCSAP_IPX && dsap == LLCSAP_IPX &&
470 @@ -304,6 +307,7 @@ llc_print(netdissect_options *ndo, const
471 ipx_print(ndo, p, length);
477 if (ssap == LLCSAP_NETBEUI && dsap == LLCSAP_NETBEUI
478 @@ -322,12 +326,13 @@ llc_print(netdissect_options *ndo, const
482 +#ifndef TCPDUMP_MINI
483 if (ssap == LLCSAP_ISONS && dsap == LLCSAP_ISONS
484 && control == LLC_UI) {
485 isoclns_print(ndo, p, length);
490 if (!ndo->ndo_eflag) {
492 if (src == NULL || dst == NULL)
493 @@ -480,6 +485,7 @@ snap_print(netdissect_options *ndo, cons
497 +#ifndef TCPDUMP_MINI
499 cdp_print(ndo, p, length, caplen);
501 @@ -492,6 +498,7 @@ snap_print(netdissect_options *ndo, cons
503 vtp_print(ndo, p, length);
507 case PID_CISCO_VLANBRIDGE:
508 stp_print(ndo, p, length);
509 @@ -504,6 +511,7 @@ snap_print(netdissect_options *ndo, cons
513 +#ifndef TCPDUMP_MINI
514 case PID_RFC2684_ETH_FCS:
515 case PID_RFC2684_ETH_NOFCS:
517 @@ -565,6 +573,7 @@ snap_print(netdissect_options *ndo, cons
519 fddi_print(ndo, p, length, caplen);
523 case PID_RFC2684_BPDU:
524 stp_print(ndo, p, length);
527 @@ -116,6 +116,7 @@ null_if_print(netdissect_options *ndo, c
528 ip6_print(ndo, p, length);
531 +#ifndef TCPDUMP_MINI
533 isoclns_print(ndo, p, length);
535 @@ -127,6 +128,7 @@ null_if_print(netdissect_options *ndo, c
537 ipx_print(ndo, p, length);
542 /* unknown AF_ value */
545 @@ -1367,6 +1367,7 @@ trunc:
549 +#ifndef TCPDUMP_MINI
551 ppp_hdlc(netdissect_options *ndo,
552 const u_char *p, int length)
553 @@ -1445,6 +1446,7 @@ trunc:
555 ND_PRINT((ndo, "[|ppp]"));
561 @@ -1452,10 +1454,12 @@ static void
562 handle_ppp(netdissect_options *ndo,
563 u_int proto, const u_char *p, int length)
565 +#ifndef TCPDUMP_MINI
566 if ((proto & 0xff00) == 0x7e00) { /* is this an escape code ? */
567 ppp_hdlc(ndo, p - 1, length);
573 case PPP_LCP: /* fall through */
574 @@ -1488,6 +1492,7 @@ handle_ppp(netdissect_options *ndo,
576 ip6_print(ndo, p, length);
578 +#ifndef TCPDUMP_MINI
579 case ETHERTYPE_IPX: /*XXX*/
581 ipx_print(ndo, p, length);
582 @@ -1499,6 +1504,7 @@ handle_ppp(netdissect_options *ndo,
584 mpls_print(ndo, p, length);
588 ND_PRINT((ndo, "compressed PPP data"));
590 @@ -1639,6 +1645,7 @@ ppp_if_print(netdissect_options *ndo,
594 +#ifndef TCPDUMP_MINI
596 * PPP I/F printer to use if we know that RFC 1662-style PPP in HDLC-like
597 * framing, or Cisco PPP with HDLC framing as per section 4.3.1 of RFC 1547,
598 @@ -1866,6 +1873,7 @@ printx:
599 #endif /* __bsdi__ */
608 @@ -238,12 +238,14 @@ recurse:
610 switch (ether_type) {
612 +#ifndef TCPDUMP_MINI
613 case LINUX_SLL_P_802_3:
615 * Ethernet_802.3 IPX frame.
617 ipx_print(ndo, p, length);
621 case LINUX_SLL_P_802_2:
625 @@ -589,12 +589,14 @@ tcp_print(netdissect_options *ndo,
626 ND_PRINT((ndo, " %u", utoval));
629 +#ifndef TCPDUMP_MINI
633 if (!mptcp_print(ndo, cp-2, len, flags))
638 case TCPOPT_FASTOPEN:
640 @@ -670,6 +672,7 @@ tcp_print(netdissect_options *ndo,
644 +#ifndef TCPDUMP_MINI
645 if (ndo->ndo_packettype) {
646 switch (ndo->ndo_packettype) {
648 @@ -681,28 +684,36 @@ tcp_print(netdissect_options *ndo,
654 if (IS_SRC_OR_DST_PORT(TELNET_PORT)) {
655 telnet_print(ndo, bp, length);
656 } else if (IS_SRC_OR_DST_PORT(SMTP_PORT)) {
657 ND_PRINT((ndo, ": "));
658 smtp_print(ndo, bp, length);
659 - } else if (IS_SRC_OR_DST_PORT(BGP_PORT))
661 +#ifndef TCPDUMP_MINI
662 + else if (IS_SRC_OR_DST_PORT(BGP_PORT))
663 bgp_print(ndo, bp, length);
665 else if (IS_SRC_OR_DST_PORT(PPTP_PORT))
667 +#ifndef TCPDUMP_MINI
668 else if (IS_SRC_OR_DST_PORT(REDIS_PORT))
669 resp_print(ndo, bp, length);
672 else if (IS_SRC_OR_DST_PORT(NETBIOS_SSN_PORT))
673 nbt_tcp_print(ndo, bp, length);
674 else if (IS_SRC_OR_DST_PORT(SMB_PORT))
675 smb_tcp_print(ndo, bp, length);
677 +#ifndef TCPDUMP_MINI
678 else if (IS_SRC_OR_DST_PORT(BEEP_PORT))
679 beep_print(ndo, bp, length);
680 else if (IS_SRC_OR_DST_PORT(OPENFLOW_PORT_OLD) || IS_SRC_OR_DST_PORT(OPENFLOW_PORT_IANA))
681 openflow_print(ndo, bp, length);
683 else if (IS_SRC_OR_DST_PORT(FTP_PORT)) {
684 ND_PRINT((ndo, ": "));
685 ftp_print(ndo, bp, length);
686 @@ -719,6 +730,7 @@ tcp_print(netdissect_options *ndo,
687 * XXX packet could be unaligned, it can go strange
689 ns_print(ndo, bp + 2, length - 2, 0);
690 +#ifndef TCPDUMP_MINI
691 } else if (IS_SRC_OR_DST_PORT(MSDP_PORT)) {
692 msdp_print(ndo, bp, length);
693 } else if (IS_SRC_OR_DST_PORT(RPKI_RTR_PORT)) {
694 @@ -726,6 +738,7 @@ tcp_print(netdissect_options *ndo,
696 else if (length > 0 && (IS_SRC_OR_DST_PORT(LDP_PORT))) {
697 ldp_print(ndo, bp, length);
700 else if ((IS_SRC_OR_DST_PORT(NFS_PORT)) &&
701 length >= 4 && ND_TTEST2(*bp, 4)) {
704 @@ -430,10 +430,12 @@ udp_print(netdissect_options *ndo, regis
705 vat_print(ndo, (const void *)(up + 1), up);
708 +#ifndef TCPDUMP_MINI
710 udpipaddr_print(ndo, ip, sport, dport);
711 wb_print(ndo, (const void *)(up + 1), length);
716 rp = (const struct sunrpc_msg *)(up + 1);
717 @@ -462,10 +464,12 @@ udp_print(netdissect_options *ndo, regis
718 snmp_print(ndo, (const u_char *)(up + 1), length);
721 +#ifndef TCPDUMP_MINI
723 udpipaddr_print(ndo, ip, sport, dport);
729 udpipaddr_print(ndo, ip, sport, dport);
730 @@ -483,6 +487,7 @@ udp_print(netdissect_options *ndo, regis
731 radius_print(ndo, cp, length);
734 +#ifndef TCPDUMP_MINI
736 udpipaddr_print(ndo, ip, sport, dport);
737 vxlan_print(ndo, (const u_char *)(up + 1), length);
738 @@ -497,6 +502,7 @@ udp_print(netdissect_options *ndo, regis
739 udpipaddr_print(ndo, ip, sport, dport);
740 lmp_print(ndo, cp, length);
746 @@ -574,31 +580,40 @@ udp_print(netdissect_options *ndo, regis
747 ns_print(ndo, (const u_char *)(up + 1), length, 0);
748 else if (IS_SRC_OR_DST_PORT(MULTICASTDNS_PORT))
749 ns_print(ndo, (const u_char *)(up + 1), length, 1);
750 +#ifndef TCPDUMP_MINI
751 else if (IS_SRC_OR_DST_PORT(TIMED_PORT))
752 timed_print(ndo, (const u_char *)(up + 1));
754 else if (IS_SRC_OR_DST_PORT(TFTP_PORT))
755 tftp_print(ndo, (const u_char *)(up + 1), length);
756 else if (IS_SRC_OR_DST_PORT(BOOTPC_PORT) || IS_SRC_OR_DST_PORT(BOOTPS_PORT))
757 bootp_print(ndo, (const u_char *)(up + 1), length);
758 +#ifndef TCPDUMP_MINI
759 else if (IS_SRC_OR_DST_PORT(RIP_PORT))
760 rip_print(ndo, (const u_char *)(up + 1), length);
762 else if (IS_SRC_OR_DST_PORT(AODV_PORT))
763 aodv_print(ndo, (const u_char *)(up + 1), length,
765 +#ifndef TCPDUMP_MINI
766 else if (IS_SRC_OR_DST_PORT(ISAKMP_PORT))
767 isakmp_print(ndo, (const u_char *)(up + 1), length, bp2);
769 else if (IS_SRC_OR_DST_PORT(ISAKMP_PORT_NATT))
770 isakmp_rfc3948_print(ndo, (const u_char *)(up + 1), length, bp2);
772 else if (IS_SRC_OR_DST_PORT(ISAKMP_PORT_USER1) || IS_SRC_OR_DST_PORT(ISAKMP_PORT_USER2))
773 isakmp_print(ndo, (const u_char *)(up + 1), length, bp2);
776 else if (IS_SRC_OR_DST_PORT(SNMP_PORT) || IS_SRC_OR_DST_PORT(SNMPTRAP_PORT))
777 snmp_print(ndo, (const u_char *)(up + 1), length);
778 else if (IS_SRC_OR_DST_PORT(NTP_PORT))
779 ntp_print(ndo, (const u_char *)(up + 1), length);
780 +#ifndef TCPDUMP_MINI
781 else if (IS_SRC_OR_DST_PORT(KERBEROS_PORT) || IS_SRC_OR_DST_PORT(KERBEROS_SEC_PORT))
782 krb_print(ndo, (const void *)(up + 1));
784 else if (IS_SRC_OR_DST_PORT(L2TP_PORT))
785 l2tp_print(ndo, (const u_char *)(up + 1), length);
787 @@ -609,6 +624,7 @@ udp_print(netdissect_options *ndo, regis
789 else if (dport == VAT_PORT)
790 vat_print(ndo, (const void *)(up + 1), up);
791 +#ifndef TCPDUMP_MINI
792 else if (IS_SRC_OR_DST_PORT(ZEPHYR_SRV_PORT) || IS_SRC_OR_DST_PORT(ZEPHYR_CLT_PORT))
793 zephyr_print(ndo, (const void *)(up + 1), length);
795 @@ -621,8 +637,11 @@ udp_print(netdissect_options *ndo, regis
796 (const u_char *) ip);
797 else if (IS_SRC_OR_DST_PORT(RIPNG_PORT))
798 ripng_print(ndo, (const u_char *)(up + 1), length);
801 else if (IS_SRC_OR_DST_PORT(DHCP6_SERV_PORT) || IS_SRC_OR_DST_PORT(DHCP6_CLI_PORT))
802 dhcp6_print(ndo, (const u_char *)(up + 1), length);
803 +#ifndef TCPDUMP_MINI
804 else if (IS_SRC_OR_DST_PORT(AHCP_PORT))
805 ahcp_print(ndo, (const u_char *)(up + 1), length);
806 else if (IS_SRC_OR_DST_PORT(BABEL_PORT) || IS_SRC_OR_DST_PORT(BABEL_PORT_OLD))
807 @@ -636,6 +655,7 @@ udp_print(netdissect_options *ndo, regis
808 wb_print(ndo, (const void *)(up + 1), length);
809 else if (IS_SRC_OR_DST_PORT(CISCO_AUTORP_PORT))
810 cisco_autorp_print(ndo, (const void *)(up + 1), length);
812 else if (IS_SRC_OR_DST_PORT(RADIUS_PORT) ||
813 IS_SRC_OR_DST_PORT(RADIUS_NEW_PORT) ||
814 IS_SRC_OR_DST_PORT(RADIUS_ACCOUNTING_PORT) ||
815 @@ -643,15 +663,18 @@ udp_print(netdissect_options *ndo, regis
816 IS_SRC_OR_DST_PORT(RADIUS_CISCO_COA_PORT) ||
817 IS_SRC_OR_DST_PORT(RADIUS_COA_PORT) )
818 radius_print(ndo, (const u_char *)(up+1), length);
819 +#ifndef TCPDUMP_MINI
820 else if (dport == HSRP_PORT)
821 hsrp_print(ndo, (const u_char *)(up + 1), length);
822 else if (IS_SRC_OR_DST_PORT(LWRES_PORT))
823 lwres_print(ndo, (const u_char *)(up + 1), length);
824 else if (IS_SRC_OR_DST_PORT(LDP_PORT))
825 ldp_print(ndo, (const u_char *)(up + 1), length);
827 else if (IS_SRC_OR_DST_PORT(OLSR_PORT))
828 olsr_print(ndo, (const u_char *)(up + 1), length,
829 (IP_V(ip) == 6) ? 1 : 0);
830 +#ifndef TCPDUMP_MINI
831 else if (IS_SRC_OR_DST_PORT(MPLS_LSP_PING_PORT))
832 lspping_print(ndo, (const u_char *)(up + 1), length);
833 else if (dport == BFD_CONTROL_PORT ||
834 @@ -669,10 +692,12 @@ udp_print(netdissect_options *ndo, regis
835 lwapp_control_print(ndo, (const u_char *)(up + 1), length, 0);
836 else if (IS_SRC_OR_DST_PORT(LWAPP_DATA_PORT))
837 lwapp_data_print(ndo, (const u_char *)(up + 1), length);
839 else if (IS_SRC_OR_DST_PORT(SIP_PORT))
840 sip_print(ndo, (const u_char *)(up + 1), length);
841 else if (IS_SRC_OR_DST_PORT(SYSLOG_PORT))
842 syslog_print(ndo, (const u_char *)(up + 1), length);
843 +#ifndef TCPDUMP_MINI
844 else if (IS_SRC_OR_DST_PORT(OTV_PORT))
845 otv_print(ndo, (const u_char *)(up + 1), length);
846 else if (IS_SRC_OR_DST_PORT(VXLAN_PORT))
847 @@ -689,7 +714,9 @@ udp_print(netdissect_options *ndo, regis
849 ND_PRINT((ndo, "kip "));
850 llap_print(ndo, cp, length);
856 ND_PRINT((ndo, "UDP, bad length %u > %u",