]> git.puffer.fish Git - matthieu/frr.git/commitdiff
[bgpd] remove unnecessary 0 entries from struct message's
authorPaul Jakma <paul.jakma@sun.com>
Thu, 13 Mar 2008 03:31:24 +0000 (03:31 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Thu, 13 Mar 2008 03:31:24 +0000 (03:31 +0000)
2008-03-13 Paul Jakma <paul.jakma@sun.com>

* (various) Remove 0 entries from struct message's, unneeded due to
  recent improvements in mes_lookup/LOOKUP.

bgpd/ChangeLog
bgpd/bgp_attr.c
bgpd/bgp_debug.c
bgpd/bgp_open.c

index 777801c324f5bdf2998044f0e1954df77f566ec3..f3b6a8c1873456a066f13a1a6e54c38ac214ee19 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-13 Paul Jakma <paul.jakma@sun.com>
+
+       * (various) Remove 0 entries from struct message's, unneeded due to
+         recent improvements in mes_lookup/LOOKUP.
+
 2008-01-29 Jorge Boncompte <jorge@dti2.net>
 
        * bgp_network.c: (bgp_socket) IPv4-only version crashes if -l is not
index dd3cc965a907902db2b0d12533afee45e60555cf..26f62f5af52d8fc5134d3efa780f7d1f14cf2842 100644 (file)
@@ -60,7 +60,6 @@ static struct message attr_str [] =
   { BGP_ATTR_AS4_PATH,         "AS4_PATH" }, 
   { BGP_ATTR_AS4_AGGREGATOR,   "AS4_AGGREGATOR" }, 
   { BGP_ATTR_AS_PATHLIMIT,     "AS_PATHLIMIT" },
-  { 0, NULL }
 };
 int attr_str_max = sizeof(attr_str)/sizeof(attr_str[0]);
 \f
index acb1de7facd54e744f88fd2024d3a2d63d976d1a..757b9cf81c9c43cdcbb15bc73a96ffb7bc7f3db0 100644 (file)
@@ -59,7 +59,6 @@ unsigned long term_bgp_debug_zebra;
 /* messages for BGP-4 status */
 struct message bgp_status_msg[] = 
 {
-  { 0, "null" },
   { Idle, "Idle" },
   { Connect, "Connect" },
   { Active, "Active" },
@@ -86,7 +85,6 @@ const char *bgp_type_str[] =
 /* message for BGP-4 Notify */
 struct message bgp_notify_msg[] = 
 {
-  { 0, "" },
   { BGP_NOTIFY_HEADER_ERR, "Message Header Error"},
   { BGP_NOTIFY_OPEN_ERR, "OPEN Message Error"},
   { BGP_NOTIFY_UPDATE_ERR, "UPDATE Message Error"},
@@ -99,7 +97,6 @@ int bgp_notify_msg_max = BGP_NOTIFY_MAX;
 
 struct message bgp_notify_head_msg[] = 
 {
-  { 0, "null"},
   { BGP_NOTIFY_HEADER_NOT_SYNC, "/Connection Not Synchronized"},
   { BGP_NOTIFY_HEADER_BAD_MESLEN, "/Bad Message Length"},
   { BGP_NOTIFY_HEADER_BAD_MESTYPE, "/Bad Message Type"}
@@ -108,7 +105,6 @@ int bgp_notify_head_msg_max = BGP_NOTIFY_HEADER_MAX;
 
 struct message bgp_notify_open_msg[] = 
 {
-  { 0, "null" },
   { BGP_NOTIFY_OPEN_UNSUP_VERSION, "/Unsupported Version Number" },
   { BGP_NOTIFY_OPEN_BAD_PEER_AS, "/Bad Peer AS"},
   { BGP_NOTIFY_OPEN_BAD_BGP_IDENT, "/Bad BGP Identifier"},
@@ -121,7 +117,6 @@ int bgp_notify_open_msg_max = BGP_NOTIFY_OPEN_MAX;
 
 struct message bgp_notify_update_msg[] = 
 {
-  { 0, "null"}, 
   { BGP_NOTIFY_UPDATE_MAL_ATTR, "/Malformed Attribute List"},
   { BGP_NOTIFY_UPDATE_UNREC_ATTR, "/Unrecognized Well-known Attribute"},
   { BGP_NOTIFY_UPDATE_MISS_ATTR, "/Missing Well-known Attribute"},
@@ -138,7 +133,6 @@ int bgp_notify_update_msg_max = BGP_NOTIFY_UPDATE_MAX;
 
 struct message bgp_notify_cease_msg[] =
 {
-  { 0, ""},
   { BGP_NOTIFY_CEASE_MAX_PREFIX, "/Maximum Number of Prefixes Reached"},
   { BGP_NOTIFY_CEASE_ADMIN_SHUTDOWN, "/Administratively Shutdown"},
   { BGP_NOTIFY_CEASE_PEER_UNCONFIG, "/Peer Unconfigured"},
@@ -152,7 +146,6 @@ int bgp_notify_cease_msg_max = BGP_NOTIFY_CEASE_MAX;
 
 struct message bgp_notify_capability_msg[] = 
 {
-  { 0, "null" },
   { BGP_NOTIFY_CAPABILITY_INVALID_ACTION, "/Invalid Action Value" },
   { BGP_NOTIFY_CAPABILITY_INVALID_LENGTH, "/Invalid Capability Length"},
   { BGP_NOTIFY_CAPABILITY_MALFORMED_CODE, "/Malformed Capability Value"},
index 1b13a458746e045adc17b88d64d3e5b1bb620116..84d8191eab76f9642c25cc4350481c960ae7f645 100644 (file)
@@ -443,7 +443,6 @@ bgp_capability_as4 (struct peer *peer, struct capability_header *hdr)
 
 static struct message capcode_str[] =
 {
-  { 0, ""},
   { CAPABILITY_CODE_MP,                        "MultiProtocol Extensions"      },
   { CAPABILITY_CODE_REFRESH,           "Route Refresh"                 },
   { CAPABILITY_CODE_ORF,               "Cooperative Route Filtering"   },