]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-tcp.c
patches from Andrew Tridgell <[email protected]> to add decoding of SMB packets
[tcpdump] / print-tcp.c
index 3a2af9c655f69bfb1bff05a8daa4fa3047a8c532..987f7ad6c327554b74fb78d67d5d294726b7a551 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-tcp.c,v 1.59 1999-11-21 09:37:02 fenner Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-tcp.c,v 1.60 1999-11-21 15:57:51 assar Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -108,6 +108,8 @@ struct tcp_seq_hash {
 static struct tcp_seq_hash tcp_seq_hash[TSEQ_HASHSIZE];
 
 
+#define NETBIOS_SSN_PORT 139
+
 void
 tcp_print(register const u_char *bp, register u_int length,
          register const u_char *bp2)
@@ -483,6 +485,8 @@ tcp_print(register const u_char *bp, register u_int length,
        bp += (tp->th_off * 4);
        if (sport == 179 || dport == 179)
                bgp_print(bp, length);
+       if (sport == NETBIOS_SSN_PORT || dport == NETBIOS_SSN_PORT)
+               nbt_tcp_print(bp, length);
        return;
 bad:
        fputs("[bad opt]", stdout);