@@ -746,50 +746,58 @@ tcp_print(netdissect_options *ndo,
746
746
return ;
747
747
}
748
748
749
- if (IS_SRC_OR_DST_PORT (TELNET_PORT )) {
749
+ if (IS_SRC_OR_DST_PORT (FTP_PORT )) {
750
+ ND_PRINT (": " );
751
+ ftp_print (ndo , bp , length );
752
+ } else if (IS_SRC_OR_DST_PORT (SSH_PORT )) {
753
+ ssh_print (ndo , bp , length );
754
+ } else if (IS_SRC_OR_DST_PORT (TELNET_PORT )) {
750
755
telnet_print (ndo , bp , length );
751
756
} else if (IS_SRC_OR_DST_PORT (SMTP_PORT )) {
752
757
ND_PRINT (": " );
753
758
smtp_print (ndo , bp , length );
754
759
} else if (IS_SRC_OR_DST_PORT (WHOIS_PORT )) {
755
760
ND_PRINT (": " );
756
761
whois_print (ndo , bp , length );
757
- } else if (IS_SRC_OR_DST_PORT (BGP_PORT ))
758
- bgp_print (ndo , bp , length );
759
- else if (IS_SRC_OR_DST_PORT (PPTP_PORT ))
760
- pptp_print (ndo , bp );
761
- else if (IS_SRC_OR_DST_PORT (REDIS_PORT ))
762
- resp_print (ndo , bp , length );
763
- else if (IS_SRC_OR_DST_PORT (SSH_PORT ))
764
- ssh_print (ndo , bp , length );
762
+ } else if (IS_SRC_OR_DST_PORT (NAMESERVER_PORT )) {
763
+ /* over_tcp: TRUE, is_mdns: FALSE */
764
+ domain_print (ndo , bp , length , TRUE, FALSE);
765
+ } else if (IS_SRC_OR_DST_PORT (HTTP_PORT )) {
766
+ ND_PRINT (": " );
767
+ http_print (ndo , bp , length );
765
768
#ifdef ENABLE_SMB
766
- else if (IS_SRC_OR_DST_PORT (NETBIOS_SSN_PORT ))
769
+ } else if (IS_SRC_OR_DST_PORT (NETBIOS_SSN_PORT )) {
767
770
nbt_tcp_print (ndo , bp , length );
768
- else if (IS_SRC_OR_DST_PORT (SMB_PORT ))
771
+ #endif
772
+ } else if (IS_SRC_OR_DST_PORT (BGP_PORT )) {
773
+ bgp_print (ndo , bp , length );
774
+ } else if (IS_SRC_OR_DST_PORT (RPKI_RTR_PORT )) {
775
+ rpki_rtr_print (ndo , bp , length );
776
+ #ifdef ENABLE_SMB
777
+ } else if (IS_SRC_OR_DST_PORT (SMB_PORT )) {
769
778
smb_tcp_print (ndo , bp , length );
770
779
#endif
780
+ } else if (IS_SRC_OR_DST_PORT (RTSP_PORT )) {
781
+ ND_PRINT (": " );
782
+ rtsp_print (ndo , bp , length );
783
+ } else if (IS_SRC_OR_DST_PORT (MSDP_PORT )) {
784
+ msdp_print (ndo , bp , length );
785
+ } else if (IS_SRC_OR_DST_PORT (LDP_PORT )) {
786
+ ldp_print (ndo , bp , length );
787
+ } else if (IS_SRC_OR_DST_PORT (PPTP_PORT ))
788
+ pptp_print (ndo , bp );
789
+ else if (IS_SRC_OR_DST_PORT (REDIS_PORT ))
790
+ resp_print (ndo , bp , length );
771
791
else if (IS_SRC_OR_DST_PORT (BEEP_PORT ))
772
792
beep_print (ndo , bp , length );
773
- else if (IS_SRC_OR_DST_PORT (OPENFLOW_PORT_OLD ) || IS_SRC_OR_DST_PORT (OPENFLOW_PORT_IANA ))
793
+ else if (IS_SRC_OR_DST_PORT (OPENFLOW_PORT_OLD ) || IS_SRC_OR_DST_PORT (OPENFLOW_PORT_IANA )) {
774
794
openflow_print (ndo , bp , length );
775
- else if (IS_SRC_OR_DST_PORT (FTP_PORT )) {
776
- ND_PRINT (": " );
777
- ftp_print (ndo , bp , length );
778
- } else if (IS_SRC_OR_DST_PORT (HTTP_PORT ) || IS_SRC_OR_DST_PORT (HTTP_PORT_ALT )) {
795
+ } else if (IS_SRC_OR_DST_PORT (HTTP_PORT_ALT )) {
779
796
ND_PRINT (": " );
780
797
http_print (ndo , bp , length );
781
- } else if (IS_SRC_OR_DST_PORT (RTSP_PORT ) || IS_SRC_OR_DST_PORT ( RTSP_PORT_ALT )) {
798
+ } else if (IS_SRC_OR_DST_PORT (RTSP_PORT_ALT )) {
782
799
ND_PRINT (": " );
783
800
rtsp_print (ndo , bp , length );
784
- } else if (IS_SRC_OR_DST_PORT (NAMESERVER_PORT )) {
785
- /* over_tcp: TRUE, is_mdns: FALSE */
786
- domain_print (ndo , bp , length , TRUE, FALSE);
787
- } else if (IS_SRC_OR_DST_PORT (MSDP_PORT )) {
788
- msdp_print (ndo , bp , length );
789
- } else if (IS_SRC_OR_DST_PORT (RPKI_RTR_PORT )) {
790
- rpki_rtr_print (ndo , bp , length );
791
- } else if (IS_SRC_OR_DST_PORT (LDP_PORT )) {
792
- ldp_print (ndo , bp , length );
793
801
} else if ((IS_SRC_OR_DST_PORT (NFS_PORT )) & &
794
802
length >= 4 ) {
795
803
/*
0 commit comments