Support for Cisco-proprietary capabilities in BGP, from

<bgp4news@yahoo.com>.

svn path=/trunk/; revision=3416
This commit is contained in:
Guy Harris 2001-05-16 18:52:37 +00:00
parent 4004d96518
commit a304fe6092
4 changed files with 15 additions and 2 deletions

View File

@ -625,6 +625,11 @@ Jean-Christian Pennetier <jeanchristian.pennetier@rd.francetelecom.fr> {
types
}
<bgp4news@yahoo.com> {
Support for Cisco-proprietary capabilities in BGP
Route-Refresh messages
}
Alain Magloire <alainm@rcsm.ece.mcgill.ca> was kind enough to
give his permission to use his version of snprintf.c.

View File

@ -1103,6 +1103,7 @@ B<http://www.ethereal.com>.
Scott Renfro <scott@renfro.org>
Juan Toledo <toledo@users.sourceforge.net>
Jean-Christian Pennetier <jeanchristian.pennetier@rd.francetelecom.fr>
(unknown) <bgp4news@yahoo.com>
Alain Magloire <alainm@rcsm.ece.mcgill.ca> was kind enough to give his
permission to use his version of snprintf.c.

View File

@ -2,7 +2,7 @@
* Routines for BGP packet dissection.
* Copyright 1999, Jun-ichiro itojun Hagino <itojun@itojun.org>
*
* $Id: packet-bgp.c,v 1.35 2001/04/23 18:19:02 guy Exp $
* $Id: packet-bgp.c,v 1.36 2001/05/16 18:52:35 guy Exp $
*
* Supports:
* RFC1771 A Border Gateway Protocol 4 (BGP-4)
@ -72,6 +72,7 @@ static const value_string bgptypevals[] = {
{ BGP_NOTIFICATION, "NOTIFICATION Message" },
{ BGP_KEEPALIVE, "KEEPALIVE Message" },
{ BGP_ROUTE_REFRESH, "ROUTE-REFRESH Message" },
{ BGP_ROUTE_REFRESH_CISCO, "Cisco ROUTE-REFRESH Message" },
{ 0, NULL },
};
@ -401,6 +402,7 @@ dissect_bgp_open(tvbuff_t *tvb, int offset, proto_tree *tree)
p++;
}
break;
case BGP_CAPABILITY_ROUTE_REFRESH_CISCO:
case BGP_CAPABILITY_ROUTE_REFRESH:
ti = proto_tree_add_text(subtree, tvb, p - 4,
2 + plen, "Route refresh capability (%u %s)", 2 + plen,
@ -1409,6 +1411,7 @@ dissect_bgp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
case BGP_KEEPALIVE:
bgp1_tree = proto_item_add_subtree(ti, ett_bgp);
break;
case BGP_ROUTE_REFRESH_CISCO:
case BGP_ROUTE_REFRESH:
bgp1_tree = proto_item_add_subtree(ti, ett_bgp_route_refresh);
break;
@ -1450,6 +1453,7 @@ dissect_bgp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
case BGP_KEEPALIVE:
/* no data in KEEPALIVE messages */
break;
case BGP_ROUTE_REFRESH_CISCO:
case BGP_ROUTE_REFRESH:
dissect_bgp_route_refresh(tvb, i, bgp1_tree);
break;

View File

@ -1,7 +1,7 @@
/* packet-bgp.c
* Definitions for BGP packet disassembly structures and routine
*
* $Id: packet-bgp.h,v 1.11 2001/04/17 21:25:13 guy Exp $
* $Id: packet-bgp.h,v 1.12 2001/05/16 18:52:36 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@ -41,6 +41,7 @@
#define BGP_NOTIFICATION 3
#define BGP_KEEPALIVE 4
#define BGP_ROUTE_REFRESH 5
#define BGP_ROUTE_REFRESH_CISCO 0x80
/* BGP header */
struct bgp {
@ -108,6 +109,8 @@ struct bgp_attr {
#define BGP_CAPABILITY_RESERVED 0 /* RFC2434 */
#define BGP_CAPABILITY_MULTIPROTOCOL 1 /* RFC2858 */
#define BGP_CAPABILITY_ROUTE_REFRESH 2 /* RFC2918 */
#define BGP_CAPABILITY_ROUTE_REFRESH_CISCO 0x80 /* Cisco */
/* well-known communities, from RFC1997 */
#define BGP_COMM_NO_EXPORT 0xFFFFFF01