blob: 2267e0fac517dbdd24cbf76eeadaf537867936d9 [file] [log] [blame]
Paul Jakma923de652007-04-29 18:25:17 +000012007-04-22 Sebastien Tandel <sebastien@tandel.be>
2
3 * bgp_advertise.c : (baa_hash_alloc, baa_hash_key, baa_hash_cmp)
4 conforms to quagga hash API. Defines _hash_[alloc|key|cmp] with
5 void * arguments as defined by the API.
6 * bgp_aspath.c,h : (aspath_key_make) conforms to quagga hash API.
7 Defines _hash_[alloc|key|cmp] with void * arguments as defined by
8 the API.
9 * bgp_attr.c,h : (cluster_hash_alloc, cluster_hash_key_make,
10 cluster_hash_cmp, transit_hash_alloc, transit_hash_key_make,
11 transit_hash_cmp, attrhash_key_make, attrhash_cmp,
12 bgp_attr_hash_alloc) conforms to quagga hash API. Defines
13 _hash_[alloc|key|cmp] with void * arguments as defined by the API.
14
Andrew J. Schorr93c17492007-04-15 19:17:24 +0000152007-04-15 Sebastien Tandel <sebastien@tandel.be>
16
17 * bgp_aspath.c: (aspath_as_add, aspath_segment_add) Minor performance
18 optimization: while loop should test one pointer instead of two.
19
Paul Jakma16d2e242007-04-10 19:32:10 +0000202007-04-08 Paul Jakma <paul.jakma@sun.com>
21
22 * bgp_route.c: (general) Same bug as fixed on 2006-11-28 by ajs for
23 bgp static routes, but for main BGP RIB: Quick 'flap' of routes
24 can cause bgpd to mistake a new route for a duplicate route,
25 due to presence of removed, but not yet processed BGP RIB entry.
26 (bgp_update_rsclient) Ignore REMOVED bgp_info for duplicate,
27 restore route instead.
28 (bgp_update_main) Ditto.
Paul Jakma6e4ab122007-04-10 19:36:48 +000029 * bgp_attr.c: (general) Bug #354: parsing of MP_REACH_NLRI and
30 MP_UNREACH_NLRI does not take sufficient care to ensure reads
31 from stream buffer stay in-bounds. Hence bgpd may attempt to read
32 beyond end of stream, if given a crafted packet. As it uses the
33 stream access methods to do so, this will typically result in
34 assert() being hit in stream.c. Where code is compiled without
35 assert() enabled, result is unknown.
36 (struct message attr_str) should be static.
37 (bgp_mp_reach_parse) Carefully check length remaining in stream
38 against amount desired to read from stream, prior to each read,
39 particularly where lengths are conditional on data obtained from
40 stream - using STREAM_READABLE.
41 Remove code to parse SNPA-number, it's a defunct field and changed
42 to a fixed size in latest BGP MP update RFC - log warning if
43 SNPA-number is not 0.
44 (bgp_mp_unreach_parse) Check withdraw_length carefully against
45 STREAM_READABLE.
46 (bgp_attr_parse) If attribute-parser function returns error, log
47 warning.
48 Log attribute type on mismatch.
Paul Jakma16d2e242007-04-10 19:32:10 +000049
Paul Jakma37a217a2007-04-10 19:20:29 +0000502007-04-07 Paul Jakma <paul.jakma@sun.com>
51
52 * bgpd.c: (general) Fix bug #352
53 (bgp_config_write_family_header) write ipv6/multicast
54 address family header.
55 (bgp_config_write) write out ipv6 multicast AF config.
56
Paul Jakmaf2c31ac2007-02-22 17:48:42 +0000572007-02-22 Paul Jakma <paul.jakma@sun.com>
58
59 * bgp_fsm.c: (bgp_fsm_change_status) Handle state change into
60 clearing or greater here. Simpler.
61 (bgp_event) Clearing state change work moved to previous
62 * bgp_route.c: (bgp_clear_route_node) Clearing adj-in here
63 is too late, as it leaves a race between a peer being deleted
64 and an identical peer being configured before clearing
65 completes, leading to a crash.
66 Simplest fix is to clean peers Adj-in up-front, rather than
67 queueing such work.
68 (bgp_clear_route_table) Clear peer's Adj-In and Adj-Out
69 up-front here, rather than queueing such work.
70 Extensive comment added on the various bits of indexed data
71 that exist and how they need to be dealt with.
72 (bgp_clear_route) Update comment.
73
Andrew J. Schorre4529632006-12-12 19:18:21 +0000742006-12-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
75
76 * bgp_nexthop.c: (bgp_connected_add, bgp_connected_delete)
77 Simplify logic by using new CONNECTED_PREFIX macro.
78
Paul Jakma95fdcd82006-12-08 00:31:22 +0000792006-12-07 Paul Jakma <paul.jakma@sun.com>
80
81 * bgp_fsm.c: Bug #302 fix, diagnosis, suggestions and testing
82 by Juergen Kammer <j.kammer@eurodata.de>. Fix follows from
83 his suggested fix, just made in a slightly different way.
84 (bgp_event) Transitions into Clearing always must call
85 bgp_clear_route_all().
86 (bgp_stop) No need to clear routes here, BGP FSM should do
87 it.
88
Andrew J. Schorra39275d2006-11-30 16:36:57 +0000892006-11-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
90
91 * bgp_debug.h: Declare new bgp_debug_zebra conf and term flags,
92 and define BGP_DEBUG_ZEBRA.
93 * bgp_debug.c: Declare conf_bgp_debug_zebra and term_bgp_debug_zebra.
94 (debug_bgp_zebra, no_debug_bgp_zebra, undebug_bgp_zebra) New
95 functions to enable/disable bgp zebra debugging.
96 (no_debug_bgp_all) Turn off zebra debugging.
97 (show_debugging_bgp) Show whether zebra debugging is on.
98 (bgp_config_write_debug) Add 'debug bgp zebra' if configured.
99 (bgp_debug_init) Add new zebra debugging commands.
100 * bgp_zebra.c: (bgp_router_id_update, bgp_interface_add,
101 bgp_interface_delete, bgp_interface_up, bgp_interface_down,
102 bgp_interface_address_add, bgp_interface_address_delete,
103 zebra_read_ipv4, zebra_read_ipv6, bgp_zebra_announce,
104 bgp_zebra_withdraw, bgp_redistribute_set, bgp_redistribute_unset)
105 If zebra debugging is enabled, log an appropriate debug message.
106
Andrew J. Schorr8d452102006-11-28 19:50:46 +00001072006-11-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
108
109 * bgp_route.c: (bgp_info_restore) New function that undoes
110 the effects of a previous call to bgp_info_delete. This is
111 used when a route is deleted and quickly re-added before the
112 deletion has been processed.
113 (bgp_static_update_rsclient, bgp_static_update_main,
114 bgp_redistribute_add) Check whether a pre-existing route
115 has the BGP_INFO_REMOVED set, and, if so, we need to call
116 bgp_info_restore to resurrect it.
117
Paul Jakma56395af2006-10-27 16:58:20 +00001182006-10-27 Paul Jakma <paul.jakma@sun.com>
119
120 * bgp_route.c: (bgp_table_stats) oops, u_intXX_t should be
121 uintXX_t
122
Paul Jakma6f585442006-10-22 19:13:07 +00001232006-10-19 Paul Jakma <paul.jakma@sun.com>
124
125 * bgpd.c: (peer_new) bgp element of peer absolutely must be
126 filled in, make peer_new() require it as argument and update
127 all callers. Fixes a crash reported by Jan 'yanek' Bortl and
128 Andrew Schorr where bgpd would crash in bgp_pcount_adjust
129 trying to dereference the bgp member of bgp->peer_self,
130 triggered through redistribution.
131 * bgp_route.c: (bgp_pcount_adjust) assert sanity of arguments.
132
Paul Jakma53d9f672006-10-15 23:41:16 +00001332006-10-15 Paul Jakma <paul.jakma@sun.com>
134
135 * bgp_route.c: (bgp_table_stats_walker) NULL deref if table is
136 empty, bgp_table_top may return NULL, Coverity CID#73.
Paul Jakmaed3ebfa2006-10-15 23:50:16 +0000137 * bgp_packet.c: (bgp_update_packet) adv->rn can not be NULL,
138 check is bogus - changed to assert(), CID#64.
139 binfo is checked for NULL, but then dereferenced
140 unconditionally, fix, CID #63.
141 (bgp_withdraw_packet) Assert adv->rn is valid, as with
142 bgp_update_packet().
Paul Jakma53d9f672006-10-15 23:41:16 +0000143
Paul Jakmadcdf3992006-10-15 23:39:59 +00001442006-10-14 Paul Jakma <paul.jakma@sun.com>
145
146 * bgp_fsm.h: Remove BGP_EVENT_FLUSH_ADD, dangerous and not
147 needed.
148 * bgp_fsm.c: (bgp_stop) Move BGP_EVENT_FLUSH to the top of the
149 of the function, otherwise it could flush a ClearingCompleted
150 event, bug #302.
151 * bgp_packet.c: Replace all BGP_EVENT_FLUSH_ADD with
152 BGP_EVENT_ADD, fixing bug #302.
153
Andrew J. Schorr0cd1c322006-09-19 18:51:53 +00001542006-09-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
155
156 * bgpd.c: (peer_uptime) Fix printf format/arg mismatch in
157 zlog_warn message (%ld/size_t -> %lu/u_long).
158
Paul Jakmaca058a32006-09-14 02:58:49 +00001592006-09-14 Paul Jakma <paul.jakma@sun.com>
160
Paul Jakma8383a9b2006-09-14 03:06:54 +0000161 * bgp_route.c: (bgp_table_stats_walker) Address space announced
162 should only count top-level unaggregateable prefixes, to
163 avoid falling afoul of anti-dodgy-accounting regulations
164 in various jurisdictions.. ;)
Paul Jakma09dd5612006-09-14 03:38:16 +0000165 (bgp_process_queue_init) process queue hold time too high,
166 adds extra memory load. Change to be much lower, until such
167 time as it's made configurable.
Paul Jakma8383a9b2006-09-14 03:06:54 +0000168
1692006-09-14 Paul Jakma <paul.jakma@sun.com>
170
Paul Jakma9fde6622006-09-14 03:02:02 +0000171 * (general) fix the peer refcount issue exposed by previous, by
172 just removing refcounting of peer threads, which is mostly
173 senseless as they're references leading from struct peer,
174 which peer_free cancels anyway. No need to muck around..
175 * bgp_fsm.h: Just remove the refcounting from the various
176 TIMER/READ/WRITE/EVENT ON/OFF/ADD macros.
177 * bgp_fsm.c: (bgp_stop) use BGP_EVENT_FLUSH, no refcounts attached
178 to events anymore.
179 (bgp_event) remove peer_unlock, events not refcounted.
180 * bgpd.c: (peer_free) flush events before free.
181
1822006-09-14 Paul Jakma <paul.jakma@sun.com>
183
Paul Jakmaca058a32006-09-14 02:58:49 +0000184 * (general) Fix some niggly issues around 'shutdown' and clearing
185 by adding a Clearing FSM wait-state and a hidden 'Deleted'
186 FSM state, to allow deleted peers to 'cool off' and hit 0
187 references. This introduces a slow memory leak of struct peer,
188 however that's more a testament to the fragility of the
189 reference counting than a bug in this patch, cleanup of
190 reference counting to fix this is to follow.
191 * bgpd.h: Add Clearing, Deleted states and Clearing_Completed
192 and event.
193 * bgp_debug.c: (bgp_status_msg[]) Add strings for Clearing and
194 Deleted.
195 * bgp_fsm.h: Don't allow timer/event threads to set anything
196 for Deleted peers.
197 * bgp_fsm.c: (bgp_timer_set) Add Clearing and Deleted. Deleted
198 needs to stop everything.
199 (bgp_stop) Remove explicit fsm_change_status call, the
200 general framework handles the transition.
201 (bgp_start) Log a warning if a start is attempted on a peer
202 that should stay down, trying to start a peer.
203 (struct .. FSM) Add Clearing_Completed
204 events, has little influence except when in state
205 Clearing to signal wait-state can end.
206 Add Clearing and Deleted states, former is a wait-state,
207 latter is a placeholder state to allow peers to disappear
208 quietly once refcounts settle.
209 (bgp_event) Try reduce verbosity of FSM state-change debug,
210 changes to same state are not interesting (Established->Established)
211 Allow NULL action functions in FSM.
212 * bgp_packet.c: (bgp_write) Use FSM events, rather than trying
213 to twiddle directly with FSM state behind the back of FSM.
214 (bgp_write_notify) ditto.
215 (bgp_read) Remove the vague ACCEPT_PEER peer_unlock, or else
216 this patch crashes, now it leaks instead.
217 * bgp_route.c: (bgp_clear_node_complete) Clearing_Completed
218 event, to end clearing.
219 (bgp_clear_route) See extensive comments.
220 * bgpd.c: (peer_free) should only be called while in Deleted,
221 peer refcounting controls when peer_free is called.
222 bgp_sync_delete should be here, not in peer_delete.
223 (peer_delete) Initiate delete.
224 Transition to Deleted state manually.
225 When removing peer from indices that provide visibility of it,
226 take great care to be idempotent wrt the reference counting
227 of struct peer through those indices.
228 Use bgp_timer_set, rather than replicating.
229 Call to bgp_sync_delete isn't appropriate here, sync can be
230 referenced while shutting down and finishing deletion.
231 (peer_group_bind) Take care to be idempotent wrt list references
232 indexing peers.
233
Paul Jakma2815e612006-09-14 02:56:07 +00002342006-09-13 Paul Jakma <paul.jakma@sun.com>
235
236 * bgp_aspath.c: (aspath_highest) new, return highest ASN in an
237 aspath.
238 * bgp_route.c: (bgp_peer_count_walker) new, do the walk done
239 in bgp_peer_counts as a thread.
240 (bgp_peer_counts) move walk to previous and call it via
241 thread_execute so this RIB walk shows up in thread stats.
242 (bgp_table_stats) New, gather some statistics for a given
243 RIB.
244 (bgp_table_stats_walker) New, RIB walker thread for former.
245 (bgp_table_stats_vty) Parsing front-end for 'show bgp ...',
246 useful model for future rationalisation of 'show ... bgp'.
247 (bgp_route_init) Add new RIB stats commands.
248
Paul Jakma1a392d42006-09-07 00:24:49 +00002492006-09-06 Paul Jakma <paul.jakma@sun.com>
250
251 * (general) Squash any and all prefix-count issues by
252 abstracting route flag changes, and maintaining count as and
253 when flags are modified (rather than relying on explicit
254 modifications of count being sprinkled in just the right
255 places throughout the code).
256 * bgp_route.c: (bgp_pcount_{dec,inc}rement) removed.
257 (bgp_pcount_adjust) new, update prefix count as
258 needed for a given route.
259 (bgp_info_{uns,s}et_flag) set/unset a BGP_INFO route status
260 flag, calling previous function when appropriate.
261 (general) Update all set/unsets of flags to use previous.
262 Remove pcount_{dec,inc}rement calls.
263 No need to unset BGP_INFO_VALID in places where
264 bgp_info_delete is called, it does that anyway.
265 * bgp_{damp,nexthop}.c: Update to use bgp_info_{un,}set_flag.
266 * bgp_route.h: Export bgp_info_{un,}set_flag.
267 Add a 'meta' BGP_INFO flag, BGP_INFO_UNUSEABLE.
268 Move BGP_INFO_HOLDDOWN macro to here from bgpd.h
269
Paul Jakmaff7924f2006-09-04 01:10:36 +00002702006-09-03 Paul Jakma <paul.jakma@sun.com>
271
272 * bgp_route.c: Add 'show ... bgp ... <neighbour> prefix-count'
273 commands, to provide detailed counts of prefixes for a peer.
274 Informative, and should help pin down to pfxcnt drift
275 problems.
276
Paul Jakma9f906c72006-08-27 06:57:47 +00002772006-08-27 Paul Jakma <paul.jakma@sun.com>
278
279 * bgp_advertise.c: (bgp_sync_delete) fix mtype in XFREE.
280 NULL out peer->hash after free, to be sure.
281
Paul Jakma1f742f22006-08-06 15:52:11 +00002822006-08-06 Paul Jakma <paul.jakma@sun.com>
283
284 * bgp_aspath.c: (aspath_loop_check) Fix the typo-bug which
285 essentially had disabled this check. Problem reported by
286 Bartek Kania <mrbk@gnarf.org> in [quagga-users 7388].
287
Paul Jakma18937402006-07-27 19:05:12 +00002882006-07-27 Paul Jakma <paul.jakma@sun.com>
289
290 * bgpd.c: (peer_delete) Ensure freed buffers can not be
291 accidently reused. A potential fix for bug #287.
292
Paul Jakma33d5ab92006-07-02 11:01:50 +00002932006-07-02 Paul Jakma <paul.jakma@sun.com>
294
295 * bgp_fsm.c: (bgp_{stop,start}) Move clear/free of certain
296 bits of state from stop to start, as they may be used via
297 peer references on clearing queues..
298
Paul Jakma369688c2006-05-23 22:27:55 +00002992006-05-23 Paul Jakma <paul.jakma@sun.com>
300
301 * bgp_vty.c: (neighbor_update_source_cmd) Expand tab completion
302 to make it clear it takes both address and ifname.
303
Paul Jakma34c3f812006-05-12 23:25:37 +00003042006-05-12 Paul Jakma <paul.jakma@sun.com>
305
306 * bgp_attr.c: (bgp_packet_attribute) Remove dead code, Coverity
307 CID #1
Paul Jakmab2518c12006-05-12 23:48:40 +0000308 * bgp_aspath.{c,h}: (aspath_print_vty) take a format string,
309 so as to reduce burden on callers, all in bgp_route.c
Paul Jakmadd8103a2006-05-12 23:27:30 +0000310 * bgp_route.c: (bgp_static_update_main) Remove useless NULL
311 check, code already assumes bgp_static can not be NULL,
312 fixes CID #7.
Paul Jakma06e110f2006-05-12 23:29:22 +0000313 (bgp_static_update_rsclient) ditto, CID #6
Paul Jakmab2518c12006-05-12 23:48:40 +0000314 (route_vty_out{,tmp}) Update to match aspath_print_vty,
315 simplifying checks needed to get spacing right. CID #4,#5.
316 ({damp,flap}_route_vty_out) Ditto, CID #9, #10
Paul Jakma34c3f812006-05-12 23:25:37 +0000317
Paul Jakma542bcb72006-05-08 14:25:09 +00003182006-05-08 Paul Jakma <paul.jakma@sun.com>
319
320 * bgp_community.c: (community_str2com) Coverity CID#62, fix
321 double-free, use-after-free.
Paul Jakmada5b30f2006-05-08 14:37:17 +0000322 * bgp_route.c: (bgp_afi_node_get) given table should never be
323 NULL, check/assert this.
324 (bgp_static_update) Bug #240. Rsclients should only be passed
325 the static update if they are configured for the afi,safi.
Paul Jakma542bcb72006-05-08 14:25:09 +0000326
Paul Jakmaa3b6ea52006-05-04 07:52:12 +00003272006-05-04 Paul Jakma <paul.jakma@sun.com>
328
329 * (general) VPNv4 fixes. Certain VPNv4 code was not enabled.
330 See bug #210.
331 * bgp_attr.{c,h}: (bgp_packet_{withdraw,attribute}) Tag should be
332 u_char really.
333 * bgp_packet.c: (bgp_{update,withdraw}_packet) Enable some
334 VPNv4 code which inexplicably was ifdef'd out. comments from
335 a tester on IRC suggest this fixes bug #210.
Paul Jakma65ca75e2006-05-04 08:08:15 +0000336 * bgp_route.c: (general) Fix logical bug in clearing, noted
337 by Chris Caputo in [quagga-users 6728] - clearing depended on
338 at least one route being added to workqueue, in order for
339 workqueue completion function to restart FSM. However, if no
340 routes are cleared, then the completion function never is
341 called, it needs to be called manually if the workqueue
342 didn't get scheduled.
343 Finally, clearing is per-peer-session, not per AFI/SAFI, so
344 the FSM synchronisation should be in bgp_clear_route_table.
345 (bgp_clear_route_table) Wrong place for FSM/clearing
346 synchronisation, move to..
347 (bgp_clear_route) FSM/clearing synchronisation should be
348 here.
349 If no routes were cleared, no workqueue scheduled, call
350 the completion func to ensure FSM kicks off again.
Paul Jakmaa3b6ea52006-05-04 07:52:12 +0000351
Paul Jakma15aa6a12006-03-30 14:39:35 +00003522006-03-30 Paul Jakma <paul.jakma@sun.com>
353
354 * bgp_community.c: (community_gettoken) Unknown token should
355 return NULL, to give a strong indication to callers that
356 the token no longer can be parsed, otherwise callers looping
357 on this function may have a hard time ending their loop.
358 (community_str2com) While loop around community_gettoken appears
359 to have been coded thinking that break statement would break
360 from the while{}, hence it could never exit for unknown token
361 case. Fix it to do..while, so it can use the NULL result from
362 community_gettoken easily.
363
Paul Jakmaa625ca32006-03-30 14:12:38 +00003642006-03-22 Paul Jakma <paul.jakma@sun.com>
365
366 * bgpd.c: (peer_free) release the per-peer workqueue when
367 freeing the peer.
368
Paul Jakma5304cb52006-03-30 14:01:14 +00003692006-03-19 Paul Jakma <paul.jakma@sun.com>
370
Paul Jakma4bf6a362006-03-30 14:05:23 +0000371 * bgpd/bgp_vty.c: Add includes to get several structs we want
372 to provide usage statistics on.
373 (show_bgp_memory_cmd) Show memory usage stats for various
374 notable fixed size objects. Using mtype_stats_alloc and
375 mtype_memstr recently added to memory.c.
376 (bgp_show_summary) Report some additional stats specific to
377 the given BGP instance and/or AFI/SAFI such as table counts,
378 peers, rsclients and peer-groups.
379 (bgp_vty_init) Install show_bgp_memory_cmd.
Paul Jakma5304cb52006-03-30 14:01:14 +0000380 * bgp_nexthop.h: Include if.h as a dependent header, for struct
381 connected.
Paul Jakmab51f1262006-03-30 14:09:38 +0000382 * bgp_advertise.c: Use a distinct memory type for struct
383 bgp_synchronize.
Paul Jakma5304cb52006-03-30 14:01:14 +0000384
Paul Jakmacbdfbaa2006-03-30 13:20:48 +00003852006-03-12 Paul Jakma <paul.jakma@sun.com>
386
387 * bgp_attr.h: (struct attr) rearrange fields to avoid
388 wasted padding between them as much as possible.
389 (attr_count,attr_unknown_count) export new functions to
390 return number of counts of cached attributes.
391 * bgp_attr.c: (attr_count,attr_unknown_count) new functions to
392 return number of counts of cached attributes.
393 * bgp_route.h: (struct bgp_info) rearrange fields to avoid
394 wasted padding.
395 * bgp_table.h: (struct bgp_table) Add a count field, of number
396 of nodes in the table.
397 (struct bgp_node) rearrange fields to avoid
398 wasted padding between them, though I don't think there
399 was any in this case.
400 * bgp_table.c: (bgp_node_{delete,get}) Maintain the table node count.
401 (bgp_table_count) new function to access the table count.
402
Paul Jakma3e0c78e2006-03-06 18:06:53 +00004032006-03-03 Paul Jakma <paul.jakma@sun.com>
404
405 * bgp_route.c: (bgp_clear_node_complete) Doh. When clearing
406 is complete we need to kick off FSM again.
407
Paul Jakma64e580a2006-02-21 01:09:01 +00004082006-02-21 Paul Jakma <paul.jakma@sun.com>
409
410 * bgpd.h: move the clear_node_queue to be peer specific.
411 Add a new peer status flag, PEER_STATUS_CLEARING.
412 * bgp_table.h: (struct bgp_table) Add fields to record afi,
413 safi of the table.
414 (bgp_table_init) Take afi and safi to create table for.
415 * bgp_table.c: (bgp_table_init) record the afi and safi.
416 * bgp_nexthop.c: Update all calls to bgp_table_init.
417 * bgp_vty.c: ditto.
418 * bgpd.c: ditto.
419 * bgp_fsm.c: (bgp_timer_set) dont bring up a session which is
420 clearing.
421 * bgp_route.c: (general) Update all bgp_table_init calls.
422 (bgp_process_{rsclient,main}) clear_node is serialised
423 via PEER_STATUS_CLEARING and fsm now.
424 (struct bgp_clear_node_queue) can be removed. struct bgp_node
425 can be the queue item data directly, as struct peer can be
426 kept in the new wq global user data and afi/safi can be
427 retrieved via bgp_node -> bgp_table.
428 (bgp_clear_route_node) fix to get peer via wq->spec.data,
429 afi/safi via bgp_node->bgp_table.
430 (bgp_clear_node_queue_del) no more item data to delete, only
431 unlock the bgp_node.
432 (bgp_clear_node_complete) only need to unset CLEARING flag
433 and unlock struct peer.
434 (bgp_clear_node_queue_init) queue attaches to struct peer
435 now. record peer name as queue name.
436 (bgp_clear_route_table) If queue transitions to active,
437 serialise clearing by setting PEER_STATUS_CLEARING rather
438 than plugging process queue, and lock peer while queue
439 active.
440 Update to pass only bgp_node as per-queue-item specific data.
Paul Jakma6a419732006-02-21 01:14:13 +0000441 * bgp_vty.c: (bgp_show_summary) Add a 'Clrng' sub-description
442 to state of peer while it's suppressed due to clearing.
Paul Jakma64e580a2006-02-21 01:09:01 +0000443
Paul Jakmaaa94ca82006-02-18 10:49:04 +00004442006-02-18 Paul Jakma <paul.jakma@sun.com>
445
446 * bgp_routemap.c: (route_set_community) Quick, very hacky, fix
447 for the set-community leak, bug #89. True fix will be to
448 detangle the web of *_intern caching and provide saner object
449 caching for Quagga, future work.
Paul Jakma7c7fa1b2006-02-18 10:52:09 +0000450 * bgp_route.c: (bgp_announce_check) trivial, move declaration
451 of two local variables into the only block where they are
452 used, to aid the reader.
Paul Jakmaaa94ca82006-02-18 10:49:04 +0000453
paul902212c2006-02-05 17:51:19 +00004542006-02-05 Paul Jakma <paul.jakma@sun.com>
455
456 * bgp_route.h: Add BGP_INFO_COUNTED to track whether
457 prefix has been counted or not.
458 * bgp_route.c: (bgp_pcount_{inc,dec}rement) new helpers, to
459 centralise inc/dec of prefix-count,
460 (bgp_rib_remove) Remove pcount decrement, use helper.
461 (bgp_rib_withdraw) ditto, additionally use previous function
462 too.
463 (bgp_update_main) Use pcount helpers.
464 (bgp_clear_route_node) ditto, aslo REMOVED routes don't need
465 clearing.
paul3fff6ff2006-02-05 17:55:35 +0000466 * bgp_aspath.c: (aspath_gettoken) fix gcc warning about
467 possible uninitialised usage.
paul902212c2006-02-05 17:51:19 +0000468
paul306d8892006-02-02 17:50:19 +00004692006-02-02 Paul Jakma <paul.jakma@sun.com>
470
471 * bgp_route.c: (bgp_{clear_node,process}_queue_init) delay
472 field is removed from workqueue spec.
473
paule8e19462006-01-19 20:16:55 +00004742006-01-19 Paul Jakma <paul.jakma@sun.com>
475
476 * (general) various miscellaneous compiler warning fixes.
477 Remove redundant break statements from switch clauses
478 which return.
479 return from main, not exit, cause it annoys SOS.
480 Remove stray semi-colons which cause empty-statement
481 warnings.
482
pauld3092e72006-01-17 17:33:46 +00004832006-01-17 Paul Jakma <paul.jakma@sun.com>
484
485 * bgp_nexthop.c: (zlookup_read*) convert to new Zserv format.
486 (zlookup_query_ipv6) ditto.
487 (bgp_import_check) ditto.
488
paul02335422006-01-16 11:13:27 +00004892006-01-16 Paul Jakma <paul.jakma@sun.com>
490
491 * bgp_aspath.c: (assegment_append_asns) XREALLOC can return
492 NULL theoretically, take care not to lose the allocated data.
493 (aspath_hash_alloc) aspath_dup already set the aspath
494 string - fix leak.
495 (aspath_parse) aspath_hash_alloc dupes the entire aspath,
496 including segments, but we forgot to free the temporary
497 assegment.
paul8fdc32a2006-01-16 12:01:29 +0000498 (aspath_snmp_pathseg) move the static stream pointer out to
499 file scope, so it can be freed.
500 (aspath_finish) new function, free aspath resources.
501 * bgp_aspath.h: (aspath_finish) export.
paul02335422006-01-16 11:13:27 +0000502
paul37c38302006-01-10 22:15:45 +00005032006-01-10 Juris Kalnins <juris@mt.lv>
504
505 * bgpd.h: (bgp_router_id_unset) ex-function, remove.
506
paulad727402005-11-23 02:47:02 +00005072005-11-23 Paul Jakma <paul.jakma@sun.com>
508
509 * bgp_aspath.c: (assegments_parse) should be static
510
5112005-11-23 Juergen Kammer <j.kammer@eurodata.de>
512
513 * bgp_aspath.c: (aspath_cmp_left_confed) fix SEGV for case
514 where one or both paths are empty.
515
paul0fb58d52005-11-14 14:31:49 +00005162005-11-14 Paul Jakma <paul.jakma@sun.com>
517
518 * bgp_route.c: (bgp_process_rsclient) convert to new workqueue
519 specs and shut up gcc, which complains about cast from void
520 via function parameters, for some dumb reason. Do the cast
521 inside the function instead.
522 (bgp_process_main,bgp_processq_del) ditto.
523 (bgp_clear_route_node) ditto.
524 (bgp_clear_node_queue_del) ditto.
525
paul41200852005-11-03 12:52:18 +00005262005-11-03 Paul Jakma <paul.jakma@sun.com>
527
528 * bgp_damp.c: (bgp_reuse_timer) struct bgp can be retrieved via
529 the struct bgp_damp_info, no need to guess by using
530 bgp_get_default().
531
ajsf52d13c2005-10-01 17:38:06 +00005322005-10-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
533
534 * bgp_vty.c: (bgp_config_write_redistribute) Use new library function
535 zebra_route_string instead of a local hard-coded table.
536
jardin2d74db52005-10-01 00:07:50 +00005372005-09-30 Vincent Jardin <vincent.jardin@6wind.com>
538
539 * bgp_packet.c: fix compilation when DEBUG is used.
540
paul1f8ae702005-09-09 23:49:49 +00005412005-09-10 Paul Jakma <paul.jakma@sun.com>
542
paulfe69a502005-09-10 16:55:02 +0000543 * Makefile.am: bgpd shouldn't list libgp's sources as its own.
544 Use LDADD.
545 * bgp_aspath.h:
546 (struct assegment) New struct, abstract representation of a
547 list of AS_PATH segments and the contained ASNs.
548 (struct aspath) Remove the raw-data related
549 fields, reference the abstract struct assegment instead.
550 Remove several other computed fields, it's just a
551 headache to maintain them and they're cheap to compute from
552 struct assegment.
553 (aspath_parse) parse a stream, not a pointer to raw data.
554 (aspath_count_{hops,confeds,size}) helpers to access
555 information formerly directly contained in struct aspath.
556 (aspath_snmp_pathseg) Helper for SNMP, BGP MIB wants
557 to be able to output hex representation of raw data.
558 * bgp_aspath.c: (general) partial-rewrite. Store aspath data
559 as an abstract singly-linked list of abstract segments,
560 rather than storing the raw data, and parsing it each and
561 every time. Remove several count/size fields which are cheap
562 to compute from the abstract segment structure.
563 (global) Include stream.h, needed for aspath_parse, and
564 others. Couple of helper macros added.
565 (struct assegment_header) Just the header, and only the
566 header.
567 (assegment_data_{new,free}) convenience functions for
568 AS_SEG_DATA allocation, the dynamic, per-segment array of
569 ASNs.
570 (assegment_{new,free,free_all,dup,dup_all}) convenience
571 functions for creating struct assegments. The _all forms will
572 follow the entire chain of segments from the given segment.
573 (assegment_prepend_asns) new function, prepend an ASN N times
574 to segment.
575 (assegment_append_asns) Append a list (array) of ASNs to
576 segment.
577 (int_cmp) convenience function for the aspath hash.
578 (assegment_normalise) new function. Normalise the given
579 segment chain to meet expectations of Quagga, and to
580 eliminate differing raw representations of the same paths.
581 Merge 'runs' of SEQUENCEs into one segment as our internal
582 segment is not limited by the protocol AS_PATH segment
583 length. Sort ASNs in SETs.
584 (aspath_new) Take void argument to quell warnings. Use the
585 assegment convenience functions.
586 (assegment_count_{asns,confeds,hops}) new functions to
587 compute at runtime values previously held in struct aspath.
588 (aspath_size) ditto.
589 (aspath_make_str_count) rewritten to stringify new
590 representation, and to be slightly easier to understand
591 hopefully.
592 (aspath_str_update) convenience function, update the aspath
593 str. Should investigate removing maintained string from
594 struct aspath, just run-time compute it, as per other fields.
595 It's just a maintenance headache, would save noticeable
596 amount of RAM with possibly not much extra run-time cost.
597 (aspath_dup) use the assegment dup functions.
598 (aspath_hash_alloc) Take void * argument to satisfy gcc. Use
599 the proper helper functions to dup data.
600 (assegments_parse) new function. parse raw AS_PATH data into
601 struct assegments. Normalise and return the head of the list.
602 (aspath_parse) Parse a stream, not pointer to raw data and
603 use assegments_parse to do it.
604 (assegment_data_put) Write out a single segment data in protocol
605 form to stream.
606 (assegment_header_put) ditto but for segment header.
607 (aspath_put) new function. As per previous but for an entire
608 struct aspath.
609 (aspath_snmp_pathseg) wrapper around aspath_put for
610 bgp_snmp.c. Uses a static buffer sadly.
611 (aspath_aggregate_as_set_add) rewritten to use assegments.
612 (aspath_aggregate) ditto
613 (aspath_{firstas,loop,private_as}_check) ditto
614 (aspath_{merge,prepend,add_one_as}) ditto
615 (aspath_cmp_left{_confed}) ditto
616 (aspath_delete_confed_seq) ditto, plus fixed to properly
617 delete all leading confed segments.
618 (aspath_as_add) Just use assegment_append_asns.
619 (aspath_segment_add) updated to use assegments.
620 (enum as_token) Add values for confeds
621 (aspath_gettoken) Add support for confeds
622 (aspath_str2aspath) ditto
623 (aspath_key_make) updated to use as_segments. Also, add
624 segment type into the hash value as appropriate.
625 (aspath_cmp) updated to use as_segments.
626 (aspath_print) don't segfault on NULL argument.
627 * bgp_attr.c: (bgp_attr_aspath) aspath_parse wants the stream
628 now. No need for manual forwarding of stream.
629 (bgp_packet_attribute) empty aspath is now denoted by NULL
630 segment field, length is gone.
631 Use aspath_size() to determine size.
632 (bgp_attr_init) Fix declaration, explicitely specify void
633 arg.
634 (bgp_dump_routes_attr) Use aspath_size() to determine size.
635 * bgp_route.c: (bgp_info_cmp) use the aspath_count_* functions.
636 (bgp_rib_withdraw) remove unused variable. Use
637 aspath_count_hops.
638 * bgp_snmp.c: (bgp4PathAttrTable) raw data is gone, use
639 aspath_snmp_pathseg to get the representation.
640
6412005-09-10 Paul Jakma <paul.jakma@sun.com>
642
paul1f8ae702005-09-09 23:49:49 +0000643 * bgp_vty.c: (bgp_vty_init) gcc 4 compile fix. static
644 function declarations shouldn't be inside functions.
645 * bgp_dump.c: (bgp_dump_interval_add) ditto.
646
hassob7395792005-08-26 12:58:38 +00006472005-08-26 Hasso Tepper <hasso at quagga.net>
648
649 * bgp_route.c: Third (?) attempt to fix best selection breakage
650 introduced long time ago with route server patch. Hopefully
651 it's last case to fix - route-server client not in peer group.
652
paul25ffbdc2005-08-22 22:42:08 +00006532005-08-22 Hugo Santos <hsantos@av.it.pt>
654
655 * bgp_vty.c: (general) Add support for BGP IPv6 Multicast SAFI
656 commands and BGP_IPV6M_NODE.
657
paulb40d9392005-08-22 22:34:41 +00006582005-08-22 Paul Jakma <paul.jakma@sun.com>
659
660 * bgp_route.h: (struct bgp_info) add a new flag, BGP_INFO_REMOVED.
661 BGP_INFO_VALID is already overloaded, don't care to do same thing
662 to STALE or HISTORY.
663 * bgpd.h: (BGP_INFO_HOLDDOWN) Add INFO_REMOVED to the macro, as a
664 route which should generally be ignored.
665 * bgp_route.c: (bgp_info_delete) Just set the REMOVE flag, rather
666 than doing actual work, so that bgp_process (called directly,
667 or indirectly via the scanner) can catch withdrawn routes.
668 (bgp_info_reap) Actually remove the route, what bgp_info_delete
669 used to do, only for use by bgp_process.
670 (bgp_best_selection) reap any REMOVED routes, other than the old
671 selected route.
672 (bgp_process_rsclient) reap the old-selected route, if appropriate
673 (bgp_process_main) ditto
674 (bgp_rib_withdraw, bgp_rib_remove) make them more consistent with
675 each other. Don't play games with the VALID flag, bgp_process
676 is async now, so it didn't make a difference anyway.
677 Remove the 'force' argument from bgp_rib_withdraw, withdraw+force
678 is equivalent to bgp_rib_remove. Update all its callers.
679 (bgp_update_rsclient) bgp_rib_withdraw and force set is same as
680 bgp_rib_remove.
681 (route_vty_short_status_out) new helper to print the leading
682 route-status string used in many command outputs. Consolidate.
683 (route_vty_out, route_vty_out_tag, damp_route_vty_out,
684 flap_route_vty_out) use route_vty_short_status_out rather than
685 duplicate.
686 (route_vty_out_detail) print state of REMOVED flag.
687 (BGP_SHOW_SCODE_HEADER) update for Removed flag.
688
hassoe279c7a2005-08-03 17:23:20 +00006892005-08-03 Hasso Tepper <hasso at quagga.net>
690
691 * bgp_routemap.c: Revert part of leaking communities fix commited in
692 2005-05-27. While ecommunity fix seems to be correct, community case
693 isn't.
694
paul94f2b392005-06-28 12:44:16 +00006952005-06-28 Paul Jakma <paul.jakma@sun.com>
696
697 * (global) The great bgpd extern and static'ification.
698 * bgp_routemap.c: remove unused ROUTE_MATCH_ASPATH_OLD code
699 (route_set_metric_compile) fix u_int32_t to ULONG_MAX comparison
700 warnings.
701 * bgp_route.h: (bgp_process, bgp_withdraw, bgp_update) export these
702 used by various files which had their own private declarations,
703 in the case of mplsvpn - incorrect.
704
paule210cf92005-06-15 19:15:35 +00007052005-06-15 Paul Jakma <paul.jakma@sun.com>
706
707 * bgpd.c: (bgp_terminate) workqueue's are lazy allocated and its
708 possible to terminate bgpd before workqueues were setup, causing
709 an abort/crash. Reported by Ashish Mehta of Sun.
710
paul200df112005-06-01 11:17:05 +00007112005-06-01 Paul Jakma <paul.jakma@sun.com>
712
713 * (general) refcount struct peer and bgp_info, hence allowing us
714 add work_queues for bgp_process.
715 * bgp_route.h: (struct bgp_info) Add 'lock' field for refcount.
716 Add bgp_info_{lock,unlock} helper functions.
717 Add bgp_info_{add,delete} helpers, to remove need for
718 users managing locking/freeing of bgp_info and bgp_node's.
719 * bgp_table.h: (struct bgp_node) Add a flags field, and
720 BGP_NODE_PROCESS_SCHEDULED to merge redundant processing of
721 nodes.
722 * bgp_fsm.h: Make the ON/OFF/ADD/REMOVE macros lock and unlock
723 peer reference as appropriate.
724 * bgp_damp.c: Remove its internal prototypes for
725 bgp_info_delete/free. Just use bgp_info_delete.
726 * bgpd.h: (struct bgp_master) Add work_queue pointers.
727 (struct peer) Add reference count 'lock'
728 (peer_lock,peer_unlock) New helpers to take/release reference
729 on struct peer.
730 * bgp_advertise.c: (general) Add peer and bgp_info refcounting
731 and balance how references are taken and released.
732 (bgp_advertise_free) release bgp_info reference, if appropriate
733 (bgp_adj_out_free) unlock peer
734 (bgp_advertise_clean) leave the adv references alone, or else
735 call bgp_advertise_free cant unlock them.
736 (bgp_adj_out_set) lock the peer on new adj's, leave the reference
737 alone otherwise. lock the new bgp_info reference.
738 (bgp_adj_in_set) lock the peer reference
739 (bgp_adj_in_remove) and unlock it here
740 (bgp_sync_delete) make hash_free on peer conditional, just in
741 case.
742 * bgp_fsm.c: (general) document that the timers depend on
743 bgp_event to release a peer reference.
744 (bgp_fsm_change_status) moved up the file, unchanged.
745 (bgp_stop) Decrement peer lock as many times as cancel_event
746 canceled - shouldnt be needed but just in case.
747 stream_fifo_clean of obuf made conditional, just in case.
748 (bgp_event) always unlock the peer, regardless of return value
749 of bgp_fsm_change_status.
750 * bgp_packet.c: (general) change several bgp_stop's to BGP_EVENT's.
751 (bgp_read) Add a mysterious extra peer_unlock for ACCEPT_PEERs
752 along with a comment on it.
753 * bgp_route.c: (general) Add refcounting of bgp_info, cleanup
754 some of the resource management around bgp_info. Refcount peer.
755 Add workqueues for bgp_process and clear_table.
756 (bgp_info_new) make static
757 (bgp_info_free) Ditto, and unlock the peer reference.
758 (bgp_info_lock,bgp_info_unlock) new exported functions
759 (bgp_info_add) Add a bgp_info to a bgp_node in correct fashion,
760 taking care of reference counts.
761 (bgp_info_delete) do the opposite of bgp_info_add.
762 (bgp_process_rsclient) Converted into a work_queue work function.
763 (bgp_process_main) ditto.
764 (bgp_processq_del) process work queue item deconstructor
765 (bgp_process_queue_init) process work queue init
766 (bgp_process) call init function if required, set up queue item
767 and add to queue, rather than calling process functions directly.
768 (bgp_rib_remove) let bgp_info_delete manage bgp_info refcounts
769 (bgp_rib_withdraw) ditto
770 (bgp_update_rsclient) let bgp_info_add manage refcounts
771 (bgp_update_main) ditto
772 (bgp_clear_route_node) clear_node_queue work function, does
773 per-node aspects of what bgp_clear_route_table did previously
774 (bgp_clear_node_queue_del) clear_node_queue item delete function
775 (bgp_clear_node_complete) clear_node_queue completion function,
776 it unplugs the process queues, which have to be blocked while
777 clear_node_queue is being processed to prevent a race.
778 (bgp_clear_node_queue_init) init function for clear_node_queue
779 work queues
780 (bgp_clear_route_table) Sets up items onto a workqueue now, rather
781 than clearing each node directly. Plugs both process queues to
782 avoid potential race.
783 (bgp_static_withdraw_rsclient) let bgp_info_{add,delete} manage
784 bgp_info refcounts.
785 (bgp_static_update_rsclient) ditto
786 (bgp_static_update_main) ditto
787 (bgp_static_update_vpnv4) ditto, remove unneeded cast.
788 (bgp_static_withdraw) see bgp_static_withdraw_rsclient
789 (bgp_static_withdraw_vpnv4) ditto
790 (bgp_aggregate_{route,add,delete}) ditto
791 (bgp_redistribute_{add,delete,withdraw}) ditto
792 * bgp_vty.c: (peer_rsclient_set_vty) lock rsclient list peer
793 reference
794 (peer_rsclient_unset_vty) ditto, but unlock same reference
795 * bgpd.c: (peer_free) handle frees of info to be kept for lifetime
796 of struct peer.
797 (peer_lock,peer_unlock) peer refcount helpers
798 (peer_new) add initial refcounts
799 (peer_create,peer_create_accept) lock peer as appropriate
800 (peer_delete) unlock as appropriate, move out some free's to
801 peer_free.
802 (peer_group_bind,peer_group_unbind) peer refcounting as
803 appropriate.
804 (bgp_create) check CALLOC return value.
805 (bgp_terminate) free workqueues too.
806
hasso033e8612005-05-28 04:50:54 +00008072005-05-28 Hasso Tepper <hasso at quagga.net>
808
809 * bgp_routemap.c: Sync set_metric_addsub_cmd with ripd.
810
hasso54a6ed32005-05-26 22:12:33 +00008112005-05-27 Hasso Tepper <hasso at quagga.net>
812
hasso70601e02005-05-27 03:26:57 +0000813 * bgp_routemap.c: Stop leaking communities.
814
8152005-05-27 Hasso Tepper <hasso at quagga.net>
816
hasso54a6ed32005-05-26 22:12:33 +0000817 * bgpd.c: Deleting bgp->rsclient list needs fix similar to pree-groups
818 deleting fix. Avoid leaking bgp->group, bgp->peer and bgp->rsclient
819 lists.
820
8212005-05-26 Hasso Tepper <hasso at quagga.net>
hassob6b7cff2005-05-26 08:29:07 +0000822
823 * bgpd.c: Don't crash while deleting list of peer-groups.
824
hassob5f29602005-05-25 21:00:28 +00008252005-05-25 Hasso Tepper <hasso at quagga.net>
826
827 * bgpd.c: Fix obvious (routeserver patch) merge error. This makes "no
828 neighbor x.x.x.x routemap [export|import] commands work again.
829
paula94feb32005-05-23 13:17:29 +00008302005-05-23 Paul Jakma <paul@dishone.st>
831
832 * bgp_routemap.c: add semi-colons to VTY_GET_* to match vty.h change
paul00d252c2005-05-23 14:19:54 +0000833 * bgp_fsm.h: Add extern qualifier to exported functions
834 * bgp_nexthop.c: add static to nexthop specific globals
835 * *.h: Add guard defines
paula94feb32005-05-23 13:17:29 +0000836
paul22db9de2005-05-19 01:50:11 +00008372005-05-19 Paul Jakma <paul@dishone.st>
838
839 * bgp_fsm.c: (bgp_stop) use sockunion_free, not XFREE..
840 * bgp_network.c: (bgp_getsockname) ditto
paule83e2082005-05-19 02:12:25 +0000841 (bgp_accept) use XSTRDUP
paul22db9de2005-05-19 01:50:11 +0000842 * bgp_routemap.c: (route_match_peer) ditto, als use a ret value and
843 remove one sockunion_free.
paule83e2082005-05-19 02:12:25 +0000844 * bgpd.c: (peer_delete) ditto.
845 XFREE the correct memtype, not free.
846 (peer_create) use XSTRDUP
847 * bgp_packet.c: (bgp_stream_dup) deleted, stream_dup should be used
848 (various) update -> s/bgp_stream_dup/stream_dup
849
paul22db9de2005-05-19 01:50:11 +0000850
ajs634f9ea2005-04-11 15:51:40 +00008512005-04-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
852
853 * bgp_zebra.c (bgp_redistribute_set, bgp_redistribute_unset):
854 The 2nd arg to zebra_redistribute_send is now zclient instead of
855 zclient->sock.
856
hassoa8a80d52005-04-09 13:07:47 +00008572005-04-09 Akihiro Mizutani <mizutani@net-chef.net>
858
859 * bgp_vty.c: Make "exit-address-family" work in IPv4 unicast address
860 family node.
861
hasso68118452005-04-08 15:40:36 +00008622005-04-08 Martin Ling <martin-quagga@earth.li>
863
864 * bgp_aspath.[ch], bgp_route.c, bgp_vty.c, bgpd.[ch]: Allow to enable
865 the length of confederation path segments to be included during the
866 as-path length check in the best path decision.
867
ajsd2fc8892005-04-02 18:38:43 +00008682005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
869
870 * bgp_zebra.c: (bgp_interface_delete) After deleting, set ifp->ifindex
871 to IFINDEX_INTERNAL.
872
hasso6cf159b2005-03-21 10:28:14 +00008732005-03-21 Hasso Tepper <hasso at quagga.net>
874
875 * bgp_route.c: Don't crash while clearing route tables if there is
876 no particular afi/safi configured.
877
hasso338b3422005-02-23 14:27:24 +00008782005-02-23 Hasso Tepper <hasso at quagga.net>
879
880 * bgp_route.c: Make reannouncing prefixes with changed attributes
881 work again.
882
hasso6ffd2072005-02-02 14:50:11 +00008832005-02-02 Akihiro Mizutani <mizutani@net-chef.net>
884
hassodd4c5932005-02-02 17:15:34 +0000885 * bgp_vty.c: Deprecate "neighbor transparent-as" and "neighbor
886 transparent-nexthop" commands.
887
8882005-02-02 Akihiro Mizutani <mizutani@net-chef.net>
889
hassoc1643bb2005-02-02 16:43:17 +0000890 * bgp_routemap.c: New route-map command - "match ip route-source".
891
8922005-02-02 Akihiro Mizutani <mizutani@net-chef.net>
893
hassofee6e4e2005-02-02 16:29:31 +0000894 * bgp_clist.[ch], bgp_route.c, bgp_routemap.c, bgp_vty.c:
895 community-list cleanup.
896
8972005-02-02 Akihiro Mizutani <mizutani@net-chef.net>
898
hasso6ffd2072005-02-02 14:50:11 +0000899 * bgp_route.c, bgp_vty.c, bgp_zebra.c, bgpd.[ch]: "enforce-multihop"
900 -> "disable-connected-check".
901
9022005-02-02 Akihiro Mizutani <mizutani@net-chef.net>
hasso93406d82005-02-02 14:40:33 +0000903
904 * bgp_fsm.c, bgp_open.c, bgp_packet.c, bgp_route.[ch], bgp_vty.c,
905 bgpd.[ch]: Add BGP_INFO_STALE flag and end-of-rib support. "bgp
906 graceful-restart" commands added. Show numbers of individual
907 messages in "show ip bgp neighbor" command. Final pieces of graceful
908 restart.
909
hassof4184462005-02-01 20:13:16 +00009102005-02-01 Akihiro Mizutani <mizutani@net-chef.net>
911
hassoc9502432005-02-01 22:01:48 +0000912 * bgp_open.c, bgp_packet.c, bgp_vty.c, bgpd.[ch]: Remove "no neighbor
913 capability route-refresh" commands. Route refresh capability is sent
914 anyway now. Preserve dummy deprecated commands.
915
9162005-02-01 Akihiro Mizutani <mizutani@net-chef.net>
917
hasso3d515fd2005-02-01 21:30:04 +0000918 * bgp_attr.c, bgp_snmp.c, bgp_vty.c, bgpd.[ch]: Remove support for old
919 draft - ie. "neighbor version 4-" commands. Preserve dummy "neighbor
920 version" command as deprecated.
921
9222005-02-01 Akihiro Mizutani <mizutani@net-chef.net>
923
hasso0a486e52005-02-01 20:57:17 +0000924 * bgpd.[ch], bgp_vty.c, bgp_route.c: "Restart session after
925 maximum-prefix limit" feature support.
926
9272005-02-01 Akihiro Mizutani <mizutani@net-chef.net>
928
hassof4184462005-02-01 20:13:16 +0000929 * bgp_nexthop.c: Improve debug.
930 * bgpd.[ch], bgp_nexthop.c, bgp_snmp.c: Remove useless bgp_get_master()
931 function.
932 * bgp_packet.c: MP AFI_IP update and withdraw parsing.
933 * bgp_fsm.c: Reset peer synctime in bgp_stop(). bgp_fsm_change_status()
934 is better place to log about peer status change than bgp_event().
935 Log in bgp_connect_success().
936 * bgp_vty.c: Fix typo in comment.
937 * bgp_attr.c: Better log about unknown attribute.
938
ajs3b8b1852005-01-29 18:19:13 +00009392005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
940
941 * bgp_filter.c: (ip_as_path,no_ip_as_path) Use argv_concat instead
942 of buffer_getstr.
943 * bgp_route.c: (bgp_show_regexp) Fix memory leak: need to free string
944 returned by buffer_getstr.
945 (bgp_show_community) Must use XFREE instead of free on string
946 returned by buffer_getstr.
947 * bgp_routemap.c: (set_community) Must use XFREE instead of free
948 on string returned by buffer_getstr.
949 * bgp_vty.c: (neighbor_description) Use argv_concat instead of
950 buffer_getstr.
951
hasso6d694292005-01-24 09:29:42 +00009522005-01-24 Hasso Tepper <hasso at quagga.net>
953
954 * bgp_route.c: Fix showstopper bug. New route must be selected also
955 if old one is flaged as BGP_INFO_ATTR_CHANGED.
956
hassof1271652005-01-17 11:04:32 +00009572005-01-17 Hasso Tepper <hasso at quagga.net>
958
959 * bgp_route.c: Clear peer's routing table regardless whether it's
960 configured or not. Being not configured is even better reason to
961 do it.
962
paula24a7e12005-01-05 08:14:13 +00009632005-01-05 Paul Jakma <paul@dishone.st>
964
965 * bgp_packet.c: (bgp_write) set socket to nonblock while writing
966 this should be generalised. See bugzilla #102. Fix supplied by
967 wawa@yandex-team.ru (Vladimir Ivanov).
968
ajsd2c1f162004-12-08 21:10:20 +00009692004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
970
971 * *.c: Change level of debug messages to LOG_DEBUG.
972
ajs274a4a42004-12-07 15:39:31 +00009732004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
974
975 * bgp_main.c: (main) The 2nd argument to openzlog has been removed.
976
ajs887c44a2004-12-03 16:36:46 +00009772004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
978
979 * bgp_main.c: (sigint) Use zlog_notice for termination message.
980 (main) Use zlog_notice for startup announcement.
981
hassoc0652302004-11-25 19:33:48 +00009822004-11-25 Hasso Tepper <hasso at quagga.net>
983
984 * bgp_main.c: Make group to run as configurable.
985
paul59320202004-11-09 01:54:03 +00009862004-11-09 Paul Jakma <paul@dishone.st>
987
988 * bgp_nexthop.c: collapse bgp_connected_ipvX, bgp_nexthop_cache_ipvX
989 and cache{1,2}.. into arrays of tables and hence collapse
990 bgp_scan_ipv{4,6} into a single bgp_scan function. Tested, though
991 a long time ago (and this change was hand-merged).
992
ajs5a646652004-11-05 01:25:55 +00009932004-11-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
994
995 * bgp_route.c: Remove all code related to VTY_CONTINUE; this feature
996 is deprecated because the output did not represent a single point
997 in time. All output needs to be generated inline and buffered
998 by the library code.
999 (route_vty_out,route_vty_out_tag,damp_route_vty_out,
1000 flap_route_vty_out) Remove code to count number of lines of output,
1001 since this was only useful for VTY_CONTINUE behavior.
1002 (bgp_show_callback,vty_calc_line) Removed.
1003 (bgp_show_table) Remove hooks for VTY_CONTINUE callback support.
1004 As a result, there's a new output_arg argument to this function.
1005 Make function static.
1006 (bgp_show) Make function static and add a new output_arg argument.
1007 Change all functions that call bgp_show or bgp_show_table to
1008 pass the new output_arg argument (that used to be passed inside
1009 vty->output_arg).
1010 * bgp_mplsvpn.c: Remove declarations of functions defined in
1011 bgp_route.c; these declarations belong in bgp_route.h.
1012 * bgp_route.h: Declare 3 global functions used in both bgp_route.c
1013 and in bgp_mplsvpn.c.
1014
paula2b1ecd2004-10-31 18:58:09 +000010152004-10-31 Paul Jakma <paul@dishone.st>
1016
1017 * {bgpd,bgp_attr}.c: size_t printf format should be ld.
1018
paul98f51632004-10-25 14:19:15 +000010192004-10-25 Paul Jakma <paul@dishone.st>
1020
1021 * Update with fix in debian bug id 222930.
1022 * bgp_main.c: Add ZCAP_RAW, needed to bind to interfaces.
1023 bgp_network.c: (....) raise/lower privs around call to
1024 SO_BINDTODEVICE sockopt.
1025
hasso3fb9cd62004-10-19 19:44:43 +000010262004-10-19 Andrew J. Schorr <aschorr@telemetry-investments.com>
1027
1028 * bgp_nexthop.c: (bgp_connected_add) Connected destination pointer
1029 may be NULL.
1030 (bgp_connected_delete) ditto.
1031
hasso501ba492004-10-13 21:32:46 +000010322004-10-14 Hasso Tepper <hasso at quagga.net>
1033
1034 * bgp_dump.c: Make dump configuration appear in vtysh.
1035
hassoc75105a2004-10-13 10:33:26 +000010362004-10-13 Hasso Tepper <hasso at quagga.net>
1037
1038 * bgp_snmp.c: Remove defaults used to initialize smux connection to
1039 snmpd. Connection is initialized only if smux peer is configured.
hasso8b3126b2004-10-13 20:59:04 +00001040 * bgp_view.c: It's dead file. Reomved.
hassoc75105a2004-10-13 10:33:26 +00001041
paulfd79ac92004-10-13 05:06:08 +000010422004-10-13 Paul Jakma <paul@dishone.st>
1043
1044 * (global) more const'ification and fixups of types to clean up code.
1045 * bgp_mplsvpn.{c,h}: (str2tag) fix abuse. Still not perfect,
1046 should use something like the VTY_GET_INTEGER macro, but without
1047 the vty_out bits..
1048 * bgp_routemap.c: (set_aggregator_as) use VTY_GET_INTEGER_RANGE
1049 (no_set_aggregator_as) ditto.
1050 * bgpd.c: (peer_uptime) fix unlikely bug, where no buffer is
1051 returned, add comments about troublesome return value.
1052
hasso18a6dce2004-10-03 18:18:34 +000010532004-10-03 James R. Leu <jleu at mindspring.com>
1054
1055 * bgp_vty.c: Router id from zebra can be manually overriden.
1056 * bgp_zebra.c: Read router id related messages from zebra daemon.
1057 Remove own code related with router id selection.
1058 * bgpd.c, bgpd.h: Remove own router id selection code. Use the one
1059 from zebra daemon if it isn't manually overriden.
1060
hassoc9e52be2004-09-26 16:09:34 +000010612004-09-26 Hasso Tepper <hasso at quagga.net>
1062
1063 * bgp_aspath.c, bgp_packet.c, bgp_vty.c: Fix compiler warnings.
1064
hasso52dc7ee2004-09-23 19:18:23 +000010652004-09-23 Hasso Tepper <hasso at quagga.net>
1066
1067 * *.[c|h]: list -> struct list *, listnode -> struct listnode *.
1068
paule01f9cb2004-07-09 17:48:53 +000010692004-07-09 Paul Jakma <paul@dishone.st>
1070
1071 * Merge of GNU Zebra cvs2svn changesets r799, r800 and r807.
1072 * bgp_dump.c: (bgp_dump_attr) cleanup. return status code. check
1073 attributes present before printing.
1074 * bgp_dump.c: update bgp_dump_attr prototype.
1075 * bgp_packet.c: (bgp_update_receive) init attrstr. check status
1076 of bgp_dump_attr. Log end-of-rib UPDATEs.
1077
paulf5ba3872004-07-09 12:11:31 +000010782004-07-09 Sowmini Varadhan <sowmini.varadhan@sun.com>
1079
1080 * bgp_packet.c: (bgp_collision_detect) Send NOTIFY on new socket
1081 if that is connection we're closing.
1082 (bgp_read) invalid marker check applies to KEEPALIVE too.
1083 * bgp_route.c: Ignore multicast NRLI, dont send NOTIFY.
1084
paul5228ad22004-06-04 17:58:18 +000010852004-06-04 Paul Jakma <paul@dishone.st>
1086
1087 * type mismatch fixes
1088
hasso538621f2004-05-21 09:31:30 +000010892004-05-21 Akihiro Mizutani <mizutani@net-chef.net>
1090
1091 * bgpd.h, bgp_open.[ch], bgp_debug.c, bgp_vty.[ch], bgp_fsm.c:
1092 Graceful restart capability display.
1093
hasso3950fda2004-05-20 10:22:49 +000010942005-05-20 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1095
1096 * bgp_debug.c: Cosmetical fixes and log neighbor changes.
1097
hasso4372df72004-05-20 10:20:02 +000010982004-05-20 Akihiro Mizutani <mizutani@net-chef.net>
1099
1100 * bgp_ecommunity.c: Transit ecommunity support.
1101 * bgp_ecommunity.c: Fix for unknown community crush.
1102
hassoe0701b72004-05-20 09:19:34 +000011032005-05-20 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1104
1105 * *: Maximum prefix threshold support.
1106 * *: Reset notification fixups.
1107
paul0a589352004-05-08 11:48:26 +000011082004-05-08 Paul Jakma <paul@dishone.st>
1109
1110 * bgp_zebra.c: (bgp_interface_address_add) sync to zclient changes
1111 (bgp_interface_address_delete) ditto.
1112 (bgp_zebra_announce) ditto.
1113 (bgp_zebra_withdraw) ditto.
1114
paulc5317402004-05-03 13:25:06 +000011152004-05-03 Daniel Roesen <dr@cluenet.de>
1116
1117 * bgp_fsm.c: (bgp_stop) Reset uptime only on transition from
1118 Established so that it reflects true downtime (rather time
1119 since last transition, eg Active->Idle)
1120
paul35be31b2004-05-01 18:17:04 +000011212004-05-01 rivo nurges <rix@estpak.ee>
1122
1123 * bgp_route.c: fix UNH IOL BGP-4.1.12f
1124
pauleb821182004-05-01 08:44:08 +000011252004-05-01 Paul Jakma <paul@dishone.st>
1126
1127 * Revert the attempted clean-up of the dummy peer hack, reverts
1128 patchsets 435 (see 2004-02-17 below) and 456.
1129
paul545acaf2004-04-20 15:13:15 +000011302004-04-16 rivo nurges <rix@estpak.ee>
1131
hasso9b87e412004-04-20 16:54:49 +00001132 * bgpd.h, bgp_debug.c: update cease subcodes to
1133 draft-ietf-idr-cease-subcode-05
paul545acaf2004-04-20 15:13:15 +00001134 * bgpd.h, bgpd.c, bgp_route.c, bgp_route.h: fix UNH IOL BGP-4.1.6a
1135
paul6ad23f02004-02-17 19:45:10 +000011362004-02-17 Paul Jakma <paul@dishone.st>
1137
1138 * bgpd.h: (bgp_peer) add fd_local and fd_accept
1139 file descriptor's, fd becomes a pointer to one of these.
1140 * bgpd.c: (global) adjust for fact that fd is now a pointer.
1141 (peer_create_accept) removed.
1142 * bgp_route.c: (global) adjust for change of peer fd to pointer
1143 * bgp_packet.c: (bgp_collision_detect) adjust and remove the
1144 "replace with other peer" hack.
1145 * bgp_network.c: (bgp_accept) Remove the dummy peer hack.
1146 Update peer->fd_accept instead.
1147 (global) Adjust fd references - now a pointer.
1148 * bgp_fsm.c: (global) adjust peer fd to pointer.
1149 (bgp_connection_stop) new function, to stop connection.
1150 (global) adjust everything which closed peer fd to use
1151 bgp_connection_stop().
1152
gdt10d60ad2003-12-23 17:34:39 +000011532003-12-23 Krzysztof Oledzki <oleq@ans.pl>
1154
1155 * bgp_network.c: drop privs on error cases
1156
paul6ad23f02004-02-17 19:45:10 +000011572003-08-11 kunihiro <kunihiro@zebra.org>
paulac41b2a2003-08-12 05:32:27 +00001158
1159 * bgp_route{,map}.c: Extend 'set ip next-hop' in route-maps with
1160 ability to specify 'peer-address' rather than IP.
1161
paul9238b1e2003-06-11 08:03:08 +000011622003-06-09 Paul Jakma <paul@dishone.st>
1163
1164 * bgp_clist.c (community_list_delete): honour deny statements
1165
paul445f1432003-05-16 19:00:31 +000011662003-04-19 Hasso Tepper <hasso@estpak.ee>
1167
1168 * rip_routemap.c: sync daemon's route-map commands to have same
1169 syntax
1170
11712003-01-09 Akihiro Mizutani <mizutani@net-chef.net>
1172
1173 * bgp_routemap.c: Add match extcommunity command.
1174
paul718e3742002-12-13 20:15:29 +000011752002-10-23 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1176
1177 * bgp_aspath.c (aspath_init): Extend hash size from default to
1178 32767.
1179 (aspath_key_make): Use unsigned shoft for making hash. Suggested
1180 by: Marc Evans <Marc@SoftwareHackery.Com>
1181
11822002-08-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1183
1184 * bgp_clist.c (community_entry_free): Fix memory leak of standard
1185 extcommunity-list config string.
1186
11872002-08-19 Akihiro Mizutani <mizutani@net-chef.net>
1188
1189 * bgp_route.c (route_vty_out_detail): Fix bug of router-id display
1190 when multiple instance is used.
1191
11922002-08-18 Akihiro Mizutani <mizutani@net-chef.net>
1193
1194 * bgpd.c: Make "default-originate" and "maximum-prefix" commands
1195 available in peer-group configuration.
1196
11972002-08-13 Akihiro Mizutani <mizutani@net-chef.net>
1198
1199 * bgp_packet.c (bgp_open_send): Put Opt Parm Len 0 when last
1200 capability packet cause error or dont-capability-negotiate option
1201 is specified.
1202
12032002-07-07 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1204
1205 * zebra-0.93 released.
1206
12072001-10-28 Kunihiro Ishiguro <kunihiro@zebra.org>
1208
1209 * bgpd.c (bgp_vty_init): Translate update commands are removed.
1210
12112001-10-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1212
1213 * bgp_route.c (bgp_static_set): Add workaround for BGP static
1214 route announcement when there is no zebra running.
1215
12162001-10-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1217
1218 * bgpd.c (neighbor_remote_as_unicast): Remove "remote-as nlri
1219 unicast multicast" commands.
1220
12212001-09-14 Akihiro Mizutani <mizutani@dml.com>
1222
1223 * bgp_open.c: When we receive capability route-refresh, we should
1224 check we send the capability not we receive the capability.
1225
1226 * bgp_route.c (bgp_network_mask_natural_route_map): network
1227 statement route-map is added.
1228
12292001-08-31 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1230
1231 * bgp_advertise.c (bgp_advertise_intern): attr must be interned
1232 before looking up hash table.
1233
12342001-08-30 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1235
1236 * bgpd.h (struct peer): BGP filter is moved from peer_conf to
1237 peer.
1238
12392001-08-28 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1240
1241 * bgp_nexthop.c (bnc_nexthop_free): Fix next pointer bug.
1242 Suggested by: "Hong-Sung Kim" <hoskim@lanbird.co.kr>.
1243
12442001-08-26 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1245
1246 * bgp_table.c (bgp_node_create): Clearn memory before use it.
1247
12482001-08-24 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1249
1250 * Change to use bgp_table.[ch].
1251
12522001-08-23 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1253
1254 * bgpd.c (bgp_init): Add "transparent-as" and
1255 "transparent-nexthop" for old version compatibility.
1256
12572001-08-23 Akihiro Mizutani <mizutani@dml.com>
1258
1259 * bgpd.h (struct peer): default-originate route-map is added.
1260
1261 * bgp_route.c: When self originated route is advertised with
1262 attrubute-unchanged, nexthop was not properly set. This bug is
1263 fixed.
1264
12652001-08-22 Akihiro Mizutani <mizutani@dml.com>
1266
1267 * bgpd.c (neighbor_attr_unchanged): transparent-as and
1268 transparent-next-hop commands are restructured. Instead of
1269 current transparent-* commands, attribute-unchanged command is
1270 introduced.
1271
1272 neighbor A.B.C.D attribute-unchanged [as-path|next-hop|med]
1273
1274 (neighbor_default_originate): "default-originate" configuration
1275 announce default route even 0.0.0.0/0 does not exists in BGP RIB.
1276
12772001-08-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1278
1279 * zebra-0.92a released.
1280
12812001-08-19 Akihiro Mizutani <mizutani@dml.com>
1282
1283 * bgpd.c: AF specific soft-reconfiguration inbound commands are
1284 added.
1285
12862001-08-17 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1287
1288 * bgp_route.c (bgp_show_callback): Do not do community NULL check.
1289
1290 * bgp_community.c (community_cmp): Add check for commnunity NULL
1291 check.
1292
1293 * bgp_routemap.c (route_match_community): Do not check comunity is
1294 NULL. It may match to community-list "^$".
1295
1296 * bgp_community.c (community_match): Add check for community is
1297 NULL case.
1298
12992001-08-17 Akihiro Mizutani <mizutani@dml.com>
1300
1301 * bgpd.c: AF specific route-reflector-client and
1302 route-server-client configuration are added.
1303
13042001-08-17 Rick Payne <rickp@ayrnetworks.com>
1305
1306 * bgp_clist.c (community_match_regexp): Check special ^$ case.
1307
13082001-08-17 Akihiro Mizutani <mizutani@dml.com>
1309
1310 * bgp_clist.c (community_list_match): Fix bug of community list
1311 permit and deny check.
1312
13132001-08-16 Akihiro Mizutani <mizutani@dml.com>
1314
1315 * bgp_mplsvpn.c (bgp_mplsvpn_init): Add AF specific "nexthop-self"
1316 command.
1317
13182001-08-15 Akihiro Mizutani <mizutani@dml.com>
1319
1320 * bgpd.h (PEER_FLAG_SEND_COMMUNITY): Per AF based configuration
1321 flag is introduced.
1322
1323 * bgp_mplsvpn.c (bgp_mplsvpn_init): VPNv4 filtering is added.
1324
13252001-08-15 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1326
1327 * zebra-0.92 released.
1328
13292001-08-13 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1330
1331 * bgpd.c (bgp_delete): "no router bgp" free static, aggregate, rib
1332 table properly.
1333
13342001-08-12 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1335
1336 * bgp_route.c (bgp_node_safi): Return SAFI of current node.
1337 (bgp_config_write_network_vpnv4): VPNv4 static configuration
1338 display.
1339
13402001-08-11 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1341
1342 * bgpd.c (no_bgp_ipv4_multicast_route_map): Add IPv4 multicast
1343 node filter commands.
1344
13452001-08-11 Kunihiro Ishiguro <kunihiro@zebra.org>
1346
1347 * bgpd.h (PEER_FLAG_IGNORE_LINK_LOCAL_NEXTHOP): Add
1348 "ignore-link-local-nexthop" flag for ignore link-local nexthop for
1349 IPv6.
1350
13512001-08-07 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1352
1353 * bgpd.c (address_family_ipv4_multicast): "address-family ipv4
1354 multicast" is added.
1355 (address_family_ipv6_unicast): "address-family ipv6 unicast" is
1356 added.
1357
13582001-08-07 Akihiro Mizutani <mizutani@dml.com>
1359
1360 * bgp_route.c (bgp_process): Use flag instead of as_selected
1361 memeber in struct bgp_info.
1362
1363 * bgp_route.h (struct bgp_info): Remove as_selected memeber from
1364 struct bgp_info.
1365
13662001-07-31 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1367
1368 * bgp_route.c (bgp_announce_check): Enclose sending time AS loop
1369 check code with #ifdef BGP_SEND_ASPATH_CHECK.
1370
13712001-07-29 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1372
1373 * bgp_packet.c (bgp_withdraw_send): Simplify address family check.
1374
1375 * bgpd.h (BGP_INFO_HOLDDOWN): Introduce new macro to check BGP
1376 information is alive or not.
1377
1378 * bgp_community.c: Use community_val_get() on all OS.
1379
13802001-07-24 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1381
1382 * bgp_route.c (bgp_announce_check): Simplify set next-hop self
1383 check.
1384
13852001-07-24 Akihiro Mizutani <mizutani@dml.com>
1386
1387 * bgp_route.c (bgp_announce_check): To route server clients, we
1388 announce AS path, MED and nexthop transparently.
1389
13902001-06-21 Kunihiro Ishiguro <kunihiro@zebra.org>
1391
1392 * bgp_routemap.c (route_set_atomic_aggregate_free): Do not call
1393 XFREE. No memory is allocated in
1394 route_set_atomic_aggregate_compile().
1395
13962001-06-21 Kunihiro Ishiguro <kunihiro@zebra.org>
1397
1398 * bgp_routemap.c (bgp_route_map_init): `match nlri` and `set nlri`
1399 are replaced by `address-family ipv4` and `address-family vpnvr'.
1400
14012001-06-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1402
1403 * bgp_route.c (bgp_withdraw): Add check for BGP_PEER_CONFED.
1404 Reported by Rick Payne <rickp@rossfell.co.uk>.
1405
14062001-06-17 Kunihiro Ishiguro <kunihiro@zebra.org>
1407
1408 * bgp_zebra.c (bgp_zebra_announce): When global IPv6 nexthop is
1409 empty, use socket's remote address for the nexthop.
1410
14112001-06-04 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1412
1413 * bgpd.c (peer_delete): Fix memory leak. Reported by Yosi Yarchi
1414 <Yosi_Yarchi@KereniX.com>
1415
14162001-06-01 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1417
1418 * bgpd.c (bgp_delete): Fix memory leak. Reported by Yosi Yarchi
1419 <Yosi_Yarchi@KereniX.com>
1420
14212001-05-27 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1422
1423 * bgp_route.c (bgp_route_clear_with_afi_vpnv4): Use next instead
1424 of ri->next.
1425
1426 * bgp_packet.c (bgp_withdraw_send): MPLS/VPN withdraw takes effect
1427 when HAVE_IPV6 is not defined.
1428
14292001-03-07 "Akihiro Mizutani" <mizutani@dml.com>
1430
1431 * bgpd.c (peer_timers_set): Adjust keepalive timer to fit less
1432 than holdtime / 3.
1433 (bgp_confederation_peers_unset): Only set peer->local_as when
1434 confederation is enabled.
1435 (bgp_timers): Add "timers bgp <0-65535> <0-65535>" command.
1436
1437 * bgp_route.c (bgp_announce_check): Set med of redistributed route
1438 when it is announced to EBGP peer.
1439
14402001-03-06 "Akihiro Mizutani" <mizutani@dml.com>
1441
1442 * bgp_nexthop.c (bgp_scan_ipv4): bgp_scan() call bgp_process() for
1443 all prefixes.
1444
14452001-03-06 Kunihiro Ishiguro <kunihiro@zebra.org>
1446
1447 * bgp_attr.c (bgp_attr_origin): When bgpd send NOTIFICATION with
1448 erroneous attribute (type, length and value), it does include
1449 attribute flags field.
1450
14512001-02-21 "Akihiro Mizutani" <mizutani@dml.com>
1452
1453 * bgp_route.c (bgp_announce_check): The route reflector is not
1454 allowed to modify the attributes of the reflected IBGP routes.
1455
14562001-02-20 "Akihiro Mizutani" <mizutani@dml.com>
1457
1458 * bgp_route.c (bgp_info_cmp): During path seleciton, BGP
1459 confederation peer is treated as same as IBGP peer.
1460
14612001-02-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1462
1463 * bgp_route.c (bgp_redistribute_add): Initialize attr_new with
1464 attr. Call aspath_unintern when return from this function.
1465
14662001-02-19 "Akihiro Mizutani" <mizutani@dml.com>
1467
1468 * bgpd.c (bgp_router_id_set): Reset BGP peer when router-id is
1469 changed.
1470
14712001-02-18 "Akihiro Mizutani" <mizutani@dml.com>
1472
1473 * bgp_packet.c (bgp_open_receive): When user configure holdtimer,
1474 do not refrect the value to current session.
1475
14762001-02-16 Kunihiro Ishiguro <kunihiro@zebra.org>
1477
1478 * bgp_route.c (bgp_aggregate_delete): Set BGP_INFO_ATTR_CHANGE to
1479 suppress route withdraw.
1480
1481 * bgp_damp.c (bgp_damp_init): Fix bug of flap dampening.
1482
14832001-02-16 "Akihiro Mizutani" <mizutani@dml.com>
1484
1485 * bgp_aspath.c (aspath_make_str_count): Use ',' for separator for
1486 AS_SET and AS_CONFED_SET.
1487
14882001-02-15 Kunihiro Ishiguro <kunihiro@zebra.org>
1489
1490 * bgp_route.c (bgp_process): Do not consider suppress route.
1491
1492 * bgp_aspath.c (aspath_aggregate_as_set_add): Reset asset when
1493 aspath->data is realloced.
1494
14952001-02-15 "Akihiro Mizutani" <mizutani@dml.com>
1496
1497 * bgp_attr.c (bgp_attr_aggregate_intern): Do not set atomic
1498 aggregate when using as-set.
1499
15002001-02-14 "Akihiro Mizutani" <mizutani@dml.com>
1501
1502 * bgpd.c (bgp_confederation_peers_unset): Set peer's local-as
1503 correctly.
1504
1505 * bgp_route.c (bgp_update): Just ignore AS path loop for
1506 confederation peer.
1507
15082001-02-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1509
1510 * bgp_route.c (bgp_aggregate_set): Add as_set argument.
1511 (bgp_aggregate_unset): Remove summary_only argument.
1512 (aggregate_address_as_set): New commands.
1513 "aggregate-address A.B.C.D/M as-set"
1514 "no aggregate-address A.B.C.D/M as-set"
1515
15162001-02-08 "Akihiro Mizutani" <mizutani@dml.com>
1517
1518 * bgp_route.c (bgp_announce_check): Do not modify nexthop when the
1519 route is passed by route reflector.
1520
15212001-02-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1522
1523 * bgp_route.c: "no bgp dampening" with argument.
1524 (bgp_announce_check): Do not modify nexthop when the route is
1525 passed by route reflector.
1526
15272001-02-07 "Akihiro Mizutani" <mizutani@dml.com>
1528
1529 * bgpd.c (neighbor_passive): Change "neighbor NEIGHBOR remote-as
1530 ASN passive" to "neighbor NEIGHBOR passive".
1531 (bgp_announce_check): Check well-known community attribute even
1532 when "no neighbor send-community" is set.
1533
15342001-02-03 Kunihiro Ishiguro <kunihiro@zebra.org>
1535
1536 * bgp_fsm.c (bgp_establish): Do not send keepalive at established
1537 time when keepalive timer is configured as zero.
1538
15392001-02-01 Kunihiro Ishiguro <kunihiro@zebra.org>
1540
1541 * bgp_attr.c (bgp_attr_check): When peer is IBGP peer, local
1542 preference is well-known attribute.
1543
15442001-01-30 Kunihiro Ishiguro <kunihiro@zebra.org>
1545
1546 * zebra-0.91 is released.
1547
1548 * bgp_attr.h (struct attr): Comment out DPA value.
1549 (struct attr): Change refcnt type from int to unsinged long.
1550
1551 * bgp_attr.c (attrhash_key_make): Likewise.
1552 (attrhash_cmp): Likewise.
1553 (bgp_attr_dpa): Likewise.
1554
15552001-01-30 "Akihiro Mizutani" <mizutani@dml.com>
1556
1557 * bgp_route.c (bgp_info_cmp): Make route selection completely same
1558 as Cisco's.
1559
15602001-01-30 Kunihiro Ishiguro <kunihiro@zebra.org>
1561
1562 * bgp_attr.h (BGP_ATTR_FLAG_OPTIONAL): Rename old ATTR_FLAG_* to
1563 BGP_ATTR_FLAG_* to clarify meenings.
1564
15652001-01-30 "Akihiro Mizutani" <mizutani@dml.com>
1566
1567 * bgp_route.c (route_vty_out): Display argument to suppress same
1568 prefix information display.
1569 (route_vty_out_route): Don't display mask information for
1570 classfull network.
1571
15722001-01-30 Kunihiro Ishiguro <kunihiro@zebra.org>
1573
1574 * bgp_attr.h (SET_BITMAP): Simple bitmapping macros.
1575
1576 * bgp_attr.c (bgp_attr_parse): Use bitmap for attribute type
1577 check.
1578
15792001-01-29 Kunihiro Ishiguro <kunihiro@zebra.org>
1580
1581 * bgp_attr.c (bgp_mp_reach_parse): Enclose loggin with BGP_DEBUG.
1582 (bgp_attr_parse): Comment out well-known attribute check.
1583
15842001-01-28 Kunihiro Ishiguro <kunihiro@zebra.org>
1585
1586 * bgp_route.c (bgp_static_unset): Link-local IPv6 address can't be
1587 used for network advertisement.
1588 (nlri_parse): When link-local IPv6 address NLRI comes from
1589 remote-peer, log the information then simply ignore it.
1590
1591 * bgp_zebra.c (zebra_read_ipv6): Link-local IPv6 address is not
1592 redistributed.
1593
1594 * bgp_route.c (bgp_update): Check IPv6 global nexthop
1595 reachability.
1596
15972001-01-26 Kunihiro Ishiguro <kunihiro@zebra.org>
1598
1599 * bgp_route.c (bgp_update): Check nexthop points local address or
1600 not.
1601 (bgp_static_update_vpnv4): Set valid flag.
1602
1603 * bgp_attr.c (bgp_attr_parse): Duplicate attribute check.
1604 (bgp_attr_parse): Well-known attribute check.
1605
1606 * bgp_open.c (bgp_auth_parse): Authentication is not yet supported.
1607
1608 * bgp_packet.c (bgp_valid_marker): Check marker is synchronized.
1609
1610 * bgpd.c (clear_bgp): Send NOTIFICATION Cease when SEND_CEASE is
1611 defined.
1612
1613 * bgp_snmp.c (bgp4PathAttrTable): Fix compile error.
1614
16152001-01-24 Kunihiro Ishiguro <kunihiro@zebra.org>
1616
1617 * bgpd.c (bgp_network_import_check): New command for IGP network
1618 check.
1619
16202001-01-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1621
1622 * bgp_nexthop.c (bgp_scan): Run bgp_process when IGP metric is
1623 changed. Call bgp_process once for each node.
1624
16252001-01-23 "Akihiro Mizutani" <mizutani@dml.com>
1626
1627 * bgp_route.c (bgp_info_cmp): Add IGP metric comparison.
1628
16292001-01-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1630
1631 * bgp_route.c (bgp_info_cmp): Add IGP metric comparison.
1632
1633 * bgp_nexthop.c (bgp_nexthop_lookup): Set IGP metric for valid
1634 IBGP route.
1635
16362001-01-23 "Akihiro Mizutani" <mizutani@dml.com>
1637
1638 * bgp_route.c (show_ip_bgp_prefix_longer): Add new commands.
1639 "show ip bgp A.B.C.D/M longer-prefixes"
1640 "show ip bgp ipv4 (unicast|multicast) A.B.C.D/M longer-prefixes"
1641 "show ipv6 bgp X:X::X:X/M longer-prefixes"
1642 "show ipv6 mbgp X:X::X:X/M longer-prefixes"
1643
16442001-01-20 "Akihiro Mizutani" <mizutani@dml.com>
1645
1646 * bgp_route.c (show_ip_bgp_cidr_only): Add new commands.
1647 "show ip bgp cidr-only"
1648 "show ip bgp ipv4 (unicast|multicast) cidr-only"
1649
16502001-01-18 "Akihiro Mizutani" <mizutani@dml.com>
1651
1652 * bgp_route.c (bgp_update): AS path lookup check is done in
1653 bgp_update() not in attr_parse().
1654
16552001-01-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1656
1657 * bgp_route.c (bgp_update): Call bgp_aggregate_decrement() just
1658 before bgp_attr_unintern().
1659
16602001-01-17 Kunihiro Ishiguro <kunihiro@zebra.org>
1661
1662 * bgp_route.c (bgp_update): Now intern is performed very last part
1663 of the BGP packet update procedure.
1664
16652001-01-17 "Akihiro Mizutani" <mizutani@dml.com>
1666
1667 * bgp_route.c (bgp_update): When implicit withdraw occur, reuse
1668 existing bgp_info structure.
1669
16702001-01-17 Kunihiro Ishiguro <kunihiro@zebra.org>
1671
1672 * bgp_route.c (bgp_aggregate_decrement): Fix bug of aggregate
1673 address matching method.
1674 (bgp_update):
1675
1676 * bgp_nexthop.c (bgp_nexthop_onlink): Separate EBGP nexthop onlink
1677 check and IBGP nexthop route check.
1678
16792001-01-16 "Akihiro Mizutani" <mizutani@dml.com>
1680
1681 * bgp_route.h (BGP_INFO_ATRR_CHANGED): Added for track attribute
1682 change.
1683
16842001-01-16 Kunihiro Ishiguro <kunihiro@zebra.org>
1685
1686 * bgp_route.h (struct bgp_info): Remove selected flag. Use
1687 BGP_INFO_SELECTED for flags instead.
1688 (struct bgp_info): Remove valid flag. Use BGP_INFO_VALID for
1689 flags instead.
1690 (struct bgp_info): Add igpmetric for IBGP route nexthop IGP
1691 metric.
1692 (struct bgp_info_tab): Struct bgp_info_tag is integrated into
1693 struct bgp_info.
1694 (BGP_INFO_ATRR_CHANGED): Added for track attribute change.
1695
1696 * bgp_community.c (community_val_get): gcc-2.95 on
1697 sparc-sun-solaris cause crush. This function is for avoid the
1698 crush.
1699
17002001-01-15 Kunihiro Ishiguro <kunihiro@zebra.org>
1701
1702 * bgp_packet.c (bgp_open_receive): Translated peer's packet_size
1703 clear bug is fixed.
1704
17052001-01-14 "Akihiro Mizutani" <mizutani@dml.com>
1706
1707 * bgp_packet.c (bgp_open_receive): Return notification with
1708 supported version number.
1709
17102001-01-13 Kunihiro Ishiguro <kunihiro@zebra.org>
1711
1712 * bgpd.c (bgp_show_summary): Display AS path and community
1713 entries. Suggested by: "Matt Ranney" <mjr@ranney.com>.
1714
1715 * bgp_packet.c (bgp_read_packet): Fix bug of unblocking BGP socket
1716 read. When BGP packet read is partial, we must get size and type
1717 from packet again.
1718
17192001-01-12 "Akihiro Mizutani" <mizutani@dml.com>
1720
1721 * bgp_route.c (bgp_update): Do not unset BGP_INFO_HISTORY flag.
1722 (bgp_update): When there is a history entry increment route count.
1723 (bgp_damp_set): Check BGP_CONFIG_DAMPENING flag.
1724
1725 * bgp_damp.c (bgp_damp_withdraw): Set status to
1726 BGP_DAMP_DISCONTINUE.
1727
17282001-01-11 Kunihiro Ishiguro <kunihiro@zebra.org>
1729
1730 * bgp_attr.c (bgp_mp_reach_parse): Fix warning code when second
1731 IPv6 nexthop is not link-local addresss.
1732
17332001-01-11 "Akihiro Mizutani" <mizutani@dml.com>
1734
1735 * bgp_damp.c (bgp_config_write_damp): Smart flap dampening
1736 configuration display.
1737 (bgp_damp_info_print): Display elapsed time from flap started.
1738
1739 * bgp_damp.h (struct bgp_damp_info): Add flap start time.
1740
1741 * bgpd.c (peer_create): Set last read time.
1742 (bgp_show_peer): Display last read time.
1743 (bgp_show_summary): Use BGP_CONFIG_DAMPENING flag to check
1744 configuration.
1745
1746 * bgpd.h (BGP_CONFIG_DAMPENING): Add new configuration option.
1747 (struct peer): Add last read time member.
1748 (BGP_VERSION_MP_4): Remove obsolete definition.
1749
17502001-01-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1751
1752 * bgp_nexthop.c: Remove OLD_RIB codes.
1753
1754 * bgp_route.c (bgp_process): Likewise.
1755
1756 * zebra-0.90 is released.
1757
1758 * bgp_route.h (BGP_INFO_HISTORY): Remove damped member from struct
1759 bgp_info. Instead of that use BGP_INFO_DAMPED flag.
1760 (struct bgp_info): Remove invalid member from struct bgp_info.
1761 Instead of that use BGP_INFO_HISTORY flag.
1762
17632001-01-10 "Akihiro Mizutani" <mizutani@dml.com>
1764
1765 * bgp_damp.c (bgp_damp_info_print): New function to display
1766 dampening status.
1767 (DEFAULT_HARF_LIFE): Define default value.
1768 (DEFAULT_REUSE): Likewise.
1769 (DEFAULT_SUPPRESS): Likewise.
1770 (bgp_config_write_damp): When config value is same as default
1771 value, simply display "bgp dampening" to configuration.
1772
1773 * bgp_damp.h (struct bgp_damp_info): Add flap member.
1774
1775 * bgp_route.h (struct bgp_info): Added for BGP flap dampening
1776 history status.
1777
17782001-01-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1779
1780 * bgp_nexthop.c (bgp_connected_add): Point-to-point connected
1781 address is properly handled.
1782 (bgp_connected_delete): Likewise.
1783
1784 * bgp_route.c (bgp_route_init): Turn off BGP Flap dampening code
1785 until it works fine.
1786
17872001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1788
1789 * bgpd.c (bgp_show_summary): Add BGP_VERSION_MP_4 case.
1790
1791 * bgp_route.c (bgp_update): When this is not damped route, clear
1792 ri pointer.
1793
17942001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1795
1796 * bgp_main.c: Add "-n" no_kernel option to not install route to
1797 kernel. Suggested by: "Matt Ranney" <mjr@ranney.com>
1798
17992001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1800
1801 * bgp_nexthop.c (bgp_connected_add): Revert point-to-point
1802 connected route patch. Reported by ruud@ruud.org (Ruud de Rooij)
1803
1804 * bgp_damp.c (bgp_config_write_damp): Add configuration display
1805 function.
1806
1807 * bgp_route.c (bgp_info_free): Set NULL to BGP dampening
1808 information when BGP info structure is freed.
1809 (bgp_info_cmp): Check damped flag.
1810 (bgp_announce_check): Damped route is not announced.
1811
18122001-01-09 "Akihiro Mizutani" <mizutani@dml.com>
1813
1814 * bgpd.c (neighbor_capability_route_refresh): Change "neighbor
1815 route-refresh" command to "neighbor capability route-refresh".
1816 (clear_bgp_soft_in): Change soft-reconfig method.
1817
1818 clear ip bgp <neighbor> soft in
1819 --------------------------------------
1820 Try stored cache first then route-refresh
1821
1822 clear ip bgp <neighbor> in
1823 ---------------------------------
1824 Try route-refresh first then try to use stored cache
1825
18262001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1827
1828 * bgp_nexthop.c (bgp_connected_add): Check point-to-point
1829 connected route. Reported by ruud@ruud.org (Ruud de Rooij)
1830
18312001-01-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1832
1833 * bgp_nexthop.c (bgp_nexthop_lookup): When IBGP nexthop is
1834 changed, refresh it.
1835
18362001-01-04 Kunihiro Ishiguro <kunihiro@zebra.org>
1837
1838 * bgp_route.h (struct bgp_info_tag): Add as_selected to
1839 bgp_info_tag.
1840
18412001-01-03 Kunihiro Ishiguro <kunihiro@zebra.org>
1842
1843 * bgp_route.h (struct bgp_info_tag): Add damped and bgp_damp_info
1844 member for BGP flap dampening.
1845
1846 * bgp_damp.c: New file is added.
1847
1848 * bgp_damp.h: Likewise.
1849
18502001-01-01 Kunihiro Ishiguro <kunihiro@zebra.org>
1851
1852 * bgpd.h (BGP_VTYSH_PATH): Change "/tmp/bgpd" to "/tmp/.bgpd".
1853
18542000-12-29 Kunihiro Ishiguro <kunihiro@zebra.org>
1855
1856 * bgp_nexthop.c (zlookup_connect): Change to use UNIX domain
1857 socket for zebra communication.
1858
18592000-12-29 Akihiro Mizutani <mizutani@dml.com>
1860
1861 * bgp_route.c (bgp_process): Fix "bgp deterministic-med" process.
1862
18632000-12-27 Akihiro Mizutani <mizutani@dml.com>
1864
1865 * bgp_route.c (bgp_process): Add "bgp deterministic-med" process.
1866
18672000-12-25 Akihiro Mizutani <mizutani@dml.com>
1868
1869 * bgp_route.c (bgp_info_cmp): Use ntohl comparing router ID.
1870
18712000-12-18 Akihiro Mizutani <mizutani@dml.com>
1872
1873 * bgp_route.c (bgp_info_cmp): When over three same prefix exit,
1874 withdrawing best prefix perform router ID comparison.
1875
18762000-12-15 Akihiro Mizutani <mizutani@dml.com>
1877
1878 * bgp_route.c (bgp_info_cmp): Do not compare router ID when the
1879 routes comes from EBGP peer. When originator ID is same, take
1880 shorter cluster-list route. If cluster-list is same take smaller
1881 IP address neighbor's route.
1882
1883 * bgpd.c (bgp_bestpath_aspath_ignore): Add "bgp bestpath as-path
1884 ignore" command. When this option is set, do not concider AS path
1885 length when route selection.
1886 (bgp_bestpath_compare_router_id): Add "bgp bestpath
1887 compare-routerid". When this option is set, compare router ID
1888 when the routes comes from EBGP peer.
1889
18902000-12-15 Akihiro Mizutani <mizutani@dml.com>
1891
1892 * bgp_route.c (bgp_info_cmp): Compare originator ID when it is
1893 available.
1894
18952000-12-14 Akihiro Mizutani <mizutani@dml.com>
1896
1897 * bgp_packet.c (bgp_notify_receive): Disply received Notify data
1898 information.
1899
19002000-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1901
1902 * bgp_filter.c (as_filter_free): Use MTYPE_AS_FILTER_STR to make
1903 it sure the memory is freed.
1904
1905 * bgp_route.c (route_vty_out_detail): Do not use AF_INET6 outside
1906 HAVE_IPV6.
1907
19082000-12-08 Akihiro Mizutani <mizutani@dml.com>
1909
1910 * bgp_packet.c (bgp_notify_send_with_data): Store BGP notification
1911 data part.
1912
1913 * bgp_network.c (bgp_accept): When BGP connection comes from
1914 unconfigured IP address, close socket immediately.
1915
1916 * bgpd.c: Fix some display format.
1917
19182000-11-29 Kunihiro Ishiguro <kunihiro@zebra.org>
1919
1920 * bgp_packet.c (bgp_keepalive_send): Delete duplicate
1921 bgp_packet_set_size () call.
1922
19232000-11-28 Kunihiro Ishiguro <kunihiro@zebra.org>
1924
1925 * bgp_packet.c (bgp_read_packet): Remove debug codes.
1926
19272000-11-27 Kunihiro Ishiguro <kunihiro@zebra.org>
1928
1929 * bgp_snmp.c (write_bgpPeerTable): Add SNMP set method routine.
1930
1931 * bgp_fsm.c (bgp_stop): Use fsm_change_status to change peer's
1932 status.
1933 (bgp_establish): Likewise.
1934
19352000-11-26 Akihiro Mizutani <mizutani@dml.com>
1936
1937 * bgp_open.c: Fix error messages.
1938
19392000-11-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1940
1941 * bgp_fsm.c (bgp_establish): Call BGP trap when the peer is
1942 established.
1943 (bgp_stop): Call BGP trap when the peer is dropped.
1944
19452000-11-24 Kunihiro Ishiguro <kunihiro@zebra.org>
1946
1947 * bgp_snmp.c (bgp4PathAttrTable): Return BGP path attribute table.
1948
1949 * bgpd.h (struct peer): Add update_time for track last update
1950 received time.
1951
1952 * bgp_packet.c (bgp_notify_receive): Preserv notify code and sub
1953 code in any case.
1954
1955 * bgp_snmp.c (bgpPeerTable): Return remote router ID instead of
1956 peering IP address.
1957 (bgpPeerTable): Return actual BGP version number.
1958
19592000-11-22 Akihiro Mizutani <mizutani@dml.com>
1960
1961 * bgp_debug.c (bgp_notify_print): Notify data length display bug
1962 is fixed.
1963
19642000-11-16 Kunihiro Ishiguro <kunihiro@zebra.org>
1965
1966 * bgp_nexthop.c (zlookup_connect): When UNIX domain connection to
1967 zebra is enabled, use the method.
1968
19692000-11-16 Akihiro Mizutani <mizutani@dml.com>
1970
1971 * bgpd.c: Revise debug message output.
1972
19732000-11-15 Akihiro Mizutani <mizutani@dml.com>
1974
1975 * bgp_clist.c (ip_community_list): Fix bug of string comparison.
1976
19772000-11-14 Akihiro Mizutani <mizutani@dml.com>
1978
1979 * bgp_community.c (community_match): Fix bug of memcmp return
1980 value check.
1981
19822000-11-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1983
1984 * bgp_clist.c (community_list_match_exact): Add check for
1985 entry->style is COMMUNITY_LIST.
1986 (community_match_regexp): Apply new com_nthval macro.
1987
19882000-11-07 Rick Payne <rickp@rossfell.co.uk>
1989
1990 * bgp_routemap.c (route_set_community_delete): "set
1991 community-delete COMMUNITY-LIST" is added.
1992
1993 * bgp_community.c (community_del_val): Delete one community.
1994 (community_delete): Delete all community included in list.
1995 (community_match): Fix bug of matching community value.
1996
1997 * bgp_clist.c (community_entry_free): Free community regular
1998 expression.
1999 (community_entry_make): Default style is COMMUNITY_LIST.
2000 (community_entry_lookup): Make it sure style is COMMUNITY_LIST.
2001 (community_entry_regexp_lookup): New function for community
2002 regular expression lookup.
2003 (community_match_regexp): New function.
2004 (community_delete_regexp): New function.
2005 (community_list_delete_entries): New function.
2006 (community_list_match): Add COMMUNITY_REGEXP treatment.
2007 (community_list_match_exact): Likewise.
2008 (config_write_community): Write community list according to
2009 entry->style.
2010
20112000-11-07 Rick Payne <rickp@rossfell.co.uk>
2012
2013 * bgp_attr.c (bgp_attr_aspath): AS path first AS check.
2014
2015 * bgp_clist.c (struct community_entry): Add style, regexp, reg to
2016 community_entry.
2017
20182000-11-06 Rick Payne <rickp@rossfell.co.uk>
2019
2020 * bgp_aspath.c (aspath_firstas_check): AS path first AS check.
2021
2022 * bgpd.c (bgp_enforce_first_as): New command "bgp
2023 enforce-first-as".
2024
2025 * bgpd.h (BGP_CONFIG_ENFORCE_FIRST_AS): Add new flag.
2026
20272000-11-06 Kunihiro Ishiguro <kunihiro@zebra.org>
2028
2029 * bgp_community.c (community_compare): Copy byte stream data to
2030 actual value instead of using type casting hack.
2031 (community_add_val): Likewise.
2032 (community_uniq_sort): Likewise.
2033 (community_print): Likewise.
2034 (community_print_vty): Likewise.
2035 (community_include): Use memcmp to compare community value.
2036
2037 * bgp_community.h (com_lastval): com_lastval and com_nthval macro
2038 return pointer.
2039
20402000-11-06 Akihiro Mizutani <mizutani@dml.com>
2041
2042 * bgpd.h (struct peer): Add established and dropped member for
2043 count peering up/down statistics.
2044
2045 * bgpd.c (bgp_show_peer): Display peering up/down statistics.
2046
2047 * bgp_fsm.c (bgp_establish): Increment established count.
2048 (bgp_stop): Increment dropped count.
2049
2050 * bgp_packet.c (bgp_notify_receive): Increament notify count.
2051
20522000-11-1 Akihiro Mizutani <mizutani@dml.com>
2053
2054 * bgp_fsm.c: Fix bug of holdtimer is not reset when bgp cleared.
2055
20562000-10-31 Kunihiro Ishiguro <kunihiro@zebra.org>
2057
2058 * bgpd.h: Static bit flag is set by (1 << DIGIT).
2059
20602000-10-24 Akihiro Mizutani <mizutani@dml.com>
2061
2062 * bgp_ecommunity.c (ecommunity_dup): Extended community display
2063 format fix.
2064
20652000-10-24 Arkadiusz Miskiewicz <misiek@pld.org.pl>
2066
2067 * bgp_network.c (bgp_serv_sock_addrinfo): Use gai_strerror.
2068 (bgp_serv_sock_addrinfo): Check address family.
2069
20702000-10-23 Jochen Friedrich <jochen@scram.de>
2071
2072 * bgp_snmp.c: bgp_oid and bgpd_oid are used in smux_open after it
2073 is registered. So those variables must be static.
2074
20752000-10-23 Akihiro Mizutani <mizutani@dml.com>
2076
2077 * bgp_routemap.c (route_match_ip_next_hop): Change "match ip
2078 next-hop" argument from IP address to access-list name.
2079 Remove zebra-0.88 compatibility commands.
2080 "match ip prefix-list WORD"
2081 "match ipv6 prefix-list WORD"
2082
20832000-10-23 Kunihiro Ishiguro <kunihiro@zebra.org>
2084
2085 * bgp_routemap.c (route_match_ipv6_next_hop_compile): Fix bug of
2086 passing the pointer to the pointer of struct in6_addr instead of
2087 the pointer of struct in6_addr in "match ipv6 next-hop" command.
2088
2089 * bgp_route.c (bgp_announce_check): Enclose IPv6 part with
2090 HAVE_IPV6.
2091
20922000-10-20 Jasper Wallace <jasper@ivision.co.uk>
2093
2094 * bgp_snmp.c (bgpPeerTable): ntohs missing bug is fixed. Change
2095 to use linklist.c. Define COUNTER32 as ASN_COUNTER.
2096
20972000-10-18 Kunihiro Ishiguro <kunihiro@zebra.org>
2098
2099 * bgp_route.c (bgp_announce_check): attr->nexthop empty check
2100 should be done by attr->nexthop.s_addr instead of strcmp.
2101
21022000-10-18 Akihiro Mizutani <mizutani@dml.com>
2103
2104 * bgp_zebra.c (zebra_read_ipv4): Pass nexthop value to
2105 bgp_redistribute_add().
2106
2107 * bgp_nexthop.c (bgp_multiaccess_check_v4): New function for
2108 checking IPv4 multiaccess nexthop.
2109
2110 * bgp_route.c (bgp_announce_check): In case of the nexthop is
2111 reachable on multiaccess media, do not change nexthop.
2112 (bgp_redistribute_add): Set nexthop when the value is passed.
2113
21142000-10-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2115
2116 * bgp_fsm.c (bgp_timer_set): If peer is passive mode, do not set
2117 connect timer.
2118 (bgp_start): If the peer is passive mode, force to move to Active
2119 mode.
2120
21212000-10-17 Horms <horms@vergenet.net>
2122
2123 * bgp_debug.c (debug_bgp_fsm): Fix typo.
2124
21252000-10-17 Akihiro Mizutani <mizutani@dml.com>
2126
2127 * bgp_route.c: "show ipv6 bgp" route display improvement.
2128
21292000-10-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2130
2131 * bgp_route.c (neighbor_routes): Allocate sockunion for callback
2132 function.
2133 (bgp_show_neighbor_route): Remove static declaration for union
2134 sockunion.
2135
2136 * bgpd.c (peer_update_source_set): Clean previously allocated
2137 memory before allocate new one.
2138
21392000-10-03 Akihiro Mizutani <mizutani@dml.com>
2140
2141 * bgp_route.c (neighbor_routes): Add show neighbor's routes
2142 command.
2143 "show ip bgp neighbors (A.B.C.D|X:X::X:X) routes"
2144 "show ip bgp ipv4 (unicast|multicast) neighbors (A.B.C.D|X:X::X:X) routes"
2145 "show ipv6 bgp neighbors (A.B.C.D|X:X::X:X) routes"
2146 "show ipv6 mbgp neighbors (A.B.C.D|X:X::X:X) routes"
2147
21482000-10-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2149
2150 * zebra-0.89 is released.
2151
21522000-10-02 Akihiro Mizutani <mizutani@dml.com>
2153
2154 * bgpd.c: "bgp deterministic-med" command is added.
2155
21562000-10-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2157
2158 * bgp_nexthop.c (bgp_connected_add): Apply mask for connected
2159 route addition and deletion.
2160
21612000-09-29 Kunihiro Ishiguro <kunihiro@zebra.org>
2162
2163 * bgp_aspath.c (aspath_cmp_left): Skip confederation AS segment
2164 when comparing leftmost AS number.
2165
21662000-09-29 Akihiro Mizutani <mizutani@dml.com>
2167
2168 * bgpd.c (peer_route_reflector): Route reflector can be set for
2169 IBGP peer.
2170 (bgp_distribute_set): Fix bug of string check for (in|out).
2171 (bgp_show_summary): Display total neighbor count.
2172
21732000-09-28 Akihiro Mizutani <mizutani@dml.com>
2174
2175 * bgp_attr.c (bgp_packet_attribute): Only add cluster_list and
2176 originator for clinet to client routes.
2177 (bgp_packet_attribute): Add new cluster_list to the beginning of
2178 existing cluster_list.
2179 (bgp_packet_attribute): Fix bug of originator is rewritten even
2180 when originator is already set.
2181
21822000-09-27 Kunihiro Ishiguro <kunihiro@zebra.org>
2183
2184 * bgpd.c (bgp_client_to_client_reflection): Add new command.
2185 "no bgp client-to-client reflection"
2186 "bgp client-to-client reflection"
2187
2188 * bgpd.h (BGP_CONFIG_NO_CLIENT_TO_CLIENT): Add new definition.
2189
21902000-09-26 Kunihiro Ishiguro <kunihiro@zebra.org>
2191
2192 * bgp_packet.c (bgp_read): Make BGP packet read to non-blocking
2193 read.
2194 (bgp_read_packet): Likewise.
2195 (bgp_read_packet): When errono is EAGAIN, try to read it again.
2196
2197 * bgp_fsm.c (bgp_stop): Clear packet size and read buffer.
2198
21992000-09-26 Akihiro Mizutani <mizutani@dml.com>
2200
2201 * bgp_routemap.c: Configuration of prefix-list match is shown as
2202 "match ip address prefix-list <WORD>". Old configuration "match
2203 ip prefix-list <WORD>" is left for compatibilitty.
2204
22052000-09-25 Akihiro Mizutani <mizutani@dml.com>
2206
2207 * bgpd.h (BGP_CONFIG_MED_MISSING_AS_WORST): Changed from
2208 BGP_CONFIG_MISSING_AS_WORST.
2209
2210 * bgpd.c (bgp_bestpath_med): Change missing-as-worst syntax.
2211 Old "bgp bestpath missing-as-worst"
2212 New "bgp bestpath med missing-as-worst"
2213
22142000-09-24 Akihiro Mizutani <mizutani@dml.com>
2215
2216 * bgp_route.c: Compare MED properly in case of CONFED-IBGP.
2217
22182000-09-21 steve@Watt.COM (Steve Watt)
2219
2220 * bgp_debug.h: Do not declare debug variables conf_bgp_debug_* and
2221 term_bgp_debug_*.
2222
2223 * bgp_debug.c: Declare variables here.
2224
22252000-09-21 Akihiro Mizutani <mizutani@dml.com>
2226
2227 * bgpd.c: MBGP soft-reconfiguration command is added.
2228 clear ip bgp x.x.x.x ipv4 (unicast|multicast) in
2229 clear ip bgp x.x.x.x ipv4 (unicast|multicast) out
2230 clear ip bgp x.x.x.x ipv4 (unicast|multicast) soft
2231 clear ip bgp <1-65535> ipv4 (unicast|multicast) in
2232 clear ip bgp <1-65535> ipv4 (unicast|multicast) out
2233 clear ip bgp <1-65535> ipv4 (unicast|multicast) soft
2234 clear ip bgp * ipv4 (unicast|multicast) in
2235 clear ip bgp * ipv4 (unicast|multicast) out
2236 clear ip bgp * ipv4 (unicast|multicast) soft
2237
2238 Change "clear ip bgp vpnv4 x.x.x.x soft" command to
2239 "clear ip bgp x.x.x.x vpnv4 unicast soft".
2240
2241 "bgp bestpath med confed" command is added.
2242
2243 * bgpd.h (BGP_CONFIG_MED_CONFED): Add New definition.
2244
22452000-09-18 Rick Payne <rickp@rossfell.co.uk>
2246
2247 * bgpd.c (bgp_show_peer): Fix misplaced #endif.
2248
22492000-09-12 Akihiro Mizutani <mizutani@dml.com>
2250
2251 * bgpd.c (bgp_default_local_preference): Add "bgp default
2252 local-preference" command.
2253
2254 * bgp_nexthop.c (no_bgp_scan_time): Add "no bgp scan-time"
2255 command.
2256
22572000-09-10 Kunihiro Ishiguro <kunihiro@zebra.org>
2258
2259 * bgp_zebra.c (bgp_zebra_announce): BGP confederation peer's routes
2260 are passed to zebra like IBGP route.
2261
22622000-09-10 Akihiro Mizutani <mizutani@dml.com>
2263
2264 * bgpd.c (bgp_config_write_peer): Make it consistent passive
2265 configuration.
2266
2267 * bgp_route.c: Community match command is added.
2268 "show ip bgp community <val>"
2269 "show ip bgp community <val> exact-match"
2270
22712000-09-08 Kunihiro Ishiguro <kunihiro@zebra.org>
2272
2273 * bgp_nexthop.c (bgp_nexthop_lookup): ebgp-multihop routes are
2274 treated as IBGP routes.
2275
22762000-09-08 Akihiro Mizutani <mizutani@dml.com>
2277
2278 * bgp_route.c (bgp_show_route): When local-AS community route is
2279 selected, display "not advertised outside local AS" to "show ip
2280 route A.B.C.D" output.
2281 (show_ip_bgp_ipv4_filter_list): Add below four commands.
2282 "show ip bgp ipv4 (unicast|multicast) filter-list WORD"
2283 "show ip bgp ipv4 (unicast|multicast) community"
2284 "show ip bgp ipv4 (unicast|multicast) community-list WORD"
2285 "show ip bgp ipv4 (unicast|multicast) community-list WORD exact-match"
2286
2287 * bgp_clist.c (community_list_match_exact): Community exact match
2288 function.
2289
22902000-09-07 Kunihiro Ishiguro <kunihiro@zebra.org>
2291
2292 * bgp_route.c (bgp_update): Add peer's ttl check.
2293
2294 * bgpd.h (struct peer): Structure member refresh is renamed to
2295 refresh_adv.
2296
2297 * bgpd.c (clear_bgp_soft_in): Check PEER_FLAG_ROUTE_REFRESH flag
2298 when soft reconfiguration is performed.
2299
2300 * bgp_zebra.c (bgp_zebra_announce): When the peer is EBGP and
2301 ebgp-multiphop is set, set ZEBRA_FLAG_INTERNAL for nexthop lookup.
2302
2303 * bgp_route.h (struct bgp_info_tag): Add valid flag.
2304
23052000-08-25 Akihiro Mizutani <mizutani@dml.com>
2306
2307 * bgpd.c: Add AS base BGP soft reconfiguration.
2308
2309 * bgp_route.c: When no-advertise or no-export route is selected,
2310 "show ip bgp" display "not advertised to EBGP peer" or "not
2311 advertised to any peer" message.
2312
23132000-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2314
2315 * zebra-0.88 is released.
2316
2317 * bgp_dump.c (dump_bgp_routes): Change "dump bgp routes" to "dump
2318 bgp route-mrt" to support MRT specific dump format.
2319
2320 * bgpd.c (bgp_init): "clear ip bgp vpnv4 soft {in,out}" command is
2321 added.
2322
2323 * bgp_route.c (bgp_update): Currently nexthop check is only works
2324 for IPv4.
2325
23262000-08-17 Akihiro Mizutani <mizutani@dml.com>
2327
2328 * bgpd. (clear_ip_bgp_all_soft): Add "clear ip bgp * soft" for
2329 both inbound and outbound soft reconfiguration.
2330
23312000-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2332
2333 * bgpd.c (clear_ip_bgp_peer_soft_out): Add soft-reconfiguration
2334 outbound.
2335 (peer_new): Set route-refresh flag.
2336
23372000-08-16 Akihiro Mizutani <mizutani@dml.com>
2338
2339 * bgpd.c: "no bgp router-id A.B.C.D" alias is added. "no bgp
2340 cluster-id A.B.C.D" alias is added. " bgp cluster-id
2341 <1-4294967295>" alias is added. "clear ip bgp * soft in" command
2342 is added. "clear ip bgp A.B.C.D in" alias is added. "clear ip
2343 bgp * in" alias is added.
2344
23452000-08-16 Kunihiro Ishiguro <kunihiro@zebra.org>
2346
2347 * bgp_route.c (bgp_update): Add soft_reconfig flag. When the flag
2348 is set do not install the route into Adj-RIBs-In.
2349 (bgp_update): Perform implicit withdraw before filtering of the
2350 route.
2351
2352 * bgp_packet.c (bgp_read): draft-ietf-idr-bgp-route-refresh-01.txt
2353 capability code and BGP message can be accepted.
2354
2355 * bgp_open.c (bgp_capability_parse): Likewise.
2356
2357 * bgp_route.c (bgp_refresh_table): New function for route refresh.
2358 (bgp_refresh_rib): Likewise.
2359
2360 * bgpd.c (bgp_show_peer): Display route refresh status.
2361
2362 * bgp_route.c (bgp_aggregate_add): Add check for the route
2363 validness.
2364 (bgp_aggregate_delete): Likewise.
2365
23662000-08-15 Kunihiro Ishiguro <kunihiro@zebra.org>
2367
2368 * bgp_nexthop.c (bgp_scan): Care for aggregate route when the
2369 route become inaccessible.
2370
23712000-08-15 Akihiro Mizutani <mizutani@dml.com>
2372
2373 * bgp_route.c (show_ip_bgp_prefix): "show ip bgp A.B.C.D/M"
2374 command is added.
2375
23762000-08-15 Kunihiro Ishiguro <kunihiro@zebra.org>
2377
2378 * bgp_zebra.c (bgp_interface_up): Register connected route.
2379 (bgp_interface_down): Unregister connected route.
2380
23812000-08-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2382
2383 * bgp_route.h (struct bgp_info): Add distance to the structure.
2384
2385 * bgp_route.c (bgp_aggregate_increment): Aggregate route only
2386 match to smaller prefixlen route not match same prefixlen route.
2387 (bgp_aggregate_decrement): Likewise.
2388 (bgp_aggregate_add): Likewise.
2389 (bgp_aggregate_delete): Likewise.
2390 (bgp_network_backdoor): Add backdoor network configuration.
2391
2392 * bgpd.h (struct bgp ): Add distance_{ebgp,ibgp,local} for store
2393 configuration distance value.
2394
2395 * bgp_route.c (bgp_update): Filter EBGP route which has non
2396 connected nexthop.
2397
2398 * bgp_attr.c (bgp_attr_aggregate_intern): New function for
2399 aggregate route. Set origin to IGP. Set atomic aggregate flag.
2400 Set aggregator AS and address.
2401 (bgp_attr_aggregate_intern): Check BGP_CONFIG_CONFEDERATION when
2402 filling aggregator_as.
2403
2404 * bgp_route.c (bgp_process): Delete suppress check for install
2405 suppressed route into local routing table.
2406 (bgp_aggregate_increment): Use bgp_attr_aggregate_intern() instead
2407 of bgp_attr_default_intern ().
2408 (bgp_aggregate_add): Likewise.
2409
2410 * bgpd.c (bgp_get): Call bgp_if_update_all() after BGP instance is
2411 created. This is for avoid 0.0.0.0 router-id.
2412
24132000-08-13 Akihiro Mizutani <mizutani@dml.com>
2414
2415 * bgp_route.c (route_vty_out_detail): Display "valid" when the
2416 route is valied. Display "aggregated" when the route is
2417 aggregated. "Advertisements suppressed by an aggregate" is
2418 displayed when the route is suppressed.
2419 (bgp_info_cmp): Prefer EBGP than Confed-EBGP.
2420
24212000-08-10 Akihiro Mizutani <mizutani@dml.com>
2422
2423 * bgp_route.c (route_vty_out_detail): Display format change.
2424
24252000-08-06 Kunihiro Ishiguro <kunihiro@zebra.org>
2426
2427 * bgp_route.c (bgp_update): Only AFI_IP nexthop check is enabled.
2428
2429 * bgpd.c (bgp_delete): Delete static route before delete peer
2430 configuration.
2431
24322000-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2433
2434 * bgpd.c: Include bgpd/bgp_nexthop.h.
2435
24362000-07-31 Akihiro Mizutani <mizutani@dml.com>
2437
2438 * bgpd.c (bgp_show_summary): "show ip bgp summary" shows own BGP
2439 identifier. And status is changed like below.
2440
2441 State/Pref -> State/PfxRcd
2442 Shutdown -> Idle (Admin)
2443 PrefixOvflw -> Idle (PfxCt)
2444
2445 * bgp_route.c (route_vty_out): Show internal route as "i".
2446
24472000-07-13 Jim Bowen <jimb@zereau.net>
2448
2449 * bgp_snmp.c: Add BGP peer MIB implementation.
2450
24512000-07-12 Akihiro Mizutani <mizutani@dml.com>
2452
2453 * bgpd.c (bgp_show_peer): Fix typo.
2454
24552000-07-11 Akihiro Mizutani <mizutani@dml.com>
2456
2457 * bgp_routemap.c: Add commands for deleting set without argument.
2458
24592000-07-03 Akihiro Mizutani <mizutani@dml.com>
2460
2461 * bgp_zebra.c: Fix redistribute help strings.
2462
24632000-07-01 Kunihiro Ishiguro <kunihiro@zebra.org>
2464
2465 * bgp_route.c (bgp_show): When bgpd works as vtysh server send all
2466 output to vty at once.
2467
24682000-06-13 Kunihiro Ishiguro <kunihiro@zebra.org>
2469
2470 * bgp_mplsvpn.c (no_vpnv4_network): "no network A.B.C.D/M rd WORD
2471 tag WORD" command is added.
2472
2473 * bgp_ecommunity.c (ecommunity_vty_out): New function added.
2474
24752000-06-12 Kunihiro Ishiguro <kunihiro@zebra.org>
2476
2477 * bgp_route.c (bgp_show): Fix total number of prefix count bug.
2478
2479 * bgpd.c (bgp_show_peer): Display VPNv4 unicast configuration and
2480 negotiation result in "show ip bgp neighbors".
2481
24822000-06-12 Akihiro Mizutani <mizutani@dml.com>
2483
2484 * bgpd.c: Fix help strings.
2485
2486 * bgpd.h: Likewise.
2487
24882000-06-11 Kunihiro Ishiguro <kunihiro@zebra.org>
2489
2490 * bgp_route.c (bgp_aggregate_unset): Fix bug of checking rn->info
2491 instead of rn. Reported by Akihiro Mizutani <mizutani@dml.com>.
2492
2493 * bgp_mplsvpn.c (vpnv4_network): For testing purpose, "network
2494 A.B.C.D rd RD" is added to address-family vpnv4 unicast node.
2495
2496 * bgp_route.c (bgp_static_set): Set safi to p.safi.
2497
24982000-06-10 Kunihiro Ishiguro <kunihiro@zebra.org>
2499
2500 * bgp_route.c (bgp_show_prefix_list): Change to use bgp_show().
2501 (bgp_show_regexp): Change to use bgp_show().
2502 (show_adj_route): Change to display header.
2503
2504 * bgpd.c (clear_bgp): Set peer->v_start to default value when peer
2505 is cleared manually.
2506
2507 * bgp_route.c (bgp_show_route): New function which display
2508 specific BGP route. Divided from bgp_show().
2509 (bgp_static_delete): Delete all static route.
2510
25112000-06-09 NOGUCHI Kay <kay@v6.access.co.jp>
2512
2513 * bgp_route.c (show_ipv6_bgp): "show ipv6 bgp" is broken with
2514 invalid privious fix. Now show_ipv6_bgp and show_ipv6_bgp_route
2515 take care of "show ipv6 bgp [X:X::X:X]". Same change for "show ip
2516 mbgp" and "show ipv6 mbgp".
2517
25182000-06-07 Akihiro Mizutani <mizutani@dml.com>
2519
2520 * bgp_route.c: Fix help strings and command arguments.
2521
25222000-06-06 Kunihiro Ishiguro <kunihiro@zebra.org>
2523
2524 * bgp_ecommunity.c: Include prefix.h
2525
25262000-06-05 Kunihiro Ishiguro <kunihiro@zebra.org>
2527
2528 * bgp_route.h (struct bgp_info_tag): New structure to hold tag
2529 value.
2530
2531 * bgp_route.c (bgp_adj_set): table NULL check is added.
2532 (bgp_adj_unset): Likewise.
2533 (bgp_adj_lookup): Likewise.
2534 (bgp_adj_clear): Likewise.
2535 (route_vty_out): Add SAFI check for nexthop display.
2536 (bgp_withdraw): Add SAFI check for withdraw route.
2537
2538 * Remove all #ifdef MPLS_VPN then include it as default.
2539
2540 * bgpd.c: Temporary disable peer-group command until the
2541 implementation is completed.
2542
2543 * bgp_routemap.c (bgp_route_map_init): Install
2544 route_metric_match_cmd.
2545 (route_match_metric_compile): MED value compile using strtoul.
2546
25472000-06-05 Akihiro Mizutani <mizutani@dml.com>
2548
2549 * bgp_filter.c: Fix help strings. Change REGEXP to LINE. Change
2550 NAME to WORD.
2551
2552 * Change command argument to more comprehensive.
2553
2554 METRIC -> <0-4294967295>
2555 WEIGHT -> <0-4294967295>
2556 LOCAL_PREF -> <0-4294967295>
2557 IP_ADDR -> A.B.C.D
2558 AS -> <1-65535>
2559 AS-PATH-NAME -> WORD
2560 ACCESS_LIST -> WORD
2561 PREFIX_LIST -> WORD
2562 COMMUNITY -> AA:NN
2563 EXT_COMMUNITY -> ASN:nn_or_IP-address:nn
2564 IPv6_ADDR -> X:X::X:X
2565
2566 * bgp_clist.c: Fix help strings.
2567
25682000-06-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2569
2570 * bgpd.c (peer_active): Add new function for check the peer is
2571 active or not.
2572 (neighbor_activate): New command "neighbor PEER activate" and "no
2573 neighbor PEER activate" are added.
2574
2575 * bgp_packet.c: Include bgpd/bgp_mplsvpn.h.
2576
25772000-06-02 Akihiro Mizutani <mizutani@dml.com>
2578
2579 * bgp_clist.c: Fix commuity-list help strings.
2580
2581 * bgp_routemap.c: Fix "set community" help strings. Add #define
2582 SET_STR. Use (unicast|multicast) argument for "set nlri" command.
2583
25842000-06-01 Kunihiro Ishiguro <kunihiro@zebra.org>
2585
2586 * bgp_routemap.c (route_set_community_none_cmd): "set community
2587 none" command is added to route-map.
2588
25892000-06-01 Akihiro Mizutani <mizutani@dml.com>
2590
2591 * bgp_debug.c: Change "show debug" to "show debugging". Now "show
2592 debugging" is not used in VIEW_NODE.
2593
25942000-05-30 Kunihiro Ishiguro <kunihiro@zebra.org>
2595
2596 * bgp_fsm.c (bgp_timer_set): Add check for shutdown flag. This
2597 fix unconditional BGP connection.
2598
2599 * bgpd.c (peer_shutdown): Replace peer_shutdown() with
2600 peer_change_flag_with_reset().
2601
26022000-05-26 Kunihiro Ishiguro <kunihiro@zebra.org>
2603
2604 * bgpd.c (no_bgp_default_ipv4_unicast): Add "no bgp default
2605 ipv4-unicast" command.
2606
2607 * bgpd.h (BGP_CONFIG_NO_DEFAULT_IPV4): Add new definition.
2608
2609 * bgp_filter.c (as_list_delete): Free all AS filter.
2610
2611 * bgp_clist.c (community_list_delete): Free all community entry.
2612
2613 * bgp_filter.c (no_ip_as_path_all): New DEFUN for "no ip as-path
2614 access-list NAME".
2615
2616 * bgp_clist.c (no_ip_community_list_all): New DEFUN for "no ip
2617 community-list NAME".
2618
26192000-05-19 Kunihiro Ishiguro <kunihiro@zebra.org>
2620
2621 * bgp_route.c (ipv6_mbgp_neighbor_routes): Change "show ip bgp PEER
2622 routes" to "show ip bgp PEER received-routes"
2623
26242000-05-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2625
2626 * bgp_ecommunity.c (ecommunity_parse): New file for Extended
2627 Communities attribute.
2628 * bgp_ecommunity.h: Likewise.
2629
26302000-05-11 Kunihiro Ishiguro <kunihiro@zebra.org>
2631
2632 * bgp_mplsvpn.h: New file for MPLS-VPN.
2633 * bgp_mplsvpn.c: Likewise.
2634
2635 * bgpd.c (bgp_delete): Fix bug of "no router bgp" crush.
2636
26372000-05-10 Kunihiro Ishiguro <kunihiro@zebra.org>
2638
2639 * bgpd.c (bgp_bestpath_missing_as_worst): Add "bgp bestpath
2640 missing-as-worst".
2641
26422000-05-08 Kunihiro Ishiguro <kunihiro@zebra.org>
2643
2644 * bgp_routemap.c (match_community): Clarify help of "match
2645 community".
2646
26472000-05-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2648
2649 * bgp_aspath.c (aspath_cmp_left): Remove debug code.
2650
26512000-04-27 Kunihiro Ishiguro <kunihiro@zebra.org>
2652
2653 * bgp_route.c (bgp_info_cmp): Compare MED only both routes comes
2654 from same neighboring AS.
2655
2656 * bgp_aspath.c (aspath_cmp_left): Compare leftmost AS value.
2657
2658 * bgp_route.c (bgp_info_cmp): Fix misused htonl() to ntohl().
2659
26602000-04-26 Kunihiro Ishiguro <kunihiro@zebra.org>
2661
2662 * bgp_route.c (bgp_output_filter): When distribute-list's
2663 corresponding access-list does not exist, filter all routes.
2664 (bgp_input_filter): Likewise.
2665
26662000-04-19 Kunihiro Ishiguro <kunihiro@zebra.org>
2667
2668 * bgp_attr.c (bgp_packet_attribute): Propagate MED to IBGP peer.
2669
2670 * bgp_route.c (bgp_info_cmp): Add evaluation of local preference.
2671
26722000-04-18 Kunihiro Ishiguro <kunihiro@zebra.org>
2673
2674 * bgpd.c (bgp_distribute_update): Add struct access_list *
2675 argument.
2676
26772000-04-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2678
2679 * bgp_clist.c (community_list_dup_check): Add duplicate insertion
2680 check.
2681
2682 * bgp_filter.c (as_list_dup_check): Add duplicate insertion check.
2683
2684 * bgp_route.c (bgp_show): Fix undeclared write variable.
2685
26862000-04-13 Kunihiro Ishiguro <kunihiro@zebra.org>
2687
2688 * bgp_routemap.c: Add "match ip address prefix-list".
2689
26902000-03-29 Rick Payne <rickp@rossfell.co.uk>
2691
2692 * bgp_aspath.c (aspath_strip_confed): Fix realloc problem.
2693
26942000-03-16 Kunihiro Ishiguro <kunihiro@zebra.org>
2695
2696 * bgp_fsm.c (bgp_reconnect): Connect retry timer is expired when
2697 the peer status is Connect.
2698
26992000-03-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2700
2701 * Fix bug of rewritten originator-id.
2702
27032000-01-27 Rick Payne <rickp@rossfell.co.uk>
2704
2705 * bgp_aspath.c (aspath_delimiter_char): New function. Instead of
2706 directly referencing array, search proper AS path delimiter.
2707 (aspath_strip_confed): Strip the confederation stuff from the
2708 front of an AS path.
2709 (aspath_add_left_confed): New function for adding specified AS to
2710 the leftmost AS_CONFED_SEQUENCE.
2711
2712 * bgp_aspath.h: Change AS_CONFED_SEQUENCE and AS_CONFED_SET value
2713 to Cisco compatible.
2714
2715 * bgpd.c (bgp_confederation_id_set): Confederation configuration.
2716 (bgp_confederation_id_unset): Likewise.
2717 (bgp_confederation_peers_check): Likewise.
2718 (bgp_confederation_peers_add): Likewise.
2719 (bgp_confederation_peers_remove): Likewise.
2720 (bgp_confederation_peers_set): Likewise.
2721 (bgp_confederation_peers_unset): Likewise.
2722 (bgp_confederation_peers_print): Likewise.
2723
27242000-01-16 Kunihiro Ishiguro <kunihiro@zebra.org>
2725
2726 * bgpd.c: Introduce peer_change_flag_with_reset() fucntion.
2727
27282000-01-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2729
2730 * bgp_open.c (bgp_open_option_parse): When there is no common
2731 capability send Unsupported Capability error to the peer.
2732
27332000-01-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2734
2735 * bgp_open.c (bgp_capability_mp): Fix bug of mis-negotiation about
2736 IPv6 unicast.
2737
2738 * bgpd.c (bgp_init): Add "soft-reconfiguration inbound" command.
2739
27402000-01-12 Kunihiro Ishiguro <kunihiro@zebra.org>
2741
2742 * bgpd.c (neighbor_strict_capability): Add
2743 "strict-capability-match" command.
2744
2745 * bgp_zebra.c (bgp_if_update): Ignore NET127 determining
2746 router-id.
2747
2748 * bgpd.c (peer_override_capability): Add "override-capability"
2749 command.
2750
27511999-12-16 Kunihiro Ishiguro <kunihiro@zebra.org>
2752
2753 * bgp_packet.c (bgp_write): Change status to Idle and set timer
2754 after write failed.
2755
27561999-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2757
2758 * bgp_zebra.c (bgp_zebra_announce): Add info->selected check.
2759
27601999-12-12 Kunihiro Ishiguro <kunihiro@zebra.org>
2761
2762 * bgp_route.c (nlri_unfeasible): nlri_unfeasible() is merged with
2763 nlri_parse().
2764
27651999-12-10 Kunihiro Ishiguro <kunihiro@zebra.org>
2766
2767 * bgp_fsm.h (BGP_EVENT_DELETE): Macro added.
2768
2769 * bgp_fsm.c (bgp_stop): Clear all event threads of the peer when
2770 the peer is cleared.
2771
2772 * bgp_zebra.c (bgp_nexthop_set): Clear interface index of
2773 link-local address. This is KAME specific problem.
2774
27751999-12-06 Kunihiro Ishiguro <kunihiro@zebra.org>
2776
2777 * bgp_attr.c (bgp_mp_reach_parse): Comment out previous code for a
2778 while. We don't completely detect the link is shared or not at
2779 this moment.
2780
2781 * bgp_packet.c (bgp_notify_send): Make shortcut call of
2782 bgp_write() and bgp_stop().
2783
2784 * bgp_attr.c (bgp_mp_reach_parse): Fix serious bug when getting
2785 global and link-local address.
2786
27871999-12-05 Kunihiro Ishiguro <kunihiro@zebra.org>
2788
2789 * bgpd.c (no_neighbor_port): New command added.
2790 (peer_new): Set send_community.
2791
27921999-12-04 Kunihiro Ishiguro <kunihiro@zebra.org>
2793
2794 * bgpd.c (show_ip_bgp_summary): Changed to use bgp_show_summary().
2795 (show_ip_mbgp_summary): Likewise.
2796 (show_ipv6_bgp_summary): Likewise.
2797 (show_ipv6_mbgp_summary): Add new command.
2798 (peer_free): Free peer->host.
2799 (peer_lookup_by_su): Delete function.
2800 (ipv6_bgp_neighbor): Changed to use peer_remote_as().
2801 (sockunion_vty_out): Function deleted.
2802 (vty_clear_bgp): Use afi instead of family.
2803 Delete old list bgp_list. Use struct newlist *bgplist.
2804 (peer_lookup_by_host): Function deleted.
2805
28061999-12-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2807
2808 * bgpd.h (struct peer_group): New structure added.
2809 (struct peer_conf): New structure added.
2810 (struct peer): Change all prefix_count to unsigned long.
2811
2812 * bgpd.c: Reconstruct all of VTY commands reflect internal
2813 structure change.
2814 Use bgplist instead of bgp_list.
2815 Use peerlist intstead of peer_list.
2816
2817 * bgp_attr.c (bgp_mp_reach_parse): If nlri_parse return -1, stop
2818 parsing then return immediately.
2819
2820 * bgp_route.c (nlri_parse): When NLRI parse error occured, return
2821 -1.
2822 (nlri_process): Use pcount_v4_{unicast,multicast}.
2823 (nlri_delete): Likewise.
2824
28251999-11-25 Robert Olsson <Robert.Olsson@data.slu.se>
2826
2827 * bgp_routemap.c (route_match_nlri): `match nlri
2828 unicast|multicast' and `set nlri unicast|multicast' command are
2829 added.
2830
28311999-11-22 Robert Olsson <Robert.Olsson@data.slu.se>
2832
2833 * bgpd.c: Add translate-update support.
2834
2835 * bgpd.h (TRANSLATE_UPDATE_OFF): Add translate-update definition.
2836
28371999-11-19 Robert.Olsson@data.slu.se
2838
2839 * bgp_route.c (bgp_peer_delete): Add MBGP peer clear codes.
2840
28411999-11-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2842
2843 * bgp_open.c (bgp_capability_mp): Temporary comment out
2844 SAFI_UNICAST_MULTICAST handling until we know the meanings.
2845
28461999-11-13 Kunihiro Ishiguro <kunihiro@zebra.org>
2847
2848 * bgp_btoa.c: New file added.
2849
28501999-11-12 Kunihiro Ishiguro <kunihiro@zebra.org>
2851
2852 * bgpd.h (struct peer): Add dont_capability flag.
2853 (struct peer): Add override_capability flag.
2854
2855 * bgpd.c (neighbor_dont_capability_negotiation): `neighbor PEER
2856 dont-capability-negotiation' added.
2857
28581999-11-12 Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
2859
2860 * bgp_attr.c (bgp_mp_reach_parse): Ignore link-local addresses
2861 attribute from non-shared-network peers.
2862
28631999-11-10 Kunihiro Ishiguro <kunihiro@zebra.org>
2864
2865 * bgp_snmp.c: New file added.
2866
2867 * BGP4-MIB.txt: Updated to the latest Internet-Draft
2868 draft-ietf-idr-bgp4-mib-04.txt.
2869
28701999-11-09 Kunihiro Ishiguro <kunihiro@zebra.org>
2871
2872 * bgp_route.c (bgp_route_init): Add `show ipv6 bgp prefix-list'.
2873
2874 * bgp_attr.c (bgp_mp_unreach_parse): Enclose safi setup with
2875 #ifdef HAVE_MBGPV4.
2876
28771999-11-08 Kunihiro Ishiguro <kunihiro@zebra.org>
2878
2879 * bgp_dump.c (no_dump_bgp_all): Add [PATH] and [INTERVAL] to no
2880 dump bgp commands.
2881 (config_write_bgp_dump): Write interval value to the
2882 configuration.
2883
28841999-11-07 Kunihiro Ishiguro <kunihiro@zebra.org>
2885
2886 * bgp_zebra.c: Redistribute route-map support is added.
2887
2888 * bgp_zebra.h: New file added.
2889
28901999-11-04 Kunihiro Ishiguro <kunihiro@zebra.org>
2891
2892 * bgp_dump.c: BGP packet dump routine compatible with MRT.
2893 * bgp_dump.h: BGP packet dump routine compatible with MRT.
2894
2895 * bgp_debug.c: Renamed from bgp_dump.c
2896 * bgp_debug.h: Renamed from bgp_dump.h
2897
28981999-10-27 Kunihiro Ishiguro <kunihiro@zebra.org>
2899
2900 * BGP4-MIB.txt: New file added. Edited version of RFC1657.
2901
29021999-10-25 Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
2903
2904 * bgp_route.c (bgp_announce): If we're not on a shared network
2905 with the peer and we don't have a link-local next hop, but the
2906 inbound next-hop has a link-local address, don't readvertise it to
2907 our peer.
2908
29091999-10-25 Marc Boucher <marc@mbsi.ca>
2910
2911 * bgp_zebra.c: Add redistribute kernel command.
2912
29131999-10-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2914
2915 * bgp_route.c (bgp_reset): New function added.
2916
2917 * bgpd.conf.sample2: Add IPv6 configuration sample.
2918
29191999-10-24 Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
2920
2921 * bgp_route.c (ipv6_aggregate_address): Function added.
2922
29231999-10-21 Kunihiro Ishiguro <kunihiro@zebra.org>
2924
2925 * bgp_packet.c (bgp_update): Unintern aspath, community, cluster
2926 list after parsing BGP update packet.
2927
2928 * bgp_attr.c (bgp_attr_aspath): Intern parsed aspath.
2929 (bgp_attr_community): Intern parsed community.
2930 (bgp_attr_cluster_list): Intern parsed cluster list.
2931
2932 * bgp_routemap.c: Add `set community-additive' command.
2933
29341999-10-21 Alexandr D. Kanevskiy <kad@blackcatlinux.com>
2935
2936 * bgp_routemap.c (route_set_local_pref): Fix bug of setting
2937 attribute flag.
2938
29391999-10-21 Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
2940
2941 * bgp_route.c (bgp_announce): Add check of IPv6 default route
2942 announcement.
2943
2944 * bgp_packet.c (bgp_update_send): Add BGP announcement logging.
2945
29461999-10-15 Kunihiro Ishiguro <kunihiro@zebra.org>
2947
2948 * `show ip[v6] bgp PREFIX' show uptime of the route.
2949
29501999-10-04 Kunihiro Ishiguro <kunihiro@zebra.org>
2951
2952 * bgpd.c (bgp_filter_set): Delete PEER_FAMILY_{IPV4,IPV6}. instead
2953 of that use AF_INET and AF_INET6 directly.
2954 (vty_clear_bgp): Add new function to support various clear ip bgp
2955 method.
2956
29571999-10-04 Lars Fenneberg <lf@elemental.net>
2958
2959 * bgpd.c (clear_ip_bgp): Add `clear ip bgp ASN'.
2960
29611999-10-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2962
2963 * bgp_routemap.c: Add `match ip prefix-list' and `match ipv6
2964 prefix-list'.
2965
29661999-09-28 Kunihiro Ishiguro <kunihiro@zebra.org>
2967
2968 * bgpd.c (bgp_collision_detect): Add BGP collision detection
2969 function.
2970
29711999-09-26 Blake Meike <bmeike@adero.com>
2972
2973 * bgpd.c (neighbor_port): New command `neighbor PEER port PORT' is
2974 added.
2975
29761999-08-24 Kunihiro Ishiguro <kunihiro@zebra.org>
2977
2978 * bgpd.c (no_neighbor_timers_keepalive): Change MIN to min. Add
2979 min() macro.
2980
29811999-08-19 Rick Payne <rickp@rossfell.co.uk>
2982
2983 * bgp_packet.c (bgp_open): BGP holdtimer bug is fixed. Make BGP
2984 keepalive timer configurable.
2985
29861999-08-15 Kunihiro Ishiguro <kunihiro@zebra.org>
2987
2988 * bgp_zebra.c (bgp_redistribute_set): Fix redistribute bug.
2989
29901999-08-13 Kunihiro Ishiguro <kunihiro@zebra.org>
2991
2992 * bgpd.c (bgp_peer_display): show ip bgp neighbors PEER only list
2993 the peer not all of them.
2994
29951999-08-11 Rick Payne <rickp@rossfell.co.uk>
2996
2997 * bgp_route.c (bgp_announce): Remove MED if its an EBGP peer -
2998 will get overwritten by route-maps.
2999
30001999-08-08 Rick Payne <rickp@rossfell.co.uk>
3001
3002 * bgp_routemap.c: Multi protocol route-map modification.
3003
30041999-08-01 Kunihiro Ishiguro <kunihiro@zebra.org>
3005
3006 * bgp_route.c: Set network statement route's origin attribute as
3007 igp.
3008
3009 * bgp_zebra.c: Set redistribute route's origin attribute as
3010 incomplete.
3011
3012 * bgp_route.c (bgp_info_cmp): Add attribute existance check,
3013 origin attribute check, BGP peer type check.
3014
30151999-07-30 Kunihiro Ishiguro <kunihiro@zebra.org>
3016
3017 * bgp_route.c (bgp_peer_delete): Reselect of IPv6 route.
3018
30191999-07-29 Rick Payne <rickp@rossfell.co.uk>
3020
3021 * Changed route-maps to behave in a more cisco-like fashion
3022
30231999-07-27 Kunihiro Ishiguro <kunihiro@zebra.org>
3024
3025 * bgp_fsm.c (bgp_stop): Very serious bug of bgp_stop () is fixed.
3026 When multiple route to the same destination exist, bgpd try to
3027 announce the information to stopped peer. Then add orphan write
3028 thread is added. This cause many strange behavior of bgpd.
3029 Reported by Georg Hitsch <georg@atnet.at>.
3030
30311999-07-23 Kunihiro Ishiguro <kunihiro@zebra.org>
3032
3033 * bgpd.c: Change peer's A.B.C.D to PEER.
3034
30351999-07-22 Kunihiro Ishiguro <kunihiro@zebra.org>
3036
3037 * bgp_route.c (bgp_announce): Add hack for link-local nexthop.
3038
3039 * bgp_zebra.c (bgp_zebra_announce): Fill in nexthop address from
3040 local address.
3041
30421999-07-21 Kunihiro Ishiguro <kunihiro@zebra.org>
3043
3044 * bgp_packet.c (bgp_open): Holdtime fetch bug is fixed. Reported
3045 by Yuji SEKIYA <sekiya@sfc.wide.ad.jp>.
3046
30471999-07-15 Kunihiro Ishiguro <kunihiro@zebra.org>
3048
3049 * bgp_fsm.c (fsm_holdtime): Don't close file descriptor in
3050 fsm_holdtime ().
3051
30521999-07-11 Kunihiro Ishiguro <kunihiro@zebra.org>
3053
3054 * bgp_routemap.c: Add `set atomic-aggregate' command.
3055
30561999-07-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3057
3058 * bgp_routemap.c (route_set_ip_nexthop_cmd): Change "ip nexthop"
3059 to "ip next-hop".
3060
30611999-07-02 Kunihiro Ishiguro <kunihiro@zebra.org>
3062
3063 * bgp_route.c (show_ipv6_bgp_regexp): `show ipv6 bgp regexp'
3064 added.
3065
30661999-07-01 Rick Payne <rickp@rossfell.co.uk>
3067
3068 * bgp_zebra.c (zebra_init): Install standard commands to
3069 ZEBRA_NODE.
3070
30711999-06-28 Rick Payne <rickp@rossfell.co.uk>
3072
3073 * bgpd.c (bgp_delete): bgp peer deletion bug is fixed.
3074
30751999-06-25 Kunihiro Ishiguro <kunihiro@zebra.org>
3076
3077 * bgpd.c: Add neighbor update-source command as ALIAS to
3078 neighbor_interface.
3079
30801999-06-19 Kunihiro Ishiguro <kunihiro@zebra.org>
3081
3082 * bgp_attr.c (bgp_packet_attribute): Send community attribute when
3083 send_community flag is set.
3084
3085 * bgpd.h (struct peer): Add send_community flag.
3086
30871999-06-12 Kunihiro Ishiguro <kunihiro@zebra.org>
3088
3089 * bgpd.c (router_bgp): router bgp's argument changed from AS_NO to
3090 <1-65535>.
3091
30921999-06-08 Kunihiro Ishiguro <kunihiro@zebra.org>
3093
3094 * bgp_route.h (struct bgp_info): Add subtype for BGP route type.
3095
30961999-06-07 Kunihiro Ishiguro <kunihiro@zebra.org>
3097
3098 * bgp_community.c (community_merge): Function added.
3099
31001999-06-04 Kunihiro Ishiguro <kunihiro@zebra.org>
3101
3102 * bgp_clist.c: New file.
3103 * bgp_clist.h: New file.
3104
3105 * bgp_community.h (COMMUNITY_LOCAL_AS): Added for Cisco
3106 compatibility.
3107 (COMMUNITY_NO_ADVERTISE): Fix typo.
3108
31091999-05-30 Kunihiro Ishiguro <kunihiro@zebra.org>
3110
3111 * bgp_routemap.c: Add `set weight WEIGHT' command.
3112
3113 * bgpd.c: Remove all_digit_check function. Instead of that use
3114 all_digit function in lib/prefix.c.
3115
3116 * bgp_routemap.c (bgp_route_map_init): Install
3117 no_set_ipv6_nexthop_global_cmd and no_set_ipv6_nexthop_local_cmd
3118 element to the RMAP_NODE.
3119
31201999-05-28 Kunihiro Ishiguro <kunihiro@zebra.org>
3121
3122 * bgp_aspath.c (aspath_make_str): Declare aspath_delimiter_char
3123 inside aspath_make_str function.
3124 (aspath_prepend): New function is added for AS path prepend.
3125 (aspath_make_str_count): Renamed from aspath_make_str. AS path
3126 count is set to the structure.
3127 (aspath_merge): New function.
3128
31291999-05-22 Kunihiro Ishiguro <kunihiro@zebra.org>
3130
3131 * bgp_zebra.c (redistribute_bgp): Add new DEFUN.
3132 (no_redistribute_bgp): Likewise.
3133 (router_zebra): Semantics changed. Now 'router zebra' is default
3134 behavior of bgpd.
3135
31361999-05-14 Kunihiro Ishiguro <kunihiro@zebra.org>
3137
3138 * bgp_routemap.c: Add some commands to bgp route-map.
3139 match ip next-hop: New command.
3140 match metric: New command.
3141 set metric: Doc fix.
3142 set local-preference: Add DEFUN.
3143
31441999-05-14 Stephen R. van den Berg <srb@cuci.nl>
3145
3146 * bgp_main.c (signal_init): SIGTERM call sigint.
3147 (sigint): Loggging more better message.
3148
31491999-05-12 Kunihiro Ishiguro <kunihiro@zebra.org>
3150
3151 * bgp_attr.c (bgp_packet_attribute): AS path attribute extended
3152 length bit check is added.
3153
31541999-05-11 Kunihiro Ishiguro <kunihiro@zebra.org>
3155
3156 * bgp_routemap.c (bgp_route_map_init): Call route_map_install_set
3157 function with route_set_local_pref_cmd argument.
3158 (no_match_aspath): Function added.
3159 (route_set_metric): Set attribute flag bit.
3160
3161 * bgp_attr.c (bgp_packet_attribute): MULTI_EXIT_DISC is now in BGP
3162 packet.
3163
31641999-05-07 Kunihiro Ishiguro <kunihiro@zebra.org>
3165
3166 * bgpd.c (no_neighbor_timers_holdtime): `no neighbor PEER timers
3167 holdtime' command is added.
3168
3169 * bgpd.h (BGP_DEFAULT_HOLDTIME_BIG): Delete define.
3170
3171 * bgpd.c (bgp_prefix_list_set): New function added.
3172 (bgp_prefix_list_unset): Likewise.
3173 (bgp_prefix_list_update): Likewise.
3174 (show_ip_bgp_neighbors): prefix-list information display.
3175
31761999-05-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3177
3178 * bgpd.c (bgp_delete): Function added for `no router bgp'.
3179
31801999-05-05 Kunihiro Ishiguro <kunihiro@zebra.org>
3181
3182 * bgp_dump.c (bgp_dump_attr): Add originator_id display.
3183
3184 * bgpd.c (bgp_router_id): Even when address is malformed set the
3185 value to configuration bug fixed.
3186 (no_bgp_router_id): New function.
3187 (no_bgp_cluster_id): New function.
3188
31891999-05-04 Kunihiro Ishiguro <kunihiro@zebra.org>
3190
3191 * bgpd.h (BGP_ATTR_ORIGINATOR_ID): Changed from BGP_ATTR_ORIGINATOR.
3192
31931999-05-02 Kunihiro Ishiguro <kunihiro@zebra.org>
3194
3195 * bgp_route.c (bgp_announce): Add route reflector check.
3196
31971999-05-01 Kunihiro Ishiguro <kunihiro@zebra.org>
3198
3199 * bgpd.c (bgp_cluster_id): Add function for route reflector.
3200 (neighbor_route_reflector_client): Likewise.
3201 (no_neighbor_route_reflector_client): Likewise.
3202
3203 * bgpd.h (struct bgp ): Add cluster for route reflector.
3204
3205 * bgp_route.c (show_ip_bgp_prefix_list): New command is added.
3206
32071999-04-24 Kunihiro Ishiguro <kunihiro@zebra.org>
3208
3209 * Makefile.am (noinst_HEADERS): Add bgp_filter.h
3210
3211 * bgp_aspath.c (aspath_undup): Function deleted. aspath_free ()
3212 has same functionality.
3213
3214 * bgp_filter.h: New file.
3215
3216 * bgp_aspath.c (aspath_unintern): Rename aspath_free () to
3217 aspath_unintern ()
3218 (aspath_free): New function.
3219
32201999-04-23 Kunihiro Ishiguro <kunihiro@zebra.org>
3221
3222 * bgp_aspath.c (aspath_aggregate): Function added.
3223
3224 * bgp_aspath.h (aspath_aggregate): Prototype added.
3225
3226 * bgp_aspath.c (aspath_empty_aspath): New argument
3227 gated_dont_eat_flag is added.
3228
32291999-04-18 Kunihiro Ishiguro <kunihiro@zebra.org>
3230
3231 * bgp_route.c: Add bgp_aggregate_ipv4 and bgp_aggregate_ipv6.
3232
32331999-04-17 Kunihiro Ishiguro <kunihiro@zebra.org>
3234
3235 * bgp_route.c (aggregate_address): Function added.
3236
3237 * bgp_zebra.c (zebra_read): Change log to zlog.
3238
32391999-04-15 Kunihiro Ishiguro <kunihiro@zebra.org>
3240
3241 * Makefile.am (noninst_HEADERS): Added for make dist.
3242
32431999-04-09 Kunihiro Ishiguro <kunihiro@zebra.org>
3244
3245 * aspath_regex.c: Removed from distribution.
3246
32471999-04-07 Kunihiro Ishiguro <kunihiro@zebra.org>
3248
3249 * bgp_attr.c (bgp_packet_attribute): Old draft-00 packet treatment
3250 bug fixed.
3251
32521999-04-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3253
3254 * bgp_aspath.c (aspath_add_left): Fix empty aspath bug. Reported
3255 by kad@gibson.skif.net.
3256
3257 * bgp_regex.[ch]: New file added.
3258
3259
32601999-04-05 Kunihiro Ishiguro <kunihiro@zebra.org>
3261
3262 * bgp_filter.c: New file added.
3263
32641999-04-01 Kunihiro Ishiguro <kunihiro@zebra.org>
3265
3266 * bgp_aspath.c (aspath_empty_aspath): Change for peering with
3267 gated.
3268
32691999-03-24 Kunihiro Ishiguro <kunihiro@zebra.org>
3270
3271 * bgp_main.c (main): Default loggin method changed from syslog to
3272 stdout.
3273
32741999-03-05 Kunihiro Ishiguro <kunihiro@zebra.org>
3275
3276 * bgp_route.c: Delete obsolete default attribute DEFUN.
3277
32781999-03-04 Kunihiro Ishiguro <kunihiro@zebra.org>
3279
3280 * bgp_attr.c: Make attribute structure put into attribute hash.
3281
32821999-03-02 Kunihiro Ishiguro <kunihiro@zebra.org>
3283
3284 * bgp_view.c : Delete file.
3285
32861999-02-25 Kunihiro Ishiguro <kunihiro@zebra.org>
3287
3288 * bgp_routemap.c (bgp_apply_route_map): Add prefix argument.
3289
3290 * bgp_route.h (struct bgp_info): Add bgp_info structre. I'll
3291 replace bgp_route with this.
3292
3293 * bgp_routemap.c (route_match_ip_address): Fix bug of passing non
3294 prefix value to access_list_apply().
3295
3296 * bgpd.conf.sample: Add route-map sample.
3297 Delete obsolete default-attr statements.
3298
3299 * bgp_packet.c: Use stream_fifo for packet queueing.
3300
33011999-02-24 Kunihiro Ishiguro <kunihiro@zebra.org>
3302
3303 * bgp_aspath.c (aspath_add_left): add non empty aspath treatment.
3304
3305 * bgp_main.c: include unistd.h for daemon().
3306
3307 * bgp_route.c (nlri_process): add IPv6 table lookup.
3308
3309 * bgp_attr.c (route_parse_ipv6): call nlri_process().
3310 (attr_make): Obsolete function attr_make deleted.
3311
33121999-02-22 Kunihiro Ishiguro <kunihiro@zebra.org>
3313
3314 * bgp_aspath.c (aspath_add_left): change function name from
3315 aspath_add_leftmost_as().
3316
33171999-02-21 Kunihiro Ishiguro <kunihiro@zebra.org>
3318
3319 * bgp_aspath.c: add aspath_add_leftmost_as ().
3320
33211999-02-18 Peter Galbavy <Peter.Galbavy@knowledge.com>
3322
3323 * syslog support added
3324
33251999-01-26 Kunihiro Ishiguro <kunihiro@zebra.org>
3326
3327 * bgpd.c: DEFUN (neighbor_nexthop): deleted.
3328 DEFUN (neighbor_distribute_list): added.
3329
33301999-01-19 Kunihiro Ishiguro <kunihiro@zebra.org>
3331
3332 * bgpd.h (struct peer ): header_buf and read_buf is removed.
3333
3334 * bgp_peer.[ch]: Deleted. Peer related functions are merged to
3335 bgpd.c
3336
3337 * bgp_network.c: New file.
3338 * bgp_network.h: New file.
3339
3340 * bgp_packet.h: New file.
3341
33421999-01-11 Kunihiro Ishiguro <kunihiro@zebra.org>
3343
3344 * bgp_packet.c (bgp_keepalive_send): Now BGP keepalive packet is
3345 buffered.
3346
33471999-01-08 Kunihiro Ishiguro <kunihiro@zebra.org>
3348
3349 * bgp_packet.c: New file.
3350
33511998-12-22 Kunihiro Ishiguro <kunihiro@zebra.org>
3352
3353 * bgp_zebra.c (zebra_client): Use zebra_connect() in lib/client.c.
3354
3355 * `show ip bgp' bug fixed.
3356 * aspath_log (): Remove argument logfp.
3357
33581998-12-15 Kunihiro Ishiguro <kunihiro@zebra.org>
3359
3360 * bgp_fsm.h: New file.
3361
33621998-12-15 Magnus Ahltorp <map@stacken.kth.se>
3363
3364 * bgp_attr.c, bgp_community.h, bgp_dump.c, bgp_fsm.c, bgp_open.c
3365 bgp_peer.c, bgp_peer.h, bgp_route.c, bgp_route.h, bgp_view.c
3366 bgpd.c, bgpd.h, bgp_attr.c, bgp_community.h, bgp_dump.c,
3367 bgp_fsm.c, bgp_open.c, bgp_peer.c, bgp_peer.h: Prototype fixes.
3368
33691998-12-09 Kunihiro Ishiguro <kunihiro@zebra.org>
3370
3371 * bgpd.c (bgp_config_write): Delete vector v argument.
3372
33731998-12-07 Kunihiro Ishiguro <kunihiro@zebra.org>
3374
3375 * bgpd.h: Delete annoying ld_[124]byte and st_[124]byte macros.
3376
33771998-11-23 Kunihiro Ishiguro <kunihiro@zebra.org>
3378
3379 * bgp_radix.[ch]: removed.
3380
33811998-09-15 HEO SeonMeyong <seirios@matrix.iri.co.jp>
3382
3383 * bgp_main.c: ifdef HYDRANGEA -> ifdef KAME
3384
33851998-08-13 Kunihiro Ishiguro <kunihiro@zebra.org>
3386
3387 * bgp_dump.c: delete nroute().
3388
33891998-05-19 Yamshita TAKAO <jargon@lares.dti.ne.jp>
3390
3391 * bgp_aspath.c: HAVE_CONFIG_H typo :-)
3392 * bgpd.h: Modify for compile on Solaris.
3393 * bgp_aspath.h: likewize
3394 * bgp_community.h: likewize
3395 * bgp_routemap.c: likewize
3396
33971998-05-18 Yamshita TAKAO <jargon@lares.dti.ne.jp>
3398
3399 * bgpd.h: Modify for compile on Solaris.
3400 * bgp_aspath.h: likewize
3401
34021998-05-08 Kunihiro Ishiguro <kunihiro@zebra.org>
3403
3404 * routemap.[ch]: move to ../lib directory.
3405
34061998-05-07 Kunihiro Ishiguro <kunihiro@zebra.org>
3407
3408 * routemap.c (route_map_apply): add function.
3409
34101998-05-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3411
3412 * routemap.h: add file.
3413
3414 * bgp_peer.h (enum ): change PEER_{IBGP,EBGP} to BGP_PEER_{IBGP,EBGP}
3415
34161998-05-03 Kunihiro Ishiguro <kunihiro@zebra.org>
3417
3418 * Makefile.am: sysconfdir_DATA added.
3419
34201998-05-02 Kunihiro Ishiguro <kunihiro@zebra.org>
3421
3422 * bgp_dump.c: add `debug bgp fsm'
3423 add `no debug bgp fsm'
3424 add `show debug bgp'
3425 * bgp_open.c: File added.
3426
34271998-05-01 Kunihiro Ishiguro <kunihiro@zebra.org>
3428
3429 * .cvsignore: File added.
3430
34311998-04-30 Kunihiro Ishiguro <kunihiro@zebra.org>
3432
3433 * bgp_community.[ch]: File added.
3434
34351998-03-04 Kunihiro Ishiguro <kunihiro@zebra.org>
3436
3437 * bgpd now use lib/thread.[ch].
3438
34391998-01-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3440
3441 * bgpd.c (show_ip_bgp_neighbors): add 'show ip bgp neighbors' command.
3442
3443 * bgpd.h (BGP_DEFAULT_START_TIMER): change from 1 to 30.
3444
34451997-12-30 Kunihiro Ishiguro <kunihiro@zebra.org>
3446
3447 * bgp_vty.c: bgp_vty.c deleted.
3448
3449 * bgpd.c (config_write_neighbor): add ebgp-multihop command.
3450
34511997-12-29 Kunihiro Ishiguro <kunihiro@zebra.org>
3452
3453 * bgp_fsm.c: [-p bgp_port] and [-P vty_port] works
3454
34551997-12-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3456
3457 * bgp_vty.c: new file.
3458
3459 * bgp_attr.c: add new logging system.
3460
34611997-11-23 Kunihiro Ishiguro <kunihiro@zebra.org>
3462
3463 * Change all inet_addr call into inet_aton.
3464
34651997-11-10 Kunihiro Ishiguro <kunihiro@zebra.org>
3466
3467 * bgp_radix.c: change radix_peer_delete
3468
34691997-10-04 Kunihiro Ishiguro <kunihiro@zebra.org>
3470
3471 * bgp_aspath.c: move AS_TOKEN_??? definition from header to c source.
3472
34731997-09-12 Kunihiro Ishiguro <kunihiro@zebra.org>
3474
3475 * bgp_dump.c (bgp_log_route): add dump_attr function
3476
34771997-09-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3478
3479 * bgp_aspath.c (aspath_test): change AS_SET brace from '[' to '{'
3480 * bgp_dump.c (bgp_log_route): change logfile format.
3481
34821997-08-19 Kunihiro Ishiguro <kunihiro@zebra.org>
3483
3484 * bgp_open.c (bgp_open): move bgp_open function from bgpd.c
3485 * bgp_attr.c (community_str2com): add community value generation
3486 * bgp_attr.h: add SAFI definition for BGP-4+
3487
34881997-08-18 Kunihiro Ishiguro <kunihiro@zebra.org>
3489
3490 * bgpd.h: add BGP_OPEN_OPT_CAP for Capabilities Optional Parameter
3491 * Makefile.in: add bgp_open.o, delete bgp_loop.o
3492 * bgp_open.c: newfile which manages BGP Open message
3493 * bgp_loop.c: this file is merged with bgp_fsm.c
3494 * bgp_radix.c (radix_add): radix_add() now return route_t instead
3495 of int
3496 (bgp_sim): now we can read update & withdraw from file
3497 * bgp_route.c: add route_free() call into route_parse etc.
3498
34991997-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
3500
3501 * bgp_radix.c: Radix code is completely rewritten. It has better
3502 memory treatment than old one.
3503
35041997-08-14 Kunihiro Ishiguro <kunihiro@zebra.org>
3505
3506 * bgp_route.c: route_alloc for route struct allocation statistics.
3507 * bgpd.c (bgp_make_update): now we cann announce MED attribute.
3508 * bgp_aspath.c (aspath_print_all): change aspath_print_all output
3509 format.
3510
35111997-08-13 Kunihiro Ishiguro <kunihiro@zebra.org>
3512
3513 * bgp_term.c (term_parse): add command : show asstat, show ashash
3514 * bgp_aspath.c: aspath_cmp bug fix
3515 (aspath_print_all): add aspath_print_all ();
3516 * bgp_peer.h: delete rlist element from struct peer.
3517
35181997-08-12 Kunihiro Ishiguro <kunihiro@zebra.org>
3519
3520 * bgp_aspath.c: completely rewritten.
3521 * bgp_aspath.h: completely rewritten.
3522 add AsPath, AsSegment structure
3523 add AS_SET treatment
3524 change Hash codes
3525
35261997-08-09 Kunihiro Ishiguro <kunihiro@zebra.org>
3527
3528 * bgp_attr.h: add Attribute flags defines
3529 * bgp_route.c: delete rlist related functions
3530 * bgp_aspath.c (as_origin): add as_origin function
3531 (aspath_print): move from bgp_dump.c and add support of AS_SET
3532 change Hash related function names.
3533
35341997-08-08 Kunihiro Ishiguro <kunihiro@zebra.org>
3535
3536 * bgp_aspath.h: add next entry, delete rlist entry from struct aspath
3537
35381997-08-04 Kunihiro Ishiguro <kunihiro@zebra.org>
3539
3540 * bgp_aspath.c (as_sort): add function as_sort
3541 * bgp_aspath.h: add IBGP, EBGP
3542