]> The Tcpdump Group git mirrors - tcpdump/commitdiff
The BXXP protocol was replaced by the BEEP protocol; replace the BXXP
authorguy <guy>
Mon, 10 Dec 2001 08:21:22 +0000 (08:21 +0000)
committerguy <guy>
Mon, 10 Dec 2001 08:21:22 +0000 (08:21 +0000)
dissector with a BEEP dissector.

FILES
Makefile.in
interface.h
print-beep.c [moved from print-bxxp.c with 63% similarity]
print-tcp.c

diff --git a/FILES b/FILES
index a6ef49254ff1e084953dbd260e19d37931eae694..3b4f3d42ad2b328c80229619e617de8b547ca5c4 100644 (file)
--- a/FILES
+++ b/FILES
@@ -88,7 +88,7 @@ print-atalk.c
 print-atm.c
 print-bgp.c
 print-bootp.c
-print-bxxp.c
+print-beep.c
 print-cdp.c
 print-chdlc.c
 print-cip.c
index 0f0e9f2502e3bc3662c827cf5483d848f22c655f..2cb6924a756b3123bbff7c8cc9e9de0c5e7c8e07 100644 (file)
@@ -17,7 +17,7 @@
 #  WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
 #  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 #
-# @(#) $Header: /tcpdump/master/tcpdump/Makefile.in,v 1.259 2001-10-08 21:25:15 fenner Exp $ (LBL)
+# @(#) $Header: /tcpdump/master/tcpdump/Makefile.in,v 1.260 2001-12-10 08:21:23 guy Exp $ (LBL)
 
 #
 # Various configurable paths (remember to edit Makefile.in, not Makefile)
@@ -68,7 +68,7 @@ INSTALL_DATA = @INSTALL_DATA@
 CSRC = addrtoname.c gmt2local.c machdep.c parsenfsfh.c \
        print-802_11.c print-ah.c print-arcnet.c print-arp.c \
        print-ascii.c print-atalk.c print-atm.c print-bgp.c \
-       print-bootp.c print-bxxp.c print-cdp.c print-chdlc.c \
+       print-bootp.c print-beep.c print-cdp.c print-chdlc.c \
        print-cip.c print-cnfp.c print-decnet.c print-domain.c \
        print-dvmrp.c print-egp.c print-esp.c print-ether.c \
        print-fddi.c print-gre.c print-hsrp.c print-icmp.c \
index 27489e0d12ad63b538502aae464268c36c351c9b..6ad68a8d8fd591d4a3fbb6e3ea8a01e3913a4a18 100644 (file)
@@ -18,7 +18,7 @@
  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- * @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.176 2001-11-25 01:48:47 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.177 2001-12-10 08:21:23 guy Exp $ (LBL)
  */
 
 #ifndef tcpdump_interface_h
@@ -195,7 +195,7 @@ extern void atalk_print(const u_char *, u_int);
 extern void atm_if_print(u_char *, const struct pcap_pkthdr *, const u_char *);
 extern void bootp_print(const u_char *, u_int, u_short, u_short);
 extern void bgp_print(const u_char *, int);
-extern void bxxp_print(const u_char *, u_int);
+extern void beep_print(const u_char *, u_int);
 extern void cnfp_print(const u_char *, u_int, const u_char *);
 extern void decnet_print(const u_char *, u_int, u_int);
 extern void default_print(const u_char *, u_int);
similarity index 63%
rename from print-bxxp.c
rename to print-beep.c
index 4067f3d300a62da2fee4c297faf148076a0e1763..dd9cadcff0ab2423e287d394f3cadb5352a953ce 100644 (file)
@@ -5,13 +5,13 @@
  * BSD-style licence that accompanies tcpdump or under the GNU GPL 
  * version 2 or later.
  *
- * print-bxxp.c
+ * print-beep.c
  *
  */
 
 #ifndef lint
 static const char rcsid[] =
-  "@(#) $Header: /tcpdump/master/tcpdump/Attic/print-bxxp.c,v 1.5 2001-09-17 21:57:56 fenner Exp $";
+  "@(#) $Header: /tcpdump/master/tcpdump/print-beep.c,v 1.1 2001-12-10 08:21:24 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -51,17 +51,23 @@ l_strnstart(const char *tstr1, u_int tl1, const char *str2, u_int l2)
 }
 
 void
-bxxp_print(const u_char *bp, u_int length)
+beep_print(const u_char *bp, u_int length)
 {
 
-       if (l_strnstart("REQ ", 4, bp, length)) /* A REQuest */
-               printf(" BXXP REQ");
-       else if (l_strnstart("RSP ", 4, bp, length))
-               printf(" BXXP RSP");
+       if (l_strnstart("MSG", 4, bp, length)) /* A REQuest */
+               printf(" BEEP MSG");
+       else if (l_strnstart("RPY ", 4, bp, length))
+               printf(" BEEP RPY");
+       else if (l_strnstart("ERR ", 4, bp, length))
+               printf(" BEEP ERR");
+       else if (l_strnstart("ANS ", 4, bp, length))
+               printf(" BEEP ANS");
+       else if (l_strnstart("NUL ", 4, bp, length))
+               printf(" BEEP NUL");
        else if (l_strnstart("SEQ ", 4, bp, length))
-               printf(" BXXP SEQ");
+               printf(" BEEP SEQ");
        else if (l_strnstart("END", 4, bp, length))
-               printf(" BXXP END");
+               printf(" BEEP END");
        else 
-               printf(" BXXP (payload or undecoded)");
+               printf(" BEEP (payload or undecoded)");
 }
index 2b50b5d141346ae6b30ae06e36653fb7d72aebf2..cd1299d9947e8a70775b4af4dcbef79fed2484ad 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-tcp.c,v 1.94 2001-11-16 08:59:22 itojun Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-tcp.c,v 1.95 2001-12-10 08:21:24 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -95,7 +95,7 @@ static struct tcp_seq_hash tcp_seq_hash[TSEQ_HASHSIZE];
 #ifndef PPTP_PORT
 #define PPTP_PORT      1723
 #endif
-#define BXXP_PORT        10288
+#define BEEP_PORT        10288
 #ifndef NFS_PORT
 #define NFS_PORT       2049
 #endif
@@ -603,8 +603,8 @@ tcp_print(register const u_char *bp, register u_int length,
                else if (sport == NETBIOS_SSN_PORT || dport == NETBIOS_SSN_PORT)
                        nbt_tcp_print(bp, length);
 #endif
-               else if (sport == BXXP_PORT || dport == BXXP_PORT)
-                       bxxp_print(bp, length);
+               else if (sport == BEEP_PORT || dport == BEEP_PORT)
+                       beep_print(bp, length);
                else if (length > 2 &&
                    (sport == NAMESERVER_PORT || dport == NAMESERVER_PORT)) {
                        /*