Ethereal-dev: [Ethereal-dev] support for draft-ietf-idr-cease-subcode-02, minor fixes
hi,
attached a patch that fixes/adds:
- a typo
- correctly hooks-in capability notification subcodes
in the *bgpnotify_minor[] array
- support for draft-ietf-idr-cease-subcode-02
/hannes
Index: packet-bgp.c
===================================================================
RCS file: /cvsroot/ethereal/packet-bgp.c,v
retrieving revision 1.80
diff -u -r1.80 packet-bgp.c
--- packet-bgp.c 20 May 2003 03:01:21 -0000 1.80
+++ packet-bgp.c 28 May 2003 09:27:43 -0000
@@ -117,16 +117,35 @@
{ 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[] = {