diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-05-28 20:59:46 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-05-28 20:59:46 +0000 |
commit | a455f27db00b6a14383ebf1f1f92ceca5260785c (patch) | |
tree | d1a79d9e8b8370fc6a99557e631300703654e3f8 /packet-bgp.c | |
parent | 5ec3a96afa9e285582a1258bace6500a93e5de80 (diff) | |
download | wireshark-a455f27db00b6a14383ebf1f1f92ceca5260785c.tar.gz wireshark-a455f27db00b6a14383ebf1f1f92ceca5260785c.tar.bz2 wireshark-a455f27db00b6a14383ebf1f1f92ceca5260785c.zip |
From Hannes Gredler:
- fix a typo
- correctly hook-in capability notification subcodes
in the *bgpnotify_minor[] array
- add support for draft-ietf-idr-cease-subcode-02
svn path=/trunk/; revision=7756
Diffstat (limited to 'packet-bgp.c')
-rw-r--r-- | packet-bgp.c | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/packet-bgp.c b/packet-bgp.c index eb1dfc33a0..35a75bfc91 100644 --- a/packet-bgp.c +++ b/packet-bgp.c @@ -2,7 +2,7 @@ * Routines for BGP packet dissection. * Copyright 1999, Jun-ichiro itojun Hagino <itojun@itojun.org> * - * $Id: packet-bgp.c,v 1.80 2003/05/20 03:01:21 gerald Exp $ + * $Id: packet-bgp.c,v 1.81 2003/05/28 20:59:46 guy Exp $ * * Supports: * RFC1771 A Border Gateway Protocol 4 (BGP-4) @@ -117,16 +117,35 @@ static const value_string bgpnotify_minor_3[] = { { 0, NULL }, }; +/* draft-ietf-idr-cease-subcode-02 */ +static const value_string bgpnotify_minor_6[] = { + { 1, "Maximum Number of Prefixes Reached"}, + { 2, "Administratively Shutdown"}, + { 3, "Peer Unconfigured"}, + { 4, "Administratively Reset"}, + { 5, "Connection Rejected"}, + { 6, "Other Configuration Change"}, + { 7, "Connection Collision Resolution"}, + { 0, NULL}, +}; + static const value_string bgpnotify_minor_7[] = { { 1, "Invalid Action Value" }, { 2, "Invalid Capability Length" }, { 3, "Malformed Capability Value" }, - { 4, "Unsopported Capability Code" }, + { 4, "Unsupported Capability Code" }, { 0, NULL }, }; static const value_string *bgpnotify_minor[] = { - NULL, bgpnotify_minor_1, bgpnotify_minor_2, bgpnotify_minor_3, + NULL, + bgpnotify_minor_1, /* open */ + bgpnotify_minor_2, /* update */ + bgpnotify_minor_3, /* notification */ + NULL, /* hold-timer expired */ + NULL, /* FSM error */ + bgpnotify_minor_6, /* cease */ + bgpnotify_minor_7 /* capability */ }; static const value_string bgpattr_origin[] = { |