aboutsummaryrefslogtreecommitdiffstats
path: root/packet-bgp.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-04-05 11:20:54 +0000
committerGuy Harris <guy@alum.mit.edu>2003-04-05 11:20:54 +0000
commit37de5150f201b193ee44ee6f67d3ca3cc69e05b3 (patch)
tree2fd3338d2b4b5de8cbd67e8b2fd7992f49e48482 /packet-bgp.h
parentdf476f915e3d9bf186b774f6b8f21486a0e0e11d (diff)
Separate the scan for the BGP header from the scan through the BGP
packets, and mark any stuff before the first BGP header as continuation data. Make the main loop for dissecting the BGP packets similar to the loop in "tcp_dissect_pdus()" (if "tcp_dissect_pdus()" took a starting offset as an argument, we could use it), so that it handles a BGP header split between TCP segments. svn path=/trunk/; revision=7405
Diffstat (limited to 'packet-bgp.h')
-rw-r--r--packet-bgp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-bgp.h b/packet-bgp.h
index ba959663c2..90472ce456 100644
--- a/packet-bgp.h
+++ b/packet-bgp.h
@@ -1,7 +1,7 @@
/* packet-bgp.c
* Definitions for BGP packet disassembly structures and routine
*
- * $Id: packet-bgp.h,v 1.23 2003/01/28 05:25:16 guy Exp $
+ * $Id: packet-bgp.h,v 1.24 2003/04/05 11:20:54 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -27,8 +27,8 @@
/* some handy things to know */
#define BGP_MAX_PACKET_SIZE 4096
-#define BGP_MARKER_SIZE 16
-#define BGP_HEADER_SIZE 19
+#define BGP_MARKER_SIZE 16 /* size of BGP marker */
+#define BGP_HEADER_SIZE 19 /* size of BGP header, including marker */
#define BGP_MIN_OPEN_MSG_SIZE 29
#define BGP_MIN_UPDATE_MSG_SIZE 23
#define BGP_MIN_NOTIFICATION_MSG_SIZE 21