diff options
author | hasso <hasso> | 2005-02-01 22:01:48 +0000 |
---|---|---|
committer | hasso <hasso> | 2005-02-01 22:01:48 +0000 |
commit | c9502438e822199370fe87100c725e1092e943c1 (patch) | |
tree | bfeb6babd5d0ba6037ab2aa3a544b2d855e4e8d9 /bgpd/bgp_packet.c | |
parent | 3d515fd9af9f126667a9c2da9c2f40c4c37c28df (diff) |
* bgp_open.c, bgp_packet.c, bgp_vty.c, bgpd.[ch]: Remove "no neighbor
capability route-refresh" commands. Route refresh capability is sent
anyway now. Preserve dummy deprecated commands.
[merge from GNU Zebra]
Diffstat (limited to 'bgpd/bgp_packet.c')
-rw-r--r-- | bgpd/bgp_packet.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 04e5bd30..854b32cd 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -1037,22 +1037,6 @@ bgp_capability_send (struct peer *peer, afi_t afi, safi_t safi, "Advertising" : "Removing", afi, safi); } - /* Encode Route Refresh capability. */ - if (capability_code == CAPABILITY_CODE_REFRESH) - { - stream_putc (s, action); - stream_putc (s, CAPABILITY_CODE_REFRESH); - stream_putc (s, CAPABILITY_CODE_REFRESH_LEN); - stream_putc (s, action); - stream_putc (s, CAPABILITY_CODE_REFRESH_OLD); - stream_putc (s, CAPABILITY_CODE_REFRESH_LEN); - - if (BGP_DEBUG (normal, NORMAL)) - zlog_debug ("%s sending CAPABILITY has %s ROUTE-REFRESH capability", - peer->host, action == CAPABILITY_ACTION_SET ? - "Advertising" : "Removing"); - } - /* Set packet size. */ length = bgp_packet_set_size (s); @@ -2025,42 +2009,6 @@ bgp_capability_msg_parse (struct peer *peer, u_char *pnt, bgp_size_t length) } } } - else if (cap.code == CAPABILITY_CODE_REFRESH - || cap.code == CAPABILITY_CODE_REFRESH_OLD) - { - /* Check length. */ - if (cap.length != 0) - { - zlog_info ("%s Route Refresh Capability length error %d", - peer->host, cap.length); - bgp_notify_send (peer, BGP_NOTIFY_CEASE, 0); - return -1; - } - - if (BGP_DEBUG (normal, NORMAL)) - zlog_debug ("%s CAPABILITY has %s ROUTE-REFRESH capability(%s) for all address-families", - peer->host, - action == CAPABILITY_ACTION_SET - ? "Advertising" : "Removing", - cap.code == CAPABILITY_CODE_REFRESH_OLD - ? "old" : "new"); - - /* BGP refresh capability */ - if (action == CAPABILITY_ACTION_SET) - { - if (cap.code == CAPABILITY_CODE_REFRESH_OLD) - SET_FLAG (peer->cap, PEER_CAP_REFRESH_OLD_RCV); - else - SET_FLAG (peer->cap, PEER_CAP_REFRESH_NEW_RCV); - } - else - { - if (cap.code == CAPABILITY_CODE_REFRESH_OLD) - UNSET_FLAG (peer->cap, PEER_CAP_REFRESH_OLD_RCV); - else - UNSET_FLAG (peer->cap, PEER_CAP_REFRESH_NEW_RCV); - } - } else { zlog_warn ("%s unrecognized capability code: %d - ignored", |