blob: 72e363e9a3382e0283ccf147e5b47dfc3ace5aa2 [file] [log] [blame]
Paul Jakma70461d72006-05-12 22:57:57 +000012006-05-12 Paul Jakma <paul.jakma@sun.com>
2
3 * ospf_lsa.c: (ospf_lsa_action) Get rid of the ospf_lookup
4 call, which is not checked for NULL return, by stripping out
5 functionality which is never used, hence fixing Coverity CID
6 #29.
7 (struct lsa_action) remove unused member.
Paul Jakmae43be0e2006-05-12 23:00:06 +00008 * ospf_interface.c: (ospf_if_exists) Fix missing NULL return
9 check on ospf_lookup, CID #27.
Paul Jakma6db3a6f2006-05-12 23:02:46 +000010 * ospf_asbr.c: (ospf_redistribute_withdraw) remove ospf_lookup
11 call by taking the struct ospf * as argument, which the
12 caller has, fixing CID #28.
13 * ospf_asbr.h: (ospf_redistribute_withdraw) update declaration
14 * ospf_zebra.c: (ospf_redistribute_unset) update call to
15 ospf_redistribute_withdraw to match.
Paul Jakma70461d72006-05-12 22:57:57 +000016
Paul Jakmacac3b5c2006-05-11 13:31:11 +0000172006-05-11 Paul Jakma <paul.jakma@sun.com>
18
19 * ospf_vty.c: (general) Audit ospf_lookup calls in commands,
20 ensure check for NULL result, make vty messages consistent.
21 (show_ip_ospf_interface) Missing NULL check on ospf_lookup
22 result, fixes Coverity CID #70.
Paul Jakma1a8ec2b2006-05-11 13:34:08 +000023 (no_ospf_area_filter_list) Check NULL result from
24 ospf_area_lookup_by_area_id, fixes Coverity CID #69
Paul Jakma894f8b62006-05-12 22:50:40 +000025 * ospf_route.c: (ospf_route_delete_same_ext) Fix deref before
26 NULL check by moving into check-protected block, fix CID #49.
Paul Jakma214a4452006-05-12 22:51:49 +000027 * ospf_abr.c: (ospf_area_range_cost_set) Shouldn't create a new
28 range, should just lookup to see if one exists, the new range
29 is just leaked. Fixes CID #46.
Paul Jakma4021b602006-05-12 22:55:41 +000030 * ospf_lsa.c: (ospf_default_originate_timer) Let the thread
31 take (struct ospf *) as thread argument, rather than (struct
32 ospf *)->default_originate, thus avoiding having to call
33 ospf_lookup.
34 * ospf_zebra.c: (ospf_redistribute_default_set) change setup
35 of ospf_default_originate_timer thread to match.
36 * ospfd.c: (ospf_router_id_update) ditto.
Paul Jakmacac3b5c2006-05-11 13:31:11 +000037
Paul Jakma9c27ef92006-05-04 07:32:57 +0000382006-04-24 Paul Jakma <paul.jakma@sun.com>
39
40 * (general) More Virtual-link fixes, again with much help in
41 testing / debug from Juergen Kammer. Primarily in SPF.
42 * ospf_spf.h: Add guard. ospf_interface.h will include this
43 header.
44 * ospf_interface.h: Modify ospf_vl_lookup definition to take
45 struct ospf as argument, so as to allow for NULL area
46 argument.
47 (struct ospf_vl_data) Remove out_oi, instead add a struct
48 vertex_nexthop, to use as initial nexthop for backbone paths
49 through a vlink.
50 * ospf_interface.c: (ospf_vl_lookup) Modified to allow
51 NULL area to be passed to indicate "any" (first) area.
52 Add extra debug.
53 (ospf_vl_set_params) vl_oi -> nexthop. Add extra debug.
54 (ospf_vl_up_check) Fix debug, inet_ntoa returns a static
55 buffer..
56 * ospf_route.c: (ospf_intra_add_router) Vlinks dont go through
57 backbone, don't bother checking.
58 * ospf_spf.c: (static struct list vertex_list) Record vertices
59 that will need to be freed.
60 (cmp) Order network before router vertices, as required,
61 wasn't implemented.
62 (vertex_nexthop_free) Mild additional robustness check.
63 (vertex_parent_free) Take void argument, as this function
64 is passed as list deconstructor for vertex parent list.
65 (ospf_vertex_new) More debug. Set deconstructor for parent
66 list. Track allocated vertices on the vertex_list.
67 (ospf_vertex_free) Get rid of the tricky recursive cleanup of
68 vertices. Now frees only the given vertex.
69 (ospf_vertex_add_parent) Fix assert.
70 (ospf_nexthop_calculation) Fix calculation of nexthop for
71 VLink vertices, lookup the vl_data and use its previously
72 recorded nexthop information.
73 (ospf_spf_calculate) Vertices are freed simply by deleting
74 vertex_list nodes and letting ospf_vertex_free as deconstructor
75 work per-node.
76 (ospf_spf_calculate_timer) Trivial optimisation, leave
77 backbone SPF calculation till last to reduce SPF churn on
78 VLink updates.
79 * ospf_vty.c: (ospf_find_vl_data) update call to ospf_vl_lookup
80 (no_ospf_area_vlink_cmd) ditto.
81 (show_ip_ospf_interface_sub) For Vlinks, the peer address is
82 more interesting than the output interface.
83
Paul Jakma478aab92006-04-03 21:25:32 +0000842006-04-03 Paul Jakma <paul.jakma@sun.com>
85
86 * (general) Fix issues with handling of Vlinks and entries
87 in the nbrs route-table which were highlighted by the
88 nsm/nbr_self fixes from bug #234. Many thanks to Juergen
89 Kammer for his help and efforts in testing out debug patches to
90 pinpoint the issue.
91 * ospf_interface.c: (ospf_vl_new) Add nbr_self for Vlink.
92 * ospf_neighbor.c: (ospf_nbr_key) new static function, helper
93 to create key in nbrs table for a given nbr.
94 (ospf_nbr_delete) Use ospf_nbr_key. Add an assert() to
95 document an expected state.
96 (ospf_nbr_add_self) Ditto.
97 (ospf_nbr_lookup_by_addr) Add an assert.
98 * ospf_nsm.c: (nsm_kill_nbr) Can never kill the nbr_self
99 psuedo-neighbour.
100
Paul Jakma075c2012006-03-30 14:34:31 +00001012006-03-27 Paul Jakma <paul.jakma@sun.com>
102
103 * ospf_lsa.c: (ospf_lsa_checksum) Add an explicit cast to avoid
104 the ambiguities of ANSI and C99 C with respect to type
105 conversion. Detailed problem report and test case with
106 example data supplied by Dmitry Ivanov <dimss@telecentrs.lv>.
107
Paul Jakma1a8ee0e2006-03-30 14:20:00 +00001082006-03-25 Paul Jakma <paul.jakma@sun.com>
109
110 * ospf_interface.c: (ospf_if_lookup_recv_if) Ignore loopbacks,
111 we can never ever receive packets on those. Should fix
112 case where CARP is run with address in same subnet as real
113 interface. Problem report and diagnosis thanks to:
114 Landon Fuller <landonf@opendarwin.org>.
115 However, ospf_read() still can't deal deterministically with
116 multiple interfaces in same subnet.
117
Paul Jakmac2b478d2006-03-30 14:16:11 +00001182006-03-23 Steve Lawson <steve.lawson@aheadcomusa.com>
119
120 * ospf_lsa.c: (ospf_lsa_install) Fix incorrect byte-order
121 conversion of OSPF_MAX_SEQUENCE_NUMBER
122
paule8e19462006-01-19 20:16:55 +00001232006-01-19 Paul Jakma <paul.jakma@sun.com>
124
125 * (general) various miscellaneous compiler warning fixes.
126 Remove redundant break statements from switch clauses
127 which return.
128 return from main, not exit, cause it annoys SOS.
129 Remove stray semi-colons which cause empty-statement
130 warnings.
131
paul779adb02006-01-18 15:07:38 +00001322006-01-18 Juergen Kammer <j.kammer@eurodata.de>
133
134 * ospf_lsa.c: (ospf_router_lsa_new) dont take reference to the
135 stream data until it is constructed, data reference is
136 volatile due to the potential resize in link_info_set
137
1382006-01-18 Paul Jakma <paul.jakma@sun.com>
139
140 * ospf_lsa.c: (link_info_set) Resize the stream if required and
141 possible. Return number of links added.
142 (lsa_link_*_set) use return value from previous.
143 * ospf_lsa.h: Add OSPF_ROUTER_LSA_LINK_SIZE define.
144
paulc6371712006-01-17 17:49:53 +00001452006-01-17 Paul Jakma <paul.jakma@sun.com>
146
147 * ospf_packet.c: (ospf_verify_header) print out the types
148 involved if there's a mismatch.
149 * ospf_zebra.c: (ospf_zebra_add) Adjust to new zserv format.
150
paul818e56c2006-01-10 23:27:05 +00001512006-01-10 Len Sorensen <lennartsorensen@ruggedcom.com>
152
153 * (general) Bug #234, see also [quagga-dev 3902].
154 Fix problem with nbr_self not being properly reinitialised
155 when an interface comes up, after having been down.
paul1a643f82006-01-11 01:08:19 +0000156 Some re-arrangement done by Paul Jakma, any bugs introduced
157 on top of Len's suggested changes are his.
paul818e56c2006-01-10 23:27:05 +0000158 * ospf_neighbor.c: (ospf_nbr_add_self) centralise
159 initialisation of nbr_self parameters here.
160 * ospf_interface.c: (ospf_if_new) deleting initialisation of
161 parameters of nbr_self, just rely on call to
162 ospf_nbr_add_self.
163 (ospf_if_cleanup) ditto.
164 * ospfd.c: (ospf_network_run) ditto.
165
paul98429f62006-01-10 22:11:54 +00001662006-01-10 Juris Kalnins <juris@mt.lv>
167
168 * ospf_zebra.c: (ospf_interface_address_delete) fix rare leak of
169 struct connected in an error case.
paul818e56c2006-01-10 23:27:05 +0000170 * ospf_packet.c: (ospf_make_md5_digest) fix odd, if not
171 undefined effect, assignment of an increment expression.
paul98429f62006-01-10 22:11:54 +0000172
paul86752842006-01-10 20:34:46 +00001732006-01-10 Paul Jakma <paul.jakma@sun.com>
174
175 * ospfd.c: (ospf_network_run) checking to see if router-id
176 is set should be on ospf->router_id, not router_id_static.
177 This was causing ospfd to not start if router-id had not
178 been configured statically.
179 (ospf_if_update) ditto.
paulc42c1772006-01-10 20:36:49 +0000180 * ospf_vty.c: (config_write_ospf_distribute) trim down
181 redundant strings.
paul86752842006-01-10 20:34:46 +0000182
paul00c290e2005-11-26 09:21:43 +00001832005-11-26 Paul Jakma <paul.jakma@sun.com>
184
185 * ospf_api.c: (struct opaque_lsa) change from gcc zero-length
186 array to C99 incomplete type array.
paulc9c93d52005-11-26 13:31:11 +0000187 * (general) s/graceful/deferred/ in all files, the former term
188 is confusing wrt OSPF Graceful-Restart.
189 * ospfd.c: (ospf_deferred_shutdown_check) dont return
190 a function which returns void. SOS complains about this.
191 (ospf_finish)
paul00c290e2005-11-26 09:21:43 +0000192
paulb29800a2005-11-20 14:50:45 +00001932005-11-20 Paul Jakma <paul.jakma@sun.com>
194
195 * ospfd.h: remove the OSPF_ROUTER_ID_UPDATE_DELAY define
196 (struct ospf) remove the router_id timer thread.
197 remove export of ospf_router_id_update_timer.
198 * ospfd.c: (ospf_router_id_update) call ospf_if_update to
199 poke interfaces into action after ID has been configured.
200 (ospf_router_id_update_timer) removed.
201 (ospf_finish_final) t_router_id_update timer is gone.
202 (ospf_network_run) router-id update timer gone.
203 call ospf_router_id_update directly if ID not configured.
204 In the per-iface loop, don't ospf_if_up interfaces if
205 ID is still not configured. The update function will call
206 ospf_if_update anyway.
207 (ospf_if_update) ID update timer is gone. Just return if no
208 ID is set.
209 * ospf_vty.c: (ospf_router_id) call ospf_router_id_update, no
210 timer needed.
211 * ospf_zebra.c: (ospf_router_id_update_zebra) call
212 ospf_router_id_update directly, not via timer.
paulc24d6022005-11-20 14:54:12 +0000213 * ospf_abr.c: (ospf_abr_announce_network_to_area) check
214 returned LSA of ospf_summary_lsa_refresh and print warning if
215 it failed.
216 (ospf_abr_announce_network_to_area) similar
217 (ospf_abr_announce_rtr_to_area) similar
218 * ospf_lsa.c: (ospf_router_lsa_new) check LSA returned is valid.
219 (ospf_router_lsa_originate) similar
220 (ospf_router_lsa_refresh, ospf_network_lsa_new) similar
221 (ospf_summary_lsa_new) Check ID is valid.
222 (ospf_summary_lsa_originate) ditto, and check returned LSA from
223 previous function is !NULL.
224 (ospf_summary_lsa_refresh) check ospf_summary_lsa_new return
225 is !NULL.
226 (ospf_summary_asbr_lsa_new) ID valid check.
227 (ospf_summary_asbr_lsa_originate) similar.
paulb29800a2005-11-20 14:50:45 +0000228
ajs70cd3472005-11-16 19:33:22 +00002292005-11-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
230
ajs649654a2005-11-16 20:17:52 +0000231 * ospf_dump.h: Define OSPF_TIME_DUMP_SIZE as appropriate buffer size
232 for use with ospf_timer_dump and ospf_timeval_dump.
233 * ospf_vty.c: Change all buffer sizes used with ospf_timer_dump and
234 ospf_timeval_dump to have size OSPF_TIME_DUMP_SIZE.
235 (show_ip_ospf_interface_sub) Fix possible buffer overflow in
236 call to ospf_timer_dump.
237
2382005-11-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
239
ajs70cd3472005-11-16 19:33:22 +0000240 * ospf_ism.h: (OSPF_ISM_TIMER_OFF) Improve macro syntax by enclosing
241 in 'do {...} while(0)'.
242
paul31a59762005-11-14 11:11:11 +00002432005-11-14 Paul Jakma <paul.jakma@sun.com>
244
245 * ospfd.c: (ospf_new) stub-shutdown should just default to
246 unconfigured, too strange otherwise.
247 (ospf_finish_final) t_opaque_lsa_self TIMER_OFF should be
248 preprocessor conditional on HAVE_OPAQUE_LSA.
249 * ospfd.h: (struct ospf) remove the SHUTDOWN_DEFAULT define.
250 no longer used, plus it wasn't in range that the command
251 accepted.
252 * ospf_zebra.h: Depends on vty.h, include it.
253
paul58e1bef2005-11-11 12:10:03 +00002542005-11-11 Paul Jakma <paul.jakma@sun.com>
255
256 * ospf_spf.c: (ospf_canonical_nexthops_free) Free only
257 the nexthops pointing to the root vertex. We may visit a
258 vertex twice or the vertex may have some inherited nexthops,
259 if we free other nexthops we could crash.
260
paulc8c15212005-11-04 12:31:39 +00002612005-11-04 Paul Jakma <paul.jakma@sun.com>
262
263 * ospf_{dump,spf,vty}.c: Oops, use the internal tv_sub
264 function rather than unportable timersub.
265
paul484315f2005-11-03 09:08:29 +00002662005-11-03 Paul Jakma <paul.jakma@sun.com>
267
268 * ospf_apiserver.c: (apiserver_sync_callback) stray semi-colon
269 * ospf_packet.c: include checksum.h, remove the in_cksum extern
270 * prototypes.
271 * ospf_te.h: Add braces, quell warning.
paul6d452762005-11-03 11:15:44 +0000272 * ospf_packet.c: Change level of some warnings to
273 informational.
paulc8c15212005-11-04 12:31:39 +0000274
paul88d6cf32005-10-29 12:50:09 +00002752005-10-29 Paul Jakma <paul.jakma@sun.com>
276
277 * (general) RFC3137 stub-router support
278 * ospfd.h: Add OSPF_OUTPUT_COST_INFINITE define.
279 (struct ospf_master) Add a OSPF_MASTER_SHUTDOWN flag for
280 options, to allow shutdown to distinguish between complete
281 shutdown and shutdown of a subset of ospf instances.
282 (struct ospf)
283 Add stub_router_{startup,shutdown_}time, configuration of startup
284 and shutdown time for stub-router.
285 Add t_graceful_shutdown struct thread, timer for graceful
286 shutdown, if needed.
287 (struct ospf_area) Add stub_router_state - run time state of
288 stub-router for an area. Add flags for ADMIN, IS and WAS
289 states.
290 Add t_stub_router, timer thread to resend router-lsa for an
291 area.
292 * ospf_lsa.c: (ospf_link_cost) new simple function to spit out
293 either the given lnks cost or infinite cost if stub-router is
294 in effect.
295 (lsa_link_{ptop,broadcast,virtuallink,ptomp}_set) use
296 previous function for transit-links.
297 (ospf_stub_router_timer) timer thread for end of startup stub
298 router. Change state as required for the area and setup
299 re-origination of router-lsa.
300 (ospf_stub_router_check) Check/do whether stub-router should be
301 enabled, and whether it requires timer to be setup.
302 (ospf_router_lsa_new) call previous function at top.
303 (ospf_router_lsa_originate) no external callers, made static.
304 * ospf_lsa.h: (ospf_router_lsa_originate) removed.
305 * ospf_main.c: (sigint) make static.
306 remove call to exit, as ospf_terminate now deals with
307 exiting.
308 * ospf_route.c: (ospf_terminate) removed, now in ospfd.c.
309 * ospf_vty.c: (show_ip_ospf_area) print out state of
310 stub-router, if active.
311 (show_ip_ospf) print out configuration of stub-router
312 support, and details of graceful-shutdown if the timer is
313 active.
314 ((no)?ospf_max_metric_router_lsa_{admin,startup,shutdown}) new
315 commands to (de-)?configure stub-router support.
316 (config_write_stub_router) write out config of stub-router.
317 (ospf_config_write) call previous.
318 (ospf_vty_init) install the new stub-router commands.
319 * ospfd.c: various functions made static.
320 (ospf_new) Set defaults for stub-router. Graceful shutdown
321 is made to default on, just to be adventerous.
322 (ospf_graceful_shutdown_finish) new function, final part of
323 shutdown.
324 (ospf_graceful_shutdown_timer) timer thread wrapper for
325 graceful-shutdown.
326 (ospf_graceful_shutdown_check) check whether to setup timer
327 for shutdown or proceed directly to final shutdown.
328 (ospf_terminate) moved here from ospf_route.c, call
329 ospf_finish for each instance.
330 (ospf_finish) renamed to ospf_finish_final and made static.
331 (ospf_finish) new function, exported wrapper around
332 ospf_graceful_shutdown_check.
333 (ospf_finish_final) complete shutdown of an instance.
334 Add missing TIMER_OFF's of two timer threads.
335 (ospf_area_free) opaque self lsa timer should be turned off.
336
paulb8ad39d2005-10-23 15:23:05 +00003372005-10-23 Paul Jakma <paul.jakma@sun.com>
338
paule029d442005-10-23 15:26:24 +0000339 * ospf_apiserver.c: (ospf_apiserver_term) This function should
340 not have side-effects (eg segv) if no apiserver instances are
341 active, ie be robust.
paulb8ad39d2005-10-23 15:23:05 +0000342 * ospf_vty.c: (show_ip_ospf) fix display of SPF timer if it
343 has not yet been run.
344
paulf9ad9372005-10-21 00:45:17 +00003452005-10-21 Paul Jakma <paul.jakma@sun.com>
346
paulea4ffc92005-10-21 20:04:41 +0000347 * ospf_dump.c: (ospf_timeval_dump) fix ms adjustment, thanks to
348 Andrew Schorr.
349 * ospf_vty.c: (ospf_config_write) fix write out of spf timers
350 configuration.
351
3522005-10-21 Paul Jakma <paul.jakma@sun.com>
353
pauld24f6e22005-10-21 09:23:12 +0000354 * (general) SPF millisecond resolution timer with adaptive,
355 linear back-off holdtime. Prettification of ospf_timer_dump.
356 * ospf_dump.c: (ospf_timeval_dump) new function. The guts of
357 ospf_timer_dump, but made to be more dynamic in printing out
358 the relative timeval, sliding the precision printed out
359 according to the value.
360 (ospf_timer_dump) guts moved to ospf_timeval_dump.
361 * ospf_dump.h: export ospf_timeval_dump.
362 * ospf_flood.c: (ospf_flood) remove gettimeofday, use
363 the libzebra exported recent_time instead, as it's not
364 terribly critical to have time exactly right - the dropped
365 LSA will be retransmited to us if we don't ACK it.
366 * ospf_packet.c: (ospf_ls_upd_timer) Ditto, but here we're
367 not transmitting, just putting LSA back on update transmit list.
368 * ospfd.h: delay and holdtimes should be unsigned.
369 Add spf_max_holdtime and spf_hold_multiplier.
370 Update default defines for delay and hold time to be in msec.
371 (struct ospf) change the SPF timestamp to a struct timeval.
372 Remove ospf_timers_spf_(un)?set.
373 * ospfd.c: (ospf_timers_spf_{set,unset}) removed.
374 (ospf_new) initialise spf_max_holdtime and spf_hold_multiplier
375 * ospf_spf.c: (ospf_spf_calculate) SPF timestamp is a timeval
376 now, update with gettimeofday.
377 (ospf_spf_calculate_schedule) Change SPF timers to millisecond
378 resolution.
379 Make the holdtime be adaptive, with a linear increase in
380 holdtime ever consecutive SPF run which occurs within holdtime
381 of previous SPF, bounded by spf_max_holdtime.
382 * ospf_vty.c: Update spf timers commands.
383 (ospf_timers_spf_set) trivial helper.
384 (ospf_timers_throttle_spf_cmd) new command to set SPF delay,
385 initial hold and max hold times with millisecond resolution.
386 (ospf_timers_spf_cmd) Deprecated. Accept the old values,
387 convert to msec, truncate to new limits.
388 (no_ospf_timers_throttle_spf_cmd) set timers to defaults.
389 (no_ospf_timers_spf_cmd) deprecated form, same as previous.
390 (show_ip_ospf_cmd) Display SPF parameters and times.
391 (show_ip_ospf_neighbour_header) Centralise the 'sh ip os ne'
392 header.
393 (show_ip_ospf_neighbor_sub) Fix the field widths. Get rid of
394 the multiple spaces which were making the lines even longer.
395 (show_ip_ospf_neighbor_cmd) Use show_ip_ospf_neighbour_header
396 (show_ip_ospf_neighbor_all_cmd) ditto and fix the field
397 widths for NBMA neighbours.
398 (show_ip_ospf_neighbor_int) Use header function.
399 (show_ip_ospf_nbr_nbma_detail_sub) use sizeof for timebuf,
400 local array - safer.
401 (show_ip_ospf_neighbor_detail_sub) ditto
402 (ospf_vty_init) install the new SPF throttle timer commands.
403
4042005-10-21 Paul Jakma <paul.jakma@sun.com>
405
paulf9ad9372005-10-21 00:45:17 +0000406 * (general) OSPF fast, sub-second hello and 1s dead-interval
407 support.
408 * ospf_dump.c: (ospf_timer_dump) Print out milliseconds too.
409 Callers typically specify a length of 9, so most see
410 millisecs unless they specify the additional length.
411 * ospf_interface.h: (struct ospf_interface) new interface param,
412 fast_hello.
413 * ospf_interface.c: (ospf_if_table_lookup) add brackets,
414 gcc warning fix.
415 (ospf_new_if_params) Initialise fast_hello param.
416 (ospf_free_if_params) Check whether fast_hello is configured.
417 (ospf_if_new_hook) set fast_hello to default.
418 * ospf_ism.h: Wrap OSPF_ISM_TIMER_ON inside do {} while (0) to
419 prevent funny side-effects from its if statement when this
420 macro is used conditionally by other macros.
421 (OSPF_ISM_TIMER_MSEC_ON) new macro, set in milliseconds.
422 (OSPF_HELLO_TIMER_ON) new macro to set hello timer according
423 to whether fast_hello is set.
424 * ospf_ism.c: Update all setting of the hello timer to use
425 either OSPF_ISM_TIMER_MSEC_ON or OSPF_HELLO_TIMER_ON. The
426 former is used when hello is to be sent immediately.
427 * ospf_nsm.c: ditto
428 * ospf_packet.c: (ospf_hello) hello-interval is not checked
429 for mismatch if fast_hello is set.
430 (ospf_read) Annoying nit, fix "no ospf_interface" to be debug
431 rather than a warning, as it can be perfectly normal to
432 receive packets when logical subnets are used.
433 (ospf_make_hello) Set hello-interval to 0 if fast-hellos are
434 configured.
435 * ospf_vty.c: (ospf_auto_cost_reference_bandwidth) annoying
436 nit, don't vty_out if this command is given, it gets tired
437 quick.
438 (show_ip_ospf_interface_sub) Print the hello-interval
439 according to whether fast-hello is set or not.
440 Print the extra 5 millisec characters from (ospf_timer_dump)
441 if fast-hello is configured.
442 (ospf_vty_dead_interval_set) new function, common to all
443 forms of dead-interval command, to set dead-interval and
444 fast-hello correctly. If a dead-interval is given, unset
445 fast-hello, else if a hello-multiplier is set, set
446 dead-interval to 1 and fast-hello to given multiplier.
447 (ip_ospf_dead_interval_addr_cmd) use
448 ospf_vty_dead_interval_set().
449 (ip_ospf_dead_interval_minimal_addr_cmd) ditto.
450 (no_ip_ospf_dead_interval) Unset fast-hello.
451 (no_ip_ospf_hello_interval) Bug-fix, unset of hello-interval
452 should set it to OSPF_HELLO_INTERVAL_DEFAULT, not
453 OSPF_ROUTER_DEAD_INTERVAL_DEFAULT.
454 (config_write_interface) Write out fast-hello.
455 (ospf_config_write) Write a comment about
456 "auto-cost reference-bandwidth" having to be equal on all
457 routers. Hopefully just as noticeable as old practice of
458 writing to vty, but less annoying.
459 (ospf_vty_if_init) install the two new dead-interval
460 commands.
461 * ospfd.h: Add defines for OSPF_ROUTER_DEAD_INTERVAL_MINIMAL
462 and OSPF_FAST_HELLO_DEFAULT.
463
pauleb3da6d2005-10-18 04:20:33 +00004642005-10-18 Paul Jakma <paul.jakma@sun.com>
465
466 * (general) SPF memory management cleanup and fix for rare
467 double-free bug.
468 * ospf_spf.h: (struct vertex_parent) New struct to hold parent
469 specific data, eg the backlink and the parent vertex pointer,
470 and point to the appropriate general struct vertex_nexthop.
471 (struct vertex_nexthop) remove parent vertex pointer, so
472 this struct can be shared across vertices.
473 (struct vertex) rename list child to list children. Remove
474 list of nexthops, replace with list of vertex_parents.
475 * ospf_spf.c: (update_stat) trivial, remove cast from void *.
476 (vertex_nexthop_new) remove init of parent - field is gone
477 from struct vertex_nexthop.
478 (ospf_canonical_nexthops_free) Remove the canonical
479 vertex_nexthop memory objects. These are the vertex_nexthops
480 attached to the first level of router vertices from the root.
481 (vertex_parent_new) new function, create a vertex_parent.
482 (vertex_parent_free) ditto, but free it.
483 (ospf_vertex_new) Update to match changes to struct vertex.
484 (ospf_vertex_free) Recursively free a struct vertex and its
485 children. The parent list is used as a reference count.
486 vertex_nexthops must be free seperately, if required.
487 (ospf_vertex_dump) update to match struct vertex changes.
488 Print out backlink of parents too.
489 (ospf_vertex_add_parent) ditto.
490 (ospf_lsa_has_link) update comment.
491 (ospf_nexthop_add_unique) removed, not needed anymore.
492 (ospf_nexthop_merge) ditto.
493 (ospf_spf_consider_nexthop) renamed to ospf_spf_add_parent.
494 Simplified to just create vertex_parent and add it.
495 (ospf_spf_flush_parents) new function, flush out the parent
496 list.
497 (ospf_nexthop_calculation) Take the relevant route_lsa_link
498 as an argument, which simplifies things and removes the need
499 for the hack in ospf_nexthop_add_unique - ospf_spf_next
500 already knew exactly which link the cost calculated was for.
501 Update to match struct vertex changes too.
502 (ospf_spf_next) Don't create a vertex for W unnecessarily, if
503 it's there's a vertex already created for W, use it, and
504 hence there's no need to free it either.
505 Update some manipulation/comparisons of distance to match.
506 Flush the parent list if a lower cost path is found.
507 (ospf_spf_route_free) unused, removed.
508 (ospf_spf_dump) match the struct vertex changes, and dump the
509 ifname if possible.
510 (ospf_spf_calculate) At end of SPF, free the canonical nexthops
511 and call ospf_vertex_free on the root vertex to free the
512 entire tree.
513 * ospf_interface.c: (ospf_vl_set_params) match struct vertex
514 changes.
515 * ospf_route.c: (ospf_intra_route_add) ditto
516 (ospf_route_copy_nexthops_from_vertex) ditto
517
paul36238142005-10-11 04:12:54 +00005182005-10-11 Paul Jakma <paul.jakma@sun.com>
519
520 * ospf_api.c: sign warnings.
521 * ospf_apiserver.c: sign warning and convert all the struct
522 in_addr initialisations so as not to make assumptions about
523 how this struct is organised, initialise the s_addr member
524 explicitely.
525 * ospf_packet.c: Add const qualifier to auth_key.
526
vincent77df1f72005-10-06 07:46:22 +00005272005-10-06 Alain Ritoux <alain.ritoux@6wind.com>
528
529 * ospf_snmp.c: Avoid mixing interface and ospf_interface objects
530 which now allows snmpwalk to work with ospfIfTable and
531 also with ospfIfMetricTable
532
ajsf52d13c2005-10-01 17:38:06 +00005332005-10-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
534
535 * ospf_dump.c: Remove local hard-coded table ospf_redistributed_proto.
536 (ospf_redist_string) New function implemented using new library
537 function zebra_route_string(). Note that there are a few differences
538 in the output that will result: the new function returns strings
539 that are lower-case, whereas the old table was mixed case. Also,
540 the old table mapped ZEBRA_ROUTE_OSPF6 to "OSPFv3", whereas the
541 new function returns "ospf6".
542 * ospfd.h: Remove extern struct message ospf_redistributed_proto[],
543 and add extern const char *ospf_redist_string(u_int route_type)
544 instead.
545 * ospf_asbr.c: (ospf_external_info_add) In two messages, use
546 ospf_redist_string instead of LOOKUP(ospf_redistributed_proto).
547 * ospf_vty.c: Remove local hard-coded table distribute_str.
548 (config_write_ospf_redistribute,config_write_ospf_distribute): Use
549 new library function zebra_route_string() instead of distribute_str[].
550 * ospf_zebra.c: (ospf_redistribute_set,ospf_redistribute_unset,
551 ospf_redistribute_default_set,ospf_redistribute_check)
552 In debug messages, use ospf_redist_string() instead of
553 LOOKUP(ospf_redistributed_proto).
554
jardin6638c1a2005-10-01 00:08:54 +00005552005-09-30 Vincent Jardin <vincent.jardin@6wind.com>
556
557 * ospf_dump.c, ospf_ia.c, ospf_spf.c, ospf_ase.c:
558 remove unused DEBUG
559
vincentba682532005-09-29 13:52:57 +00005602005-09-29 Alain Ritoux <alain.ritoux@6wind.com>
561
vincent5e4914c2005-09-29 16:34:30 +0000562 * ospf_ism.c: generate SNMP traps on Interface state change
563 * ospf_nsm.c: generate SNMP traps on Neighbour state change
564 * ospf_snmp.[ch]: support for SNMP traps for interface and neighbours.
565
5662005-09-29 Alain Ritoux <alain.ritoux@6wind.com>
567
vincentba682532005-09-29 13:52:57 +0000568 * ospf_vty.c: forece default route LSA to be re_issued whenever
569 cost is changed ( [no] ip ospf area XXX default-cost YYY)
570 Support ignore-mtu option
571 * ospfd.h: define OSPF_MTU_IGNORE_DEFAULT
572 * ospf_packet.c: support ignore-mtu option
573 * ospf_interface.h: field added for skipping MTU check
574 * ospf_interface.c: fix memory leak in ospf_crypt_key_delete()
575 Set mtu_ignore field to default value
576 * ospf_abr.[ch]: export ospf_abr_announce_network_to_area()
577 * ospf_ism.h: add MACRO to convert internal ISM status into SNMP
578 correct values
579 * ospf_snmp.c: add sanity check on LSA type in lsdb_lookup_next()
580 convert OSPFIFSTATE internal status into SNMP values
581
vincentc1a03d42005-09-28 15:47:44 +00005822005-09-28 Alain Ritoux <alain.ritoux@6wind.com>
583
584 * ospf_packet.c: use new md5 API
585
ajs5339cfd2005-09-19 13:28:05 +00005862005-09-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
587
588 * ospf_lsa.h: (ospf_external_lsa_flush) Comment out the 5th argument
589 (nexthop) since it is not used in the function (except inside
590 some commented-out code).
591 * ospf_lsa.c: (ospf_external_lsa_flush,ospf_external_lsa_refresh)
592 Comment out the 5th argument to ospf_external_lsa_flush.
593 * ospf_asbr.c: (ospf_redistribute_withdraw) Comment out 5th arg
594 to ospf_external_lsa_flush.
595 * ospf_vty.c: (no_ospf_default_information_originate) Eliminate 5th
596 uninitialized nexthop arg to ospf_external_lsa_flush.
597 * ospf_zebra.c: (ospf_zebra_read_ipv4) Comment out 5th arg
598 to ospf_external_lsa_flush.
599 * ospfd.c: (ospf_network_set) Comment out 5th arg
600 to ospf_external_lsa_flush.
601
ajse6a0bf92005-09-17 18:53:38 +00006022005-09-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
603
604 * ospf_opaque.c:
605 (ospf_opaque_lsa_refresh_schedule,ospf_opaque_lsa_flush_schedule)
606 No need to call ospf_lookup(), just use lsa0->area->ospf instead.
607
hassobb5b7552005-08-21 20:01:15 +00006082005-08-21 Hasso Tepper <hasso at quagga.net>
609
610 * ospf_vty.c: Make "show ip ospf neighbor xxx" commands work.
611 Interface should be specified by name now.
612
hasso54bedb52005-08-17 13:31:47 +00006132005-08-17 Hasso Tepper <hasso at quagga.net>
614
615 * ospf_vty.c: Check carefully if interface exists before trying to
616 print info about it.
617
hasso01018ce2005-08-05 07:40:15 +00006182005-08-05 Hasso Tepper <hasso at quagga.net>
619
620 * ospf_zebra.c: Don't assert/stop before type == ZEBRA_ROUTE_MAX if
621 dealing with routemaps. There is ospf->route_map[ZEBRA_ROUTE_MAX]
622 for default-information.
623
paulc8987752005-07-26 06:07:22 +00006242005-07-26 Paul Jakma <paul.jakma@sun.com>
625
626 * ospf_abr.c: (ospf_abr_announce_network_to_area) SET_FLAG
627 should be on lsa not old, which may be freed for one thing,
628 obviously.
629
pauld57834f2005-07-12 20:04:22 +00006302005-07-12 Paul Jakma <paul.jakma@sun.com>
631
632 * ospfd.h: add OSPF_ABR_DEFAULT for convenience, make
633 OSPF_ABR_CISCO be the default ABR type.
634 * ospfd.c: (ospf_new) initialise abr_type to OSPF_ABR_DEFAULT
635 * ospf_vty.c: (no_ospf_abr_type_cmd) add standard as a negatable
636 abr_type. default abr_type should be OSPF_ABR_DEFAULT.
637 (ospf_config_write) test whether default abr_type against
638 OSPF_ABR_DEFAULT, rather than any specific ABR_TYPE.
639
hasso8469bd72005-06-20 20:50:10 +00006402005-06-20 Hasso Tepper <hasso at quagga.net>
hassof4833e92005-06-20 20:42:26 +0000641
642 * ospf_nsm.c: Make database exchange for NSSA database work.
643
paul7461d452005-06-13 13:57:16 +00006442005-06-13 Paul Jakma <paul.jakma@sun.com>
645
646 * ospf_spf.c: Try get more information on a SEGV under
647 ospf_spf_vertex_add_parent.
648 (ospf_vertex_free) NULL out the child and nexthop lists
649 (ospf_vertex_add_parent) nexthop and child can not be NULL
650 vertex_nexthop's parent->child list can not be NULL
651 (ospf_spf_next) w and cw are per-loop iteration variables, move
652 declarations into loop body.
653
hasso1ddd7292005-06-07 19:54:04 +00006542005-06-07 Hasso Tepper <hasso at quagga.net>
655
656 * ospf_apiserver.c: Fix obvious error in notifying clients about ISM
657 changes - oi->ifp->status doesn't give to us info about ISM,
658 oi->state does.
659
paul7e440862005-06-01 11:20:51 +00006602005-06-01 Akihiro Mizutani <mizutani@net-chef.net>
661
662 * ospf_ism.c (ospf_elect_bdr/ospf_elect_dr): Fix DR election bug.
663
paul500e4182005-05-26 17:11:13 +00006642005-05-26 Paul Jakma <paul.jakma@sun.com>
665
666 * ospf_abr.c: (ospf_abr_update_aggregate) Fix comment, cost bug itself
667 had been fixed long ago by Sowmini.
668
paula3387a42005-05-18 23:29:57 +00006692005-05-19 Paul Jakma <paul.jakma@sun.com>
670
671 * ospf_interface.c: (ospf_if_table_lookup) Fix a serious bug
672 a less serious one.
673 1: this function is supposed to lookup
674 entries in the oifs ospf_interface route_table and return either
675 an existing oi or NULL to indicate not found, its caller depends
676 on this, yet this function uses route_node_get which /always/
677 returns a route_node - one is created if none exists. Use
678 route_node_lookup instead. This should fix root cause of the
679 reports of the (ospf_add_to_if) assert being hit.
680 2: oi's are inserted into this table with prefixlength set to
681 /32 (indeed, it should be a hash table, not a route_table),
682 however prefixlength to lookup was not changed, if no valid entry
683 can be inserted other than /32, then nothng but /32 should be
684 looked up. This possibly only worked by fluke..
685 Fix confirmed by 2 reporters (one list, one IRC), definitely a
686 backport candidate once it has been incubated in HEAD for a while.
687 Thanks to Patrick Friedel and Ivan Warren for testing.
688
paul69310a62005-05-11 18:09:59 +00006892005-05-11 Paul Jakma <paul.jakma@sun.com>
690
691 * (general) Fix memory leaks in opaque AS-scope LSAs, reported and
692 with much debugging done by by scott collins <scollins@agile.tv>.
693 * ospf_lsa.c: (ospf_discard_from_db) dont call
694 ospf_ase_unregister_external_lsa for opaque-lsa's, opaques are
695 never registered with ase in the first place.
696 * ospf_packet.c: (general) Disabuse opaque related code of its
697 tendency to try gather up things into temporary lists.
698 (ospf_ls_upd) remove the temporary lists opaque uses, call
699 opaque functions inline, just like all other types.
700 (ospf_ls_ack) ditto.
701 (ospf_recv_packet) fixup sign warning.
702 * ospf_opaque.c: (general) fix the unneeded use of lists, and
703 untwist some of the logic.
704 (ospf_opaque_self_originated_lsa_received) take a single LSA
705 as argument, not a list of them. Remove the list loop. Logic
706 otherwise unchanged.
707 (ospf_opaque_ls_ack_received) Mostly ditto. But untwist the logic,
708 move the actions up into the switch block, remove the goto's and
709 sanitise the logic near the end a bit.
710 * ospf_opaque.h: Adjust definitions of aforementioned functions
711 in ospf_opaque.c to match.
712
paul42c98192005-05-07 02:22:51 +00007132005-05-07 Yar Tikhiy <yar@comp.chem.msu.su>
714
715 * ospf_network.c: Log ifindex on multicast membership leave/join
716 events.
717
paul4dadc292005-05-06 21:37:42 +00007182005-05-06 Paul Jakma <paul.jakma@sun.com>
719
720 * (general) extern and static qualifiers added.
721 unspecified arguments in definitions fixed, typically they should
722 be 'void'.
723 function casts added for callbacks.
724 Guards added to headers which lacked them.
725 Proper headers included rather than relying on incomplete
726 definitions.
727 gcc noreturn function attribute where appropriate.
728 * ospf_opaque.c: remove the private definition of ospf_lsa's
729 ospf_lsa_refresh_delay.
730 * ospf_lsa.h: export ospf_lsa_refresh_delay
731 * ospf_packet.c: (ospf_make_md5_digest) make *auth_key const,
732 correct thing to do - removes need for the casts later.
733 * ospf_vty.c: Use vty.h's VTY_GET_INTEGER rather than ospf_vty's
734 home-brewed versions, shuts up several warnings.
735 * ospf_vty.h: remove VTY_GET_UINT32. VTY_GET_IPV4_ADDRESS and
736 VTY_GET_IPV4_PREFIX moved to lib/vty.h.
737 * ospf_zebra.c: (ospf_distribute_list_update_timer) hacky
738 overloading of the THREAD_ARG pointer should at least use
739 uintptr_t.
740
paul9e67dc22005-04-15 12:10:17 +00007412005-04-15 Zhipeng Gong <zpgong@cdc.3upsystems.com>
742
743 * ospf_abr.c: (ospf_abr_announce_network_to_area) dont forget
744 to approve LSAs for the case where metric has changed, lsa gets
745 flushed otherwise. (backport candidate).
746
ajs634f9ea2005-04-11 15:51:40 +00007472005-04-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
748
749 * ospf_zebra.c (ospf_zebra_add): Call zclient_send_message instead
750 of writen.
751
ajsd2fc8892005-04-02 18:38:43 +00007522005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
753
ajse4319de2005-04-02 23:23:55 +0000754 * ospf_interface.h: (ospf_if_lookup_by_name) Remove declaration of a
755 function that does not exist.
756
7572005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
758
ajs21fefa92005-04-02 23:16:41 +0000759 * ospf_zebra.c: (zebra_interface_if_lookup) Must use
760 if_lookup_by_name_len.
761
7622005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
763
ajsa3491982005-04-02 22:50:38 +0000764 * ospf_interface.c: (ospf_vl_new) Use strnlen to fix call to if_create.
765
7662005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
767
ajsd2fc8892005-04-02 18:38:43 +0000768 * ospf_vty.c: (show_ip_ospf_interface_sub) Show ifindex and interface
769 flags to help with debugging.
770 * ospf_zebra.c: (ospf_interface_delete) After deleting, set ifp->ifindex
771 to IFINDEX_INTERNAL.
772 (zebra_interface_if_lookup) Make function static. Tighten up code.
773
ajsaca72fd2005-03-31 15:18:21 +00007742005-03-31 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
775
776 * ospf_dump.c: (show_debugging_ospf) Show if ospf event debugging
777 is turned on.
778
ajsfd651fa2005-03-29 16:08:16 +00007792005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
780
ajsa608bbf2005-03-29 17:03:49 +0000781 * ospf_zebra.c: (ospf_interface_state_up) If the MTU of an operative
782 interface changes, print a debug message and call ospf_if_reset()
783 to simulate down/up on the interface.
784 * ospf_interface.h: Declare new function ospf_if_reset().
785 * ospf_interface.c: (ospf_if_reset) New function to call ospf_if_down
786 and ospf_if_up for all ospf interfaces attached to an interface.
787
7882005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
789
ajs5dcbdf82005-03-29 16:13:49 +0000790 * ospf_packet.c: (ospf_write_frags) Enhance error message to
791 show MTU. Also make function static.
792 (ospf_write) Enhance error message to show interface name and MTU.
793 Also make function static.
794
7952005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
796
797 * ospf_vty.c: (show_ip_ospf_interface_sub) Display interface MTU and
798 bandwidth; this is useful for debugging problems. Also, the function
799 should be static.
ajsfd651fa2005-03-29 16:08:16 +0000800
hasso1b639042005-03-27 13:32:25 +00008012005-03-27 Hasso Tepper <hasso at quagga.net>
802
803 * ospf_snmp.c: Don't crash in snmp query if ospf instance doesn't
804 exist at all.
805
hasso343f5cc2005-03-25 19:48:40 +00008062005-03-25 Hasso Tepper <hasso at quagga.net>
807
808 * ospfd.h: Include log.h, fixes compile with gcc-4.0.
809
ajs9dbc7972005-03-13 19:27:22 +00008102005-03-13 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
811
812 * ospf_lsa.c: (ospf_lsa_refresh_walker) If the system clock jumps
813 backward, then current time may be less than
814 ospf->lsa_refresher_started. This was causing invalid values
815 for ospf->lsa_refresh_queue.index resulting in infinite loops.
816 Problem fixed by casting the expression to unsigned before taking
817 the modulus.
818
ajs5c333492005-02-23 15:43:01 +00008192005-02-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
820
821 * ospfd.h: Add new field struct stream *ibuf to struct ospf.
822 * ospfd.c: (ospf_new) Check return code from ospf_sock_init.
823 Allocate ibuf using stream_new(OSPF_MAX_PACKET_SIZE+1).
824 (ospf_finish) Call stream_free(ospf->ibuf.
825 * ospf_packet.c: (ospf_read) Call stream_reset(ospf->ibuf) and then
826 pass it to ospf_recv_packet for use in receiving the packet
827 (instead of allocating a new stream for each packet received).
828 Eliminate all calls to stream_free(ibuf).
829 (ospf_recv_packet) The struct stream *ibuf is now passed in as
830 an argument. No need to use recvfrom to peek at the packet
831 header (to see how big it is), just use ospf->ibuf which is
832 always large enough (this eliminates a system call to recvfrom).
833 Therefore, no need to allocate a stream just for this packet,
834 and no need to free it when done.
835
hasso462f20d2005-02-23 11:29:02 +00008362005-02-23 Vincenzo Eramo <eramo at infocom.ing.uniroma1.it>
837
838 * ospf_lsa.h: New flag to the LSA structure for the SPF calculation.
839 * ospf_lsdb.h: Export ospf_lsdb_clean_stat() function.
840 * ospf_spf.h: Add link to the LSA stat structure into vertex.
841 * ospf_spf.c: New functions cmp() and update_stat() to manage
842 candidates. Remove ospf_spf_has_vertex(), ospf_vertex_lookup(),
843 ospf_install_candidate() and ospf_spf_register() functions not needed
844 any more. Update ospf_vertex_new(), ospf_spf_next() and
845 ospf_spf_calculate() functions to use pqueue instead of linked list.
846
hassoe40dcce2005-02-21 14:58:42 +00008472005-02-21 Hasso Tepper <hasso at quagga.net>
848
849 * ospf_ase.c: Don't show messages related to the ase calculations if
850 we are not debugging.
851
hasso306541b2005-02-19 17:58:40 +00008522005-02-19 Hasso Tepper <hasso at quagga.net>
853
854 * ospf_api.h: char isn't always signed, but it has to be it here.
855
paulfa81b712005-02-19 01:19:20 +00008562005-02-19 Paul Jakma <paul.jakma@sun.com>
857
858 * ospf_packet.c: (ospf_stream_copy) remove
859 (ospf_packet_dup) use stream_copy instead of ospf_stream_copy
860
ajs038163f2005-02-17 19:55:59 +00008612005-02-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
862
863 * ospf_packet.c: (ospf_recv_packet) If there is somehow a runt
864 packet in the queue, it must be discarded. Improve warning messages.
865 Fix scope to static.
866 (ospf_read) Fix bug: should reset the read thread in all cases
867 to make sure we continue to get incoming messages.
868
paul658b03a2005-02-15 10:10:55 +00008692005-02-15 Paul Jakma <paul.jakma@sun.com>
870
871 * ospf_packet.c: (ospf_recv_packet) Fix silly error wrt allocating
872 ibuf. Thanks Andrew.
873
paulbfdc44a2005-02-14 23:48:42 +00008742005-02-14 Paul Jakma <paul.jakma@sun.com>
875
876 * ospf_packet.c: (ospf_recv_packet) use stream_recvmsg.
877
hasso082253f2005-02-11 08:31:54 +00008782005-02-11 Hasso Tepper <hasso at quagga.net>
879
880 * ospf_lsdb.c: Fix sum of checksums calculation.
881
ajs083ee9d2005-02-09 15:35:50 +00008822005-02-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
883
884 * ospf_packet.c: (ospf_write) If sendmsg fails, give more info in the
885 error message.
886
ajsba6454e2005-02-08 15:37:30 +00008872005-02-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
888
ajs8cfde372005-02-08 15:59:16 +0000889 * ospf_interface.h: Reduce structure padding by putting new u_char
890 field multicast_memberships in a better spot (grouped with
891 other u_char fields type and state).
892
8932005-02-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
894
ajsba6454e2005-02-08 15:37:30 +0000895 * ospf_interface.h: Improve passive_interface comment. Add new
896 multicast_memberships bitmask to struct ospf_interface to track
897 active multicast subscriptions. Declare new function
898 ospf_if_set_multicast.
899 * ospf_interface.c: (ospf_if_set_multicast) New function to configure
900 multicast memberships properly based on the current
901 multicast_memberships status and the current values of the
902 ospf_interface state, type, and passive_interface status.
903 (ospf_if_up) Remove call to ospf_if_add_allspfrouters (this is
904 now handled by ism_change_state's call to ospf_if_set_multicast).
905 (ospf_if_down) Remove call to ospf_if_drop_allspfrouters (now
906 handled by ism_change_state).
907 * ospf_ism.c: (ospf_dr_election) Remove logic to join or leave
908 the DRouters multicast group (now handled by ism_change_state's call
909 to ospf_if_set_multicast).
910 (ism_change_state) Add call to ospf_if_set_multicast to change
911 multicast memberships as necessary to reflect the new interface state.
912 * ospf_packet.c: (ospf_hello) When a Hello packet is received on a
913 passive interface: 1. Increase the severity of the error message
914 from LOG_INFO to LOG_WARNING; 2. Add more information to the error
915 message (packet destination address and interface address);
916 and 3. If the packet was sent to ospf-all-routers, then try
917 to fix the multicast group memberships.
918 (ospf_read) When a packet is received on an interface whose state
919 is ISM_Down, enhance the warning message to show the packet
920 destination address, and try to update/fix the multicast group
921 memberships if the packet was sent to a multicast address.
922 When a packet is received for ospf-designated-routers, but the
923 current interface state is not DR or BDR, then increase the
924 severity level of the error message from LOG_INFO to LOG_WARNING,
925 and try to fix the multicast group memberships.
926 * ospf_vty.c: (ospf_passive_interface) Call ospf_if_set_multicast for
927 any ospf interface that may have changed from active to passive.
928 (no_ospf_passive_interface) Call ospf_if_set_multicast for
929 any ospf interface that may have changed from passive to active.
930 (show_ip_ospf_interface_sub) Show multicast group memberships.
931
paul3a9eb092005-02-08 11:29:41 +00009322005-02-08 Paul Jakma <paul@dishone.st>
933
934 * ospf_packet.c: (various) Remove unneeded stream_set_putp abuse.
935
ajs847947f2005-02-02 18:38:48 +00009362005-02-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
937
938 * ospf_packet.c: (ospf_read) Fix bug: must check for state ISM_Down,
939 not for event ISM_InterfaceDown. And improve the message by
940 adding the interface flags.
941
ajs0b7d97d2005-01-30 17:24:02 +00009422005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
943
944 * ospf_network.c: (ospf_sock_init) Save errno before calling
945 ospfd_privs.change.
946
ajsc3eab872005-01-29 15:52:07 +00009472005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
948
949 * ospf_packet.c: (ospf_packet_add) If oi->obuf is NULL, print
950 an error message and return.
951 (ospf_read) If the interface state is ISM_InterfaceDown, issue
952 a warning message and ignore the packet.
953
gdt86f1fd92005-01-10 14:20:43 +00009542005-01-10 Greg Troxel <gdt@fnord.ir.bbn.com>
955
956 * ospf_packet.h: Remove commented out definition of
957 OSPF_MAX_PACKET; neither it or the uncommented one are used any more.
958
959 * ospf_packet.c (ospf_make_ls_upd): Leave room for authentication
960 when deciding if an update will fit.
961 (ospf_packet_authspace): Factor out calculation of size required
962 for authentication.
963 (ospf_make_db_desc): Use ospf_max_packet, not OSPF_MAX_PACKET.
964 Don't confuse readers that there is a macro.
965
ajs3dc56b52004-12-30 15:11:19 +00009662004-12-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
967
968 * ospf_network.c: Improve all setsockopt error messages to give detailed
969 information on the arguments.
970
ajsb87f7722004-12-29 20:41:26 +00009712004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
972
ajs17eaa722004-12-29 21:04:48 +0000973 * ospf_packet.c: (ospf_db_desc) Reduce severity of "Negotiation done"
974 messages from LOG_WARNING to LOG_INFO, since this seems to be
975 normal.
976
9772004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
978
ajsb87f7722004-12-29 20:41:26 +0000979 * ospf_packet.c: (ospf_read) Always look up the interface if
980 ospf_recv_packet returns NULL ifp, since some platforms such
981 as Solaris 8 appear to support ifindex retrieval but don't.
982
hasso1d806282004-12-22 09:43:20 +00009832004-12-22 Hasso Tepper <hasso at quagga.net>
984
985 * ospf_dump.c: Show debug configuration in vtysh.
hassoc6b87812004-12-22 13:09:59 +0000986 * ospf_vty.c: Fix "show ip ospf" output. Router can't be elected in
987 any case if it's configured as "translate-never".
hassofe71a972004-12-22 16:16:02 +0000988 * ospf_lsdb.[ch]: New function to calculate sum of checksums.
989 * ospf_vty.c: Bugfix to show really number of AS external LSAs, not
990 number of all LSAs with AS scope, this includes opaque as LSAs as
991 well, show this number separately. Show numbers and sums of
992 checksums for each type of LSAs.
993 * ospf_lsa.c: Calculate checksum before putting LSA into database.
hasso1d806282004-12-22 09:43:20 +0000994
ajsbc18d612004-12-15 15:07:19 +00009952004-12-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
996
997 * ospf_interface.h: Declare new function ospf_default_iftype.
998 * ospf_interface.c: (ospf_default_iftype) New function to centralize
999 this logic in one place.
1000 * ospf_zebra.c: (ospf_interface_add) Use new function
1001 ospf_default_iftype.
1002 * ospf_vty.c: (no_ip_ospf_network,config_write_interface) Fix logic
1003 by using new function ospf_default_iftype.
1004
ajs3aa8d5f2004-12-11 18:00:06 +000010052004-12-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1006
1007 * ospf_packet.c: (ospf_db_desc) Should be static, not global.
1008 (ospf_hello,ospf_db_desc,ospf_ls_upd,ospf_ls_ack) Improve warning
1009 messages to include identifying information (e.g. router id).
1010 * ospf_nsm.c: (nsm_change_state) Improve info message to include
1011 router id and state names.
1012
gdt91f3e522004-12-09 14:51:03 +000010132004-12-09 Greg Troxel <gdt@fnord.ir.bbn.com>
1014
gdt3fb9de72004-12-09 16:30:04 +00001015 * ospf_apiserver.c (ospf_apiserver_term): Obtain struct
1016 ospf_apiserver * from listnode. Remove unused variables. Follows
1017 suggestion from Jay Fenlason.
gdt91f3e522004-12-09 14:51:03 +00001018
ajs9b0e25c2004-12-08 19:06:51 +000010192004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1020
1021 * *.c: Change level of debug messages to LOG_DEBUG.
1022
ajs274a4a42004-12-07 15:39:31 +000010232004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1024
1025 * ospf_main.c: (main) The 2nd argument to openzlog has been removed.
1026
ajs887c44a2004-12-03 16:36:46 +000010272004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1028
ajs1210fa62004-12-03 16:43:24 +00001029 * ospf_packet.c: (ospf_db_desc) Reduce priority on a debug message
1030 from LOG_NOTICE to LOG_DEBUG.
1031
10322004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1033
ajs887c44a2004-12-03 16:36:46 +00001034 * ospf_main.c: (sigint) Use zlog_notice for termination message.
1035 (main) Issue a startup announcement using zlog_notice.
1036
ajsbec595a2004-11-30 22:38:43 +000010372004-11-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1038
1039 * ospf_packet.c: (ospf_db_desc_proc) Fix spelling of packet in warning
1040 message and in comment.
1041 (ospf_db_desc) Warning message that a packet is being discarded
1042 should give the router id of the packet source. Fix spelling
1043 of packet in two warning messages.
1044 (ospf_ls_req) Warning message that a link state request is being
1045 discarded should give the router id of the neighbor that sent it.
1046
ajs5b85fac2004-11-26 19:36:42 +000010472004-11-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1048
1049 * ospf_main.c: Remove #include "debug.h" (was not being used, and
1050 lib/debug.h has now been deleted).
1051
hassoc0652302004-11-25 19:33:48 +000010522004-11-25 Hasso Tepper <hasso at quagga.net>
1053
1054 * ospf_main.c: Make group to run as configurable.
1055
gdt69e13252004-11-15 18:51:15 +000010562004-11-15 Greg Troxel <gdt@fnord.ir.bbn.com>
1057
1058 * ospf_packet.c (ospf_recv_packet): Assume CMSG_SPACE is present
1059 and works (lib/zebra.h provides if OS doesn't).
1060
paul788dab12004-11-15 11:48:37 +000010612004-11-15 Paul Jakma <paul@dishone.st>
1062
1063 * ospf_{apiserver,te}.c: ospf_lsa_free's should be ospf_lsa_unlock.
1064
paul05e85fa2004-11-12 10:52:19 +000010652004-11-12 Paul Jakma <paul@dishone.st>
1066
1067 * ospf_ia.c: (process_summary_lsa) Only an ABR has any reason to
1068 ignore stub area summary default. Even so it seems a strange
1069 check, add a comment to that effect.
1070
paulf3ae74c2004-11-04 20:35:31 +000010712004-11-04 Paul Jakma <paul@dishone.st>
1072
1073 * ospfd.c: (ospf_network_match_iface) revert to previous network
1074 statement match behaviour.
1075
paul62d8e962004-11-02 20:26:45 +000010762004-11-02 Paul Jakma <paul@dishone.st>
1077
1078 * ospf_packet.c: (ospf_write_frags) remove iov arg, msg already points
1079 to it. Add convenience pointer to msg->msg_iov[1], and use this,
1080 fixing the unfortunate borkenness introduced in moving of this code
1081 to a function.
1082 (ospf_write) remove iovp and fix up call to previous.
1083 (ospf_ls_upd_packet_new) cast size to long int - unfortunately
1084 glibc's size_t format modifier is not portable.
1085
paul37ccfa32004-10-31 11:24:51 +000010862004-10-31 Paul Jakma <paul@dishone.st>
1087
1088 * ospf_packet.c: (ospf_write_frags) Add debug output
1089 (ospf_write) set type early, so we can pass it to
1090 ospf_write_frags.
1091 (ospf_ls_upd_packet_new) print size in debug output when too large
1092 packet is encountered.
paul64511f32004-10-31 18:01:13 +00001093 * ospf_zebra.c: (ospf_distribute_list_update_timer) Ugly misuse of
1094 THREAD_ARG to store an integer, but it should at least use same
1095 same type to retrieve the value. Assert value is sane.
paul37ccfa32004-10-31 11:24:51 +00001096
paulac191232004-10-22 12:05:17 +000010972004-10-22 Paul Jakma <paul@dishone.st>
1098
1099 * ospf_network.c: (ospf_sock_init) call neutral setsock_ifindex()
1100 function.
1101 * ospf_packet.c: (ospf_read) manually look up ifindex
paul4ccb2c42004-10-22 22:52:33 +00001102 if system could not have returned one, eg openbsd, thanks to Rivo
1103 Nurges for highlighting problem and fix.
paul06f953f2004-10-22 17:00:38 +00001104 Change setsockopt_pktinfo to setsockopt_ifindex.
paulac191232004-10-22 12:05:17 +00001105
hasso3fb9cd62004-10-19 19:44:43 +000011062004-10-19 Andrew J. Schorr <aschorr@telemetry-investments.com>
1107
1108 * ospf_snmp.c: (ospf_snmp_if_update) Fix logic to handle PtP links
1109 with dedicated subnets properly.
1110 * ospf_lsa.c: (lsa_link_ptop_set) ditto.
1111 * ospfd.c: (ospf_network_match_iface) ditto.
1112 (ospf_network_run) ditto.
1113 * ospf_interface.c: (ospf_if_is_configured) ditto.
1114 (ospf_if_lookup_by_prefix) ditto.
1115 (ospf_if_lookup_recv_if) ditto.
1116 * ospf_vty.c: (show_ip_ospf_interface_sub) Display the peer or
1117 broadcast address if present.
1118
hassod68614d2004-10-13 09:32:48 +000011192004-10-13 Hasso Tepper <hasso at quagga.net>
1120
1121 * ospf_main.c: Unbreak compilation with ospfapi disabled.
hassoc75105a2004-10-13 10:33:26 +00001122 * ospf_snmp.c: Remove defaults used to initialize smux connection to
1123 snmpd. Connection is initialized only if smux peer is configured.
hassod68614d2004-10-13 09:32:48 +00001124
hassof4d58ce2004-10-12 06:13:54 +000011252004-10-12 Hasso Tepper <hasso at quagga.net>
1126
1127 * ospf_main.c, ospf_opaque.c: Unbreak ospfclient compilation - move
1128 static variable from ospf_main.c into ospf_opaque.c.
1129
hassoc3abdb72004-10-11 16:27:03 +000011302004-10-11 Hasso Tepper <hasso at quagga.net>
1131
1132 * ospf_main.c, ospf_opaque.c: Disable ospfapi init by default. New
1133 command line switch to enable it.
1134
paul6b333612004-10-11 10:11:25 +000011352004-10-11 Paul Jakma <paul@dishone.st>
1136
1137 * ospf_dump.c: (ospf_ip_header_dump) Assume header is in host order
1138 remove ntohs that should have dissappeared. Take struct ip
1139 as argument, caller has to know there's an IP header at start of
1140 stream anyway.
1141 * ospf_dump.h: update declaration of ospf_ip_header_dump.
1142 * ospf_packet.c: (ospf_write) correct call to
1143 sockopt_iphdrincl_swab_htosys which was munging the header.
1144 (ospf_recv_packet) ip_len is needed for old OpenBSD fixup.
1145 (ospf_read) sockopt_iphdrincl_swab_systoh ip header as soon as
1146 we have it.
paul6c835672004-10-11 11:00:30 +00001147 * (global) Const char update and signed/unsigned fixes.
1148 * (various headers) size defines should be unsigned.
1149 * ospf_interface.h: remove duplicated defines, include the
1150 authoritative header - though, these defines should probably
1151 be moved to a dedicated header, or ospfd.h.
1152 * ospf_lsa.h: (struct lsa) ls_seqnum should be unsigned.
1153 * ospf_packet.c: (ospf_write) cast result of shift to unsigned.
paul6b333612004-10-11 10:11:25 +00001154
hassoeb1ce602004-10-08 08:17:22 +000011552004-10-08 Hasso Tepper <hasso at quagga.net>
1156
1157 * *.[c|h]: Fix compiler warnings: make some strings const, signed ->
1158 unsigned, remove unused variables etc.
1159
gdt54ade992004-10-07 19:38:20 +000011602004-10-07 Greg Troxel <gdt@claude.ir.bbn.com>
1161
1162 * ospf_apiserver.c (ospf_apiserver_unregister_opaque_type): Don't
1163 use of variable names 'node' and 'nextnode' to avoid possible
1164 conflict with list macros. Move variable declaration inside for
1165 loop after a statement to top of function.
1166
paulaa20c6f2004-10-07 14:19:36 +000011672004-10-07 Paul Jakma <paul@dishone.st>
1168
1169 * ospf_snmp.c: Missed list typedef update
1170 * ospf_dump.c: Include sockopt.h for header swab functions.
1171
paul18b12c32004-10-05 14:38:29 +000011722004-10-05 Paul Jakma <paul@dishone.st>
1173
1174 * ospf_packet.c: replace ospf_swap_iph_to... with
1175 sockopt_iphdrincl_swab_...
1176
hasso18a6dce2004-10-03 18:18:34 +000011772004-10-03 James R. Leu <jleu at mindspring.com>
1178
1179 * ospf_zebra.c: Read router id related messages from zebra daemon.
1180 Schedule router-id update thread if it's changed.
1181 * ospfd.c: Remove own router-id selection function. Use router id from
1182 zebra daemon if it isn't manually overriden in configuration.
1183
paul68defd62004-09-27 07:27:13 +000011842004-09-27 Paul Jakma <paul@dishone.st>
1185
paul6a99f832004-09-27 12:56:30 +00001186 * ospf_dump.c: (ospf_ip_header_dump) Use HAVE_IP_HDRINCL_BSD_ORDER
1187 Apply to offset too. Print ip_cksum, lets not worry about
1188 possible 2.0.37 compile problems.
1189 * ospf_packet.c: (ospf_swap_iph_to{n,h}) Use
1190 HAVE_IP_HDRINCL_BSD_ORDER.
1191 (ospf_recv_packet) ditto.
1192 (ospf_write) Fixup iov argument to ospf_write_frags.
1193 (struct msghdr).msg_name is caddr_t on most platforms.
paul68defd62004-09-27 07:27:13 +00001194 (ospf_recv_packet) ditto. And msg_flags is not always there
1195 memset struct then set fields we care about rather than
1196 initialise all fields individually.
1197
hassoc9e52be2004-09-26 16:09:34 +000011982004-09-26 Hasso Tepper <hasso at quagga.net>
1199
1200 * ospf_abr.c, ospf_dump.c, ospf_lsa.c, ospf_packet.c, ospf_vty.c,
1201 ospf_zebra.c: Fix compiler warnings.
1202
paul87d6f872004-09-24 08:01:38 +000012032004-09-24 Paul Jakma <paul@dishone.st>
1204
1205 * ospf_apiserver.{c,h}: lists typedef removal cleanup.
1206 update some list loops to LIST_LOOP. some miscellaneous indent
1207 fixups.
1208 (ospf_apiserver_unregister_opaque_type) fix listnode_delete of
1209 referenced node in loop.
paul1603c062004-09-24 08:23:24 +00001210 (ospf_apiserver_term) loops calling ospf_apiserver_free, which
1211 deletes referenced nodes from apiserver_list, fixed.
paul87d6f872004-09-24 08:01:38 +00001212 * ospf_interface.h: lists typedef removal cleanup.
1213 * ospf_opaque.{c,h}: lists typedef removal cleanup. update some list
1214 loops to LIST_LOOP. miscellaneous style and indent fixups.
1215 * ospf_te.{c,h}: ditto
1216 * ospf_packet.c: lists typedef removal cleanup.
paula2570682004-09-24 08:09:57 +00001217 (ospf_write) ifdef fragmentation support. move actual
1218 fragmentation out to a new, similarly ifdefed, function.
1219 (ospf_write_frags) fragmented write support, moved from previous.
paul87d6f872004-09-24 08:01:38 +00001220
hasso52dc7ee2004-09-23 19:18:23 +000012212004-09-23 Hasso Tepper <hasso at quagga.net>
1222
1223 * *.[c|h]: list -> struct list *, listnode -> struct listnode *.
1224
paul68b73392004-09-12 14:21:37 +000012252004-09-12 Paul Jakma <paul@dishone.st>
1226
1227 * ospf_packet.c: Fix bugzilla #107
1228 (ospf_packet_max) get rid of the magic 88 constant
1229 (ospf_swab_iph_ton) new function. set ip header to network order,
1230 taking BSDisms into account.
1231 (ospf_swab_iph_toh) the inverse.
1232 (ospf_write) Add support for IP fragmentation, will only work on
1233 linux though, other kernels make it impossible. get rid of the
1234 magic 4 constant.
1235 (ospf_make_ls_upd) Bound check to end of stream, not to
1236 interface mtu.
1237 (ospf_ls_upd_packet_new) New function, allocate upd packet
1238 taking oversized LSAs into account.
1239 (ospf_ls_upd_queue_send) use ospf_ls_upd_packet_new to allocate,
1240 rather than statically allocating mtu sized packet buffer, which
1241 actually was wrong - it didnt take ip header into account, which
1242 should not be included in packet buffer.
1243 (ospf_ls_upd_send_queue_event) minor tweaks and remove
1244 TODO comment.
1245
gdt630e4802004-08-31 17:28:41 +000012462004-08-31 David Wiggins <dwiggins@bbn.com>
1247
1248 * ospf_spf.c (ospf_spf_calculate): Many more comments and debug
1249 print statements. New function ospf_vertex_dump used in debugging.
1250
12512004-08-31 David Wiggins <dwiggins@bbn.com>
1252
1253 * ospf_spf.h (struct vertex): Comments for flags and structure members.
1254
12552004-08-31 David Wiggins <dwiggins@bbn.com>
1256
1257 * ospf_route.c: When finding an alternate route, log cost as well.
1258
12592004-08-31 David Wiggins <dwiggins@bbn.com>
1260
1261 * ospf_interface.c (ospf_lookup_if_params): Initialize af in
1262 struct prefix allocated on stack.
1263
12642004-08-31 David Wiggins <dwiggins@bbn.com>
1265
1266 * ospf_packet.c (ospf_ls_ack_send_delayed): In p2mp mode, send
1267 acks to AllSPFRouters, rather than All-DR.
1268
hasso7b901432004-08-31 13:37:42 +000012692004-08-27 Hasso Tepper <hasso at quagga.net>
1270
1271 * ospf_vty.c: Don't print ospf network type under interface only
1272 if interface is in broadcast mode and interface type really is
1273 broadcast. Fixes Bugzilla #108.
1274
gdtd7d93992004-08-27 12:03:42 +000012752004-08-27 David Wiggins <dwiggins@bbn.com>
1276
1277 * ospf_spf.c (ospf_nexthop_calculation): Initialize address family
1278 in on-stack struct prefix_ipv4. Fixes point-to-multipoint SPF
1279 calculation.
1280
gdtd0deca62004-08-26 13:14:07 +000012812004-08-26 Greg Troxel <gdt@fnord.ir.bbn.com>
1282
1283 * ospf_packet.c (ospf_recv_packet): adjust size declaration of
gdtd7d93992004-08-27 12:03:42 +00001284 buffer used to get interface index so that it compiles on other
1285 than Linux and includes the required alignment space. Probably
1286 this was only working on sparc/sparc64 because most of
1287 sockaddr_dl was not being written.
gdtd0deca62004-08-26 13:14:07 +00001288
paul863082d2004-08-19 04:43:43 +000012892004-08-19 Paul Jakma <paul@dishone.st>
1290
1291 * ospf_packet.c: update to match sockopt renames.
1292
paul75ee0b82004-08-05 09:10:31 +000012932004-08-04 Paul Jakma <paul@dishone.st>
1294
1295 * ospf_spf.c: (ospf_spf_consider_nexthop) Add comment about issue.
1296 Compare only against list head - all nexthops must be same cost
1297 anyway, fixes a reference-listnode-after-delete bug noted by
1298 Kir Kostuchenko.
1299 (ospf_nexthop_calculation) Use ospf_spf_consider_nexthop for all
1300 candidates attached to root.
1301
paul36c64ef2004-07-27 11:19:11 +000013022004-07-27 Paul Jakma <paul@dishone.st>
1303
paul48fe13b2004-07-27 17:40:44 +00001304 * ospf_packet.c: (ospf_ls_upd_send_queue_event) fix thinko from
1305 last fix for ospfd wedging due to oversize LSAs: dont list loop on
1306 ospf_ls_upd_queue_send() - guaranteed segfault.
1307
13082004-07-27 Paul Jakma <paul@dishone.st>
1309
paul36c64ef2004-07-27 11:19:11 +00001310 * ospf_opaque.c: (ospf_opaque_lsa_flush_schedule) do not NULL out
1311 the LSA as then free_opaque_info_per_id() can never unlock (and
1312 free) the LSA. Reported by Gunnar Stigen.
1313
paul2dd8bb42004-07-23 15:13:48 +000013142004-07-23 Paul Jakma <paul@dishone.st>
1315
1316 * ospf_network.c: Replace PKTINFO/RECVIF with call to
1317 setsockopt_pktinfo
1318 * ospf_packet.c: Use getsockopt_pktinfo_ifindex and
1319 SOPT_SIZE_CMSG_PKTINFO_IPV4.
1320
paul59ea14c2004-07-14 20:50:36 +000013212004-07-14 Paul Jakma <paul@dishone.st>
1322
1323 * ospf_packet.c: (ospf_ls_upd_send_queue_event) Partial fix for
1324 problem reported by Peter Frost amongst others, where function
1325 will spin indefinitely if update list contains LSAs greater than
1326 MTU-headers or other condition leading to update list never being
1327 cleared. Problem of what to do with these LSAs remains.
1328 (ospf_make_ls_upd) add comment about large LSA problem,
1329 indentation cleanup.
1330
gdtb2c1b282004-07-01 12:35:36 +000013312004-07-01 Greg Troxel <gdt@fnord.ir.bbn.com>
1332
1333 * Makefile.am (lib_LTLIBRARIES): make libospf shared
1334
gdt87efd642004-06-30 17:36:11 +000013352004-06-30 Greg Troxel <gdt@poblano.ir.bbn.com>
1336
1337 * Makefile.am: Add shlib support.
1338
hassobeebba72004-06-20 21:00:27 +000013392004-06-10 Hasso Tepper <hasso@estpak.ee>
1340
1341 * *: Removed ifdefs HAVE_NSSA.
1342
paul553ff112004-06-06 09:41:00 +000013432004-06-06 Paul Jakma <paul@dishone.st>
1344
1345 * ospf_dump.c,ospf_lsa.c: Fix typos of merge of previous.
1346 ospf_flood.c: (ospf_process_self_originated_lsa) fix zlog format
1347
paul0c2be262004-05-31 14:16:54 +000013482004-05-31 Sagun Shakya <sagun.shakya@sun.com>
1349
1350 * ospf_dump.c: (ospf_lsa_header_dump) LOOKUP can return null if
1351 index is out of range.
1352 ospf_flood.c: endianness fix
1353 ospf_lsa.c: Missing ntohl's on (struct lsa *)->data->ls_seqnum
1354 in various places.
1355
hassodd669bb2004-05-10 07:43:59 +000013562004-05-10 Hasso Tepper <hasso@estpak.ee>
1357
1358 * ospf_zebra.c, ospfd.c: Move ospf_prefix_list_update() function
1359 to ospf_zebra.c from ospfd.c and add redistribution updates if
1360 route-map is used in redistribution.
1361 * ospf_main.c: Remove now useless call to ospf_init().
1362
paul0a589352004-05-08 11:48:26 +000013632004-05-08 Paul Jakma <paul@dishone.st>
1364
1365 * ospf_zebra.c: Sync with lib/zclient changes
1366
pauld3f0d622004-05-05 15:27:15 +000013672004-05-05 Paul Jakma <paul@dishone.st>
1368
paul5bd41892004-05-05 17:29:24 +00001369 * ospf_network.c: (ospf_sock_init) Check whether IP_HDRINCL is
1370 defined. Warn at compile and runtime. Use
1371 IPTOS_PREC_INTERNETCONTROL otherwise.
pauld3f0d622004-05-05 15:27:15 +00001372 * ospf_packet.c: (ospf_associate_packet_vl) cleanup, move
1373 some of the checks up to ospf_read, return either a
1374 virtual link oi, or NULL.
1375 (ospf_read) Cleanup, make it responsible for checks. Remove
1376 the nbr lookup - moved to ospf_neighbor. Adjust all nbr
1377 lookups to use new wrappers exported by ospf_neighbor.
1378 * ospf_neighbor.h: Add ospf_neigbour_get and ospf_nbr_lookup.
1379 * ospf_neighbor.c: (ospf_neigbour_get) Index ospf_interface
1380 neighbour table by router-id for virtual-link ospf_interfaces,
1381 not by peer_addr (which breaks for asymmetric vlinks)
1382 (ospf_nbr_lookup) add a wrapper for nbr lookups to deal with
1383 above.
paulcd59da62004-05-05 17:26:55 +00001384 * ospf_interface.c: (ospf_vl_set_params) Catch changes of interface
1385 address for either end of a virtual-link, and hence potential cost
1386 changes.
1387
hassoa0a39762004-04-23 08:51:10 +000013882004-04-22 Hasso Tepper <hasso@estpak.ee>
1389
1390 * ospf_zebra.c: Don't ignore reject/bh routes, it's the only way
1391 to "summarize" routes in ASBR at the moment.
1392
hasso8585d4e2004-04-20 17:25:12 +000013932004-04-20 Hasso Tepper <hasso@estpak.ee>
1394
1395 * ospfd.c: Unset NP flag if area is going to be normal or stub.
1396 Fixes UNH OSPF_NSSA.1.2a comment.
1397 * ospf_abr.c: Originate default into stub/nssa area even if
1398 summaries are disabled.
1399 * ospf_zebra.c: Don't attempt to redistribute 127.0.0.0/8.
1400
hassoc266ac72004-04-19 17:31:00 +000014012004-04-19 Hasso Tepper <hasso@estpak.ee>
1402
1403 * ospf_vty.c: Don't warn that export- and import-list can't be
1404 configured to backbone area if they are applied and are working
1405 fine.
1406
hasso128d31d2004-04-04 12:52:33 +000014072004-02-19 Sowmini Varadhan <sowmini.varadhan@sun.com>
1408
1409 * ospf_packet.c: Don't drop packets in Solaris x86.
1410 [quagga-dev 1005].
1411
hasso0d85b992004-03-18 19:18:33 +000014122004-03-18 Amir Guindehi <amir@datacore.ch>
1413
1414 * ospf_opaque.c: Attempt to correct the incorrect behavior of
1415 Quagga's ospfd in the special situation that a node's opaque
1416 capability has changed as "ON -> OFF -> ON". [quagga-dev 843].
1417
paul7f352b82004-02-19 19:37:47 +000014182004-02-19 Sowmini Varadhan <sowmini.varadhan@sun.com>
1419
1420 * ospf_abr.c: (ospf_abr_update_aggregate) UNH 3.12b,c, address range
1421 should be configured with the highest cost path within the range,
1422 not lowest.
1423
paul940b01a2004-02-17 20:07:30 +000014242004-02-17 Paul Jakma <paul@dishone.st>
1425
1426 * ospf_zebra.c: (ospf_interface_delete) Do not delete the interface
1427 params, nor the interface structure, if an interface delete
1428 message is received from zebra.
1429 * ospf_interface.c: (ospf_if_delete_hook) Delete the interface
1430 params and interface, ie that which was previously removed in
1431 (ospf_interface_delete) above.
1432
hasso2db3d052004-02-11 21:52:13 +000014332004-02-11 Hasso Tepper <hasso@estpak.ee>
1434 * ospf_interface.c, ospf_zebra.c: Don't attempt to read path->oi->ifp
1435 if oi doesn't exist any more.
1436
hassocb05eb22004-02-11 21:10:19 +000014372004-02-11 Vadim Suraev <vadim.suraev@terayon.com>
1438 * ospf_packet.c (ospf_ls_upd): Router should flush received network
1439 LSA if it was originated with older router-id ([zebra 14710] #6).
1440
14412003-12-08 Mattias Amnefelt <mattiasa@kth.se>
paul239aecc2003-12-08 10:34:54 +00001442
1443 * ospf_packet.c: (ospf_recv_packet) OpenBSD now leaves iph.ip_len
1444 network byte order.
1445
gdt8f40e892003-12-05 14:01:43 +000014462003-12-05 Greg Troxel <gdt@poblano.ir.bbn.com>
1447
1448 * ospfd.c (ospf_network_match_iface): Rewrite code for clarity
1449 while trying not to change semantics. Add ifdefed-out code to
1450 avoid matching ppp interfaces whose destination address does not
1451 also match the prefix under consideration, to help out people with
1452 problems due to as-yet-unfixed bugs with p2p interfaces coming and
1453 going.
1454
paul736d3442003-07-24 23:22:57 +000014552003-07-25 kamatchi soundaram <kamatchi@tdd.sj.nec.com>
1456
1457 * ospf_packet.c (ospf_ls_upd_send_queue_event): get next route
1458 node in body of the loop to avoid chance that route node
1459 is unlocked and deleted before the next iteration tries to
1460 get next route node.
1461
paul0a825c72003-05-24 13:48:16 +000014622003-05-24 Kenji Yabuuchi
1463
1464 * ospf_interface.c(ospf_if_lookup_recv_if): Use the most specific
1465 match for interface lookup.
1466
paul551a8972003-05-18 15:22:55 +000014672003-05-18 Hasso Tepper <hasso@estpak.ee>
paul445f1432003-05-16 19:00:31 +00001468
paul551a8972003-05-18 15:22:55 +00001469 * ospf_vty.c: Show NSSA LSA route info in "show ip ospf database"
1470 output
paul445f1432003-05-16 19:00:31 +00001471
pauld7480322003-05-16 17:31:51 +000014722003-05-16 Hasso Tepper <hasso@estpak.ee>
1473
1474 * ospf_lsa.c: Fix handling of NSSA
1475
paul551a8972003-05-18 15:22:55 +000014762003-04-23 Hasso Tepper <hasso@estpak.ee>
1477
1478 * ospf_vty.c: fix "router xxx" node commands in vtysh
1479
paul445f1432003-05-16 19:00:31 +000014802003-04-19 Hasso Tepper <hasso@estpak.ee>
1481
1482 * {ospf_abr,ospfd}.c: area id's DECIMAL -> ADDRESS
1483 * ospf_routemap.c: sync daemon's route-map commands to have same
1484 syntax.
1485
14862003-04-19 Sergey Vyshnevetskiy <serg@vostok.net>
1487
1488 * ospf_packet.c: Add missing param to zlog
1489 * ospf_flood.c: remove unused vars
1490
14912003-04-17 Denis Ovsienko <zebra@pilot.org.ua>
1492
1493 * ospf_interface.c: fix incorrect memset
1494
paul28a13842003-05-16 20:30:37 +000014952003-04-10 Amir Guindehi <amir@datacore.ch>
paul445f1432003-05-16 19:00:31 +00001496
1497 * ospf_lsa.[ch]: opaque LSA fix, use ospf_lookup.
1498
14992003-04-03 David Watson <dwatson@eecs.umich.edu>
1500
1501 * ospf_lsa.c: byte order fix
1502
paul07661cb2003-03-18 00:03:05 +000015032002-03-17 Amir Guindehi <amir@datacore.ch>
1504
1505 * ospf_apiserver.[ch]: Merge Ralph Keller's OSPFAPI support.
1506 * ospf_api.[ch]: Merge Ralph Keller's OSPFAPI support.
1507 * ospfclient: OSPFAPI demonstration client.
1508
15092003-01-23 Masahiko Endo <endo@suri.co.jp>
1510
1511 * ospf_ism.c: NSM event schedule bug fix.
1512
15132002-10-30 Greg Troxel <gdt@ir.bbn.com>
1514
1515 * ospf_packet.c (ospf_make_md5_digest): MD5 length fix.
1516
paul718e3742002-12-13 20:15:29 +000015172002-10-23 endo@suri.co.jp (Masahiko Endo)
1518
1519 * ospf_opaque.c: Update Opaque LSA patch.
1520
15212002-10-23 Ralph Keller <keller@tik.ee.ethz.ch>
1522
1523 * ospf_vty.c (show_ip_ospf_database): Fix CLI parse.
1524
15252002-10-23 Juris Kalnins <juris@mt.lv>
1526
1527 * ospf_interface.c (ospf_if_stream_unset): When write queue
1528 becomes empty stop write timer.
1529
15302002-10-10 Greg Troxel <gdt@ir.bbn.com>
1531
1532 * ospf_packet.c (ospf_check_md5_digest): Change >= to > to make it
1533 conform to RFC.
1534
15352002-07-07 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1536
1537 * zebra-0.93 released.
1538
15392002-06-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1540
1541 * ospf_spf.c (ospf_nexthop_calculation): Add NULL set to oi and
1542 check of l2. Reported by: Daniel Drown <dan-zebra@drown.org>
1543 (ospf_lsa_has_link): LSA Length calculation fix. Reported by:
1544 Paul Jakma <paulj@alphyra.ie>.
1545
1546 * ospfd.c (ospf_if_update): Fix nextnode reference bug. Reported
1547 by: juris@mt.lv.
1548
15492002-01-21 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1550
1551 * ospfd.c: Merge [zebra 11445] Masahiko ENDO's Opaque-LSA support.
1552
15532001-08-27 Kunihiro Ishiguro <kunihiro@zebra.org>
1554
1555 * ospf_interface.c (ospf_add_to_if): Use /32 address to register
1556 OSPF interface information.
1557 (ospf_delete_from_if): Likewise.
1558
1559 * ospf_zebra.c (ospf_interface_address_delete): Likewise.
1560
15612001-08-23 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1562
1563 * ospf_zebra.c (ospf_redistribute_unset): When redistribute type
1564 is OSPF, do not unset redistribute flag.
1565
15662001-08-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1567
1568 * zebra-0.92a released.
1569
15702001-08-15 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1571
1572 * zebra-0.92 released.
1573
15742001-08-12 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1575
1576 * ospfd.c (ospf_config_write): auto-cost reference-bandwidth
1577 configuration display.
1578
15792001-07-24 David Watson <dwatson@eecs.umich.edu>
1580
1581 * ospf_spf.c (ospf_spf_next): Modify ospf_vertex_add_parent to
1582 check for an existing link before connecting the parent and child.
1583 ospf_nexthop_calculation is also modified to check for duplicate
1584 entries when copying from the parent. Finally, ospf_spf_next
1585 removes duplicates when it merges two equal cost candidates.
1586
15872001-07-23 itojun@iijlab.net
1588
1589 * ospfd.c (show_ip_ospf_neighbor): Check ospf_top before use it
1590 [zebra 8549].
1591
15922001-07-23 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1593
1594 * ospf_packet.c (ospf_write): Remove defined(__OpenBSD__) to make
1595 it work on OpenBSD.
1596
15972001-06-26 Kunihiro Ishiguro <kunihiro@zebra.org>
1598
1599 * ospf_zebra.c (config_write_ospf_default_metric): Display
1600 default-metric configuration.
1601
16022001-06-18 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1603
1604 * ospf_ia.h (OSPF_EXAMINE_SUMMARIES_ALL): Remove old macros.
1605
16062001-05-28 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1607
1608 * ospf_snmp.c (ospfIfEntry): Fix interface lookup bug to avoid
1609 crush.
1610 (ospfIfMetricEntry): Likewise.
1611
16122001-03-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1613
1614 * ospf_packet.c (ospf_read): Fix typo. Reported by: "Jen B
1615 Lin'Kova" <jen@stack.net>.
1616
16172001-03-15 Gleb Natapov <gleb@nbase.co.il>
1618
1619 * ospf_interface.c (ip_ospf_network): Set interface parameter.
1620 (interface_config_write): Add check for OSPF_IFTYPE_LOOPBACK.
1621
1622 * ospf_zebra.c (ospf_interface_add): Set interface parameter.
1623
16242001-02-21 Kunihiro Ishiguro <kunihiro@zebra.org>
1625
1626 * ospf_packet.c (ospf_recv_packet): Solaris also need to add
1627 (iph.ip_hl << 2) to iph.ip_len.
1628
16292001-02-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1630
1631 * ospfd.h (OSPF_LS_REFRESH_TIME): Fix OSPF_LS_REFRESH_TIME value.
1632 Suggested by: David Watson <dwatson@eecs.umich.edu>.
1633
1634 * ospf_zebra.c (zebra_init): Remove zebra node.
1635
1636 * ospfd.c (ospf_area_range_set): Function name is changed from
1637 ospf_ara_range_cmd.
1638 (ospf_area_range_unset): New function which separated from DEFUN.
1639 New commands are added:
1640 "no area A.B.C.D range A.B.C.D/M advertise"
1641 "no area <0-4294967295> range A.B.C.D/M advertise"
1642 "no area A.B.C.D range A.B.C.D/M not-advertise"
1643 "no area <0-4294967295> range A.B.C.D/M not-advertise"
1644
1645 * ospf_lsa.c (ospf_lsa_more_recent): Fix previous change.
1646
16472001-02-08 Matthew Grant <grantma@anathoth.gen.nz>
1648
1649 * ospf_network.c (ospf_if_add_allspfrouters): Use
1650 setsockopt_multicast_ipv4.
1651 (ospf_if_drop_allspfrouters): Likewise.
1652
1653 * ospf_lsa.c (ospf_router_lsa_install): Add rt_recalc flag.
1654 (ospf_network_lsa_install): Likewise.
1655 (ospf_summary_lsa_install): Likewise.
1656 (ospf_summary_asbr_lsa_install): Likewise.
1657 (ospf_external_lsa_install): Likewise.
1658 (ospf_lsa_install): Call ospf_lsa_different to check this LSA is
1659 new one or not.
1660
16612001-02-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1662
1663 * ospf_zebra.c (ospf_interface_delete): Do not free interface
1664 structure when ospfd receive interface delete message to support
1665 pseudo interface.
1666
16672001-02-01 Dick Glasspool <dick@ipinfusion.com>
1668
1669 * ospfd.c (area_range_notadvertise): Change area range "suppress"
1670 command to "not-advertise".
1671
1672 * ospfd.h (OSPF_LS_REFRESH_TIME): Change OSPF_LS_REFRESH_TIME from
1673 1800 to 60.
1674
1675 * ospf_abr.c (ospf_abr_update_aggregate): When update_aggregate is
1676 updating the area-range, the lowest cost is now saved.
1677
1678 * ospf_lsa.c (ospf_lsa_more_recent): Routing to compare sequence
1679 numbers rather than creating overflow during calculation.
1680
16812001-02-01 Kunihiro Ishiguro <kunihiro@zebra.org>
1682
1683 * zebra-0.91 is released.
1684
16852001-01-31 Kunihiro Ishiguro <kunihiro@zebra.org>
1686
1687 * ospf_packet.c (ospf_db_desc_proc): Do not continue process when
1688 NSM_SeqNumberMismatch is scheduled.
1689 (ospf_ls_req): Free ls_upd when return from this function.
1690 (ospf_ls_upd_timer): When update list is empty do not call
1691 ospf_ls_upd_send(). Suggested by: endo@suri.co.jp (Masahiko
1692 Endo).
1693
16942001-01-26 Kunihiro Ishiguro <kunihiro@zebra.org>
1695
1696 * ospf_lsa.c (ospf_maxage_flood): Flood LSA when it reaches
1697 MaxAge. RFC2328 Section 14.
1698 (ospf_maxage_lsa_remover): Call above function during removing
1699 MaxAge LSA.
1700
17012001-01-26 Dick Glasspool <dick@ipinfusion.com>
1702
1703 * ospf_flood.c (ospf_flood_through_as): Function is updated for
1704 NSSA Translations now done at ospf_abr.c with no change in P-bit.
1705
1706 * ospf_lsa.c (ospf_get_nssa_ip): Get 1st IP connection for Forward
1707 Addr.
1708 (ospf_install_flood_nssa): Leave Type-7 LSA at Lock Count = 2.
1709
1710 * ospf_ase.c (ospf_ase_calculate_route): Add debug codes.
1711
1712 * ospf_abr.c (ospf_abr_translate_nssa): Recalculate LSA checksum.
1713
1714 * ospf_packet.h (OSPF_SEND_PACKET_LOOP): Added for test packet.
1715
1716 * ospf_dump.c (ospf_lsa_type_msg): Add OSPF_GROUP_MEMBER_LSA and
1717 OSPF_AS_NSSA_LSA.
1718
1719 * ospfd.c (data_injection): Function to inject LSA. This is
1720 debugging command.
1721
17222001-01-11 Kunihiro Ishiguro <kunihiro@zebra.org>
1723
1724 * ospf_route.c (ospf_route_match_same): Remove function.
1725 (ospf_route_match_same_new): Renamed to ospf_route_match_same.
1726
1727 * ospf_zebra.c (ospf_interface_address_delete): Add check for
1728 oi->address. Suggested by Matthew Grant
1729 <grantma@anathoth.gen.nz>.
1730 (ospf_zebra_add): Remove function.
1731 (ospf_zebra_add_multipath): Rename to ospf_zebra_add.
1732
1733 * ospf_interface.c: Remove HAVE_IF_PSEUDO part.
1734
1735 * ospf_zebra.c: Likewise.
1736
17372001-01-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1738
1739 * ospf_ase.c: Remove OLD_RIB part.
1740
1741 * ospf_route.c: Likewise.
1742
1743 * zebra-0.90 is released.
1744
1745 * ospf_packet.c (ospf_recv_packet): Use ip_len adjestment code to
1746 NetBSD.
1747
17482001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1749
1750 * ospf_route.c (ospf_route_delete): Use
1751 ospf_zebra_delete_multipath.
1752
17532001-01-09 Matthew Grant <grantma@anathoth.gen.nz>
1754
1755 * ospf_interface.c (ospf_if_cleanup): Function name is renamed
1756 from ospf_if_free(). Rewrite whole procudure to support primary
1757 address deletion.
1758
1759 * ospf_zebra.c (ospf_interface_address_delete): Add primary
1760 address deletion process.
1761
17622001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1763
1764 * ospf_packet.c (ospf_recv_packet): OpenBSD has same ip_len
1765 treatment like FreeBSD.
1766
17672001-01-09 endo@suri.co.jp (Masahiko Endo)
1768
1769 * ospf_packet.c (ospf_recv_packet): FreeBSD kernel network code
1770 strips IP header size from receiving IP Packet. So we adjust
1771 ip_len to whole IP packet size by adding IP header size.
1772
17732001-01-08 endo@suri.co.jp (Masahiko Endo)
1774
1775 * ospf_network.c (ospf_serv_sock): When socket() is failed return
1776 immediately.
1777 (ospf_serv_sock): Close socket when it is not used.
1778
1779 * ospf_packet.c (ospf_write): Set sin_len when HAVE_SIN_LEN is
1780 defined.
1781 (ospf_write): When bind is fined, close sock.
1782
17832001-01-07 Gleb Natapov <gleb@nbase.co.il>
1784
1785 * ospf_zebra.c (ospf_interface_state_up): Fixes coredump that
1786 appears when you try to configure bandwidth on the ppp interface
1787 that is not yet configured in ospfd.
1788
17892001-01-07 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
1790
1791 * ospf_route.c (show_ip_ospf_route_external): "show ip ospf route"
1792 will print nexthops for AS-external routes.
1793
1794 * ospf_ase.c (ospf_ase_route_match_same): New function to compare
1795 ASE route under multipath environment.
1796 (ospf_ase_compare_tables): Likewise.
1797
17982001-01-01 Kunihiro Ishiguro <kunihiro@zebra.org>
1799
1800 * ospfd.h (OSPF_VTYSH_PATH): Change "/tmp/ospfd" to "/tmp/.ospfd".
1801
18022000-12-28 Kunihiro Ishiguro <kunihiro@zebra.org>
1803
1804 * ospf_route.c (ospf_route_install): Install multipath information
1805 to zebra daemon.
1806
1807 * ospf_zebra.c (ospf_zebra_add_multipath): Function for passing
1808 multipath information to zebra daemon.
1809
18102000-12-25 Dick Glasspool <dick@ipinfusion.com>
1811
1812 * ospf_packet.c (ospf_write): Call ospf_packet_delete when sendto
1813 fail.
1814 (DISCARD_LSA): Add argument N for logging point of DISCARD_LSA is
1815 called.
1816
1817 * ospf_lsa.c (ospf_external_lsa_refresh): NSSA install_flood will
1818 leave Type-7 LSA at Lock Count = 2.
1819
1820 * ospf_flood.c (ospf_flood_through): Flood_though_as updated for
1821 NSSA no P-bit off during Area flooding, but P-bit is turned off
1822 for mulitple NSSA AS flooding.
1823
1824 * ospf_ase.c (ospf_ase_calculate_timer): Added calculations for
1825 Type-7 LSDB.
1826
1827 * ospf_abr.c (ospf_abr_translate_nssa): Removed one unlock call.
1828 (ospf_abr_announce_nssa_defaults): Corrected Debug from EVENT to
1829 NSSA.
1830
18312000-12-25 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
1832
1833 * ospf_zebra.c (ospf_zebra_read_ipv4): Checking the age of the
1834 found LSA and if the LSA is MAXAGE we should call refresh instead
1835 of originate.
1836
18372000-12-18 Dick Glasspool <dick@ipinfusion.com>
1838
1839 * ospf_abr.c: Removed redundant "...flood" in
1840 announce_network_to_area(). Repaired nssa Unlock by using
1841 discard.
1842
1843 * ospf_packet.c: Removed old NSSA translate during mk_ls_update.
1844
1845 * ospfd.c: Free up all data bases including NSSA.
1846
1847 * ospf_lsa.c: Now allow removal of XLATE LSA's Check in
1848 discard_callback. Added routine to get ip addr from within the
1849 ifp.
1850
1851 * ospf_flood.c: Now set Forward Address for outgoing Type-7.
1852
1853 * ospf_lsa.h: Added prototype for the below. struct in_addr
1854 ospf_get_ip_from_ifp (struct interface *ifp).
1855
18562000-12-14 Gleb Natapov <gleb@nbase.co.il>
1857
1858 * ospf_packet.c (ospf_recv_packet): New OSPF pakcet read method.
1859 Now maximum packet length may be 65535 bytes (maximum IP packet
1860 length).
1861
1862 * ospf_interface.c (ospf_if_stream_set): Don't make input buffer.
1863
1864 * ospfd.c (config_write_network_area): Remove unnecessary area
1865 lookup code.
1866
18672000-12-13 Kunihiro Ishiguro <kunihiro@zebra.org>
1868
1869 * ospf_packet.c (ospf_read): Accept packet bigger than MTU value.
1870
18712000-12-13 Gleb Natapov <gleb@nbase.co.il>
1872
1873 * ospfd.c (config_write_network_area): Fix bug in
1874 config_write_network_area function.
1875
18762000-12-12 Gleb Natapov <gleb@nbase.co.il>
1877
1878 * ospf_abr.c (ospf_abr_announce_network_to_area): Make Summary
1879 LSA's origination and refreshment as same as other type of LSA.
1880
1881 * ospf_lsa.c (ospf_summary_lsa_refresh): Return struct ospf_lsa *.
1882
1883 * ospf_lsa.c (ospf_summary_asbr_lsa_refresh): Likewise.
1884
18852000-12-08 Dick Glasspool <dick@ipinfusion.com>
1886
1887 The bulk of NSSA changes are contained herein; This version will
1888 require manual setting of "always" for NSSA Translator, and will
1889 not perform aggregation yet.
1890
1891 * ospf_dump.c: "debug ospf nssa" is added.
1892
1893 * ospf_dump.h: Likewise.
1894
1895 * ospf_packet.c (ospf_hello): Display router ID on Bad NSSA Hello.
1896
1897 * ospfd.c: Discard_LSA to stay away from LOCAL_XLT Process NSSA
1898 'never, candidate, always'. Change "suppress" to "not-advertise".
1899
1900 * ospfd.h: Add TranslatorRole to struct ospf_area. Add anyNSSA to
1901 struct ospf.
1902
1903 * ospf_ase.c (ospf_ase_calculate_route): External to stay away
1904 from LOCAL_XLT
1905
1906 * ospf_nsm.c (ospf_db_summary_add): External to stay away from
1907 LOCAL_XLT
1908
1909 * ospf_abr.c: Major logic added for abr_nssa_task(). If ABR, and
1910 NSSA translator, then do it. Approve the global list, and flush
1911 any unapproved.
1912
1913 * ospf_lsa.h: New LSA flag OSPF_LSA_LOCAL_XLT to indicate that the
1914 Type-5 resulted from a Local Type-7 translation; not used for
1915 flooding, but used for flushing.
1916
1917 * ospf_flood.c: New NSSA flooding.
1918
19192000-12-08 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
1920
1921 * ospfd.c (ospf_find_vl_data): New function for looking up virtual
1922 link data.
1923 (ospf_vl_set_security): Virtual link configuration with
1924 authentication.
1925 (ospf_vl_set_timers): Set timers for virtual link.
1926
1927 * New commands are added.
1928 "area A.B.C.D virtual-link A.B.C.D"
1929 "area A.B.C.D virtual-link A.B.C.D hello-interval <1-65535> retransmit-interval <3-65535> transmit-delay <1-65535> dead-interval <1-65535>"
1930 "area A.B.C.D virtual-link A.B.C.D hello-interval <1-65535> retransmit-interval <3-65535> transmit-delay <1-65535> dead-interval <1-65535> authentication-key AUTH_KEY"
1931 "area A.B.C.D virtual-link A.B.C.D authentication-key AUTH_KEY"
1932 "area A.B.C.D virtual-link A.B.C.D hello-interval <1-65535> retransmit-interval <3-65535> transmit-delay <1-65535> dead-interval <1-65535> message-digest-key <1-255> md5 KEY"
1933 "area A.B.C.D virtual-link A.B.C.D message-digest-key <1-255> md5 KEY"
1934
1935 * ospf_packet.c (ospf_check_md5_digest): Add neighbor's
1936 cryptographic sequence number treatment.
1937 (ospf_check_auth): OSPF input buffer is added to argument.
1938 (ospf_read): Save neighbor's cryptographic sequence number.
1939
1940 * ospf_nsm.c (nsm_change_status): Clear cryptographic sequence
1941 number when neighbor status is changed to NSM down.
1942
1943 * ospf_neighbor.c (ospf_nbr_new): Set zero to crypt_seqnum.
1944
1945 * ospf_neighbor.h (struct ospf_neighbor): Add cryptographic
1946 sequence number to neighbor structure.
1947
19482000-11-29 Kunihiro Ishiguro <kunihiro@zebra.org>
1949
1950 * ospf_snmp.c (ospfIfLookup): OSPF MIB updates.
1951 (ospfExtLsdbEntry): Add OspfExtLsdbTable treatment.
1952
19532000-11-28 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
1954
1955 * ospfd.c (ospf_interface_down): Clear a ls_upd_queue queue of the
1956 interface.
1957 (ospf_ls_upd_queue_empty): New function to empty ls update queue
1958 of the OSPF interface.
1959 (no_router_ospf): 'no router ospf' unregister redistribution
1960 requests from zebra.
1961
19622000-11-28 Kunihiro Ishiguro <kunihiro@zebra.org>
1963
1964 * ospf_ism.c (ism_change_status): Increment status change number.
1965
1966 * ospf_interface.h (struct ospf_interface): Add new member for
1967 status change statistics.
1968
1969 * Makefile.am: Update dependencies.
1970
1971 * ospf_zebra.c (ospf_interface_add): OSPF SNMP interface update.
1972 (ospf_interface_delete): OSPF SNMP interface delete.
1973
1974 * ospf_snmp.h: New file is added.
1975
19762000-11-23 Dick Glasspool <dick@ipinfusion.com>
1977
1978 * ospfd.h: Add new ospf_area structure member for
1979 NSSATranslatorRole and NSSATranslator state.
1980
1981 * ospfd.c: Provided for eventual commands to specify NSSA
1982 elections for "translator- ALWAYS/NEVER/CANDIDATE". Provided for
1983 decimal integer version of area-suppress.
1984
1985 * ospf_flood.c: Flood Type-7's only into NSSA (not AS).
1986
1987 * ospf_lsa.c: Undo some previous changes for NSSA. If NSSA
1988 translator, advertise Nt bit.
1989
1990 * ospf_route.c: 1st version of "sh ip os border-routers".
1991
19922000-11-23 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
1993
1994 * ospfd.c (area_vlink): Virtual link can not configured in stub
1995 area.
1996
19972000-11-23 Gleb Natapov <gleb@nbase.co.il>
1998
1999 * ospf_packet.c (ospf_db_desc): In states Loading and Full the
2000 slave must resend its last Database Description packet in response
2001 to duplicate Database Description packets received from the
2002 master. For this reason the slave must wait RouterDeadInterval
2003 seconds before freeing the last Database Description packet.
2004 Reception of a Database Description packet from the master after
2005 this interval will generate a SeqNumberMismatch neighbor
2006 event. RFC2328 Section 10.8
2007 (ospf_make_db_desc): DD Master flag treatment.
2008
2009 * ospf_nsm.c (nsm_twoway_received): Move DD related procedure to
2010 nsm_change_status().
2011 (nsm_bad_ls_req): Likewise.
2012 (nsm_adj_ok): Likewise.
2013 (nsm_seq_number_mismatch): Likewise.
2014 (nsm_oneway_received): Likewise.
2015
2016 * ospf_neighbor.h (struct ospf_neighbor): New structure member
2017 last_send_ts for timestemp when last Database Description packet
2018 was sent.
2019
2020 * ospf_nsm.c (ospf_db_desc_timer): Make it sure nbr->last_send is
2021 there. Call ospf_db_desc_resend() in any case.
2022
20232000-11-16 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
2024
2025 * ospf_lsa.c (lsa_link_broadcast_set): When there is no DR on
2026 network (suppose you have only one router with interface priority
2027 0). It's router LSA does not contain the link information about
2028 this network.
2029
2030 * ospf_nsm.c (nsm_timer_set): When you change a priority of
2031 interface from/to 0 ISM_NeighborChange event should be scheduled
2032 in order to elect new DR/BDR on the network.
2033
2034 * ospf_interface.c (ip_ospf_priority): Likewise.
2035
2036 * ospf_flood.c (ospf_ls_retransmit_add): When we add some LSA into
2037 retransmit list we need to check whether the present old LSA in
2038 retransmit list is not more recent than the new
2039 one.
2040
20412000-11-09 Dick Glasspool <dick@ipinfusion.com>
2042
2043 * ospf_packet.c: Allows for NSSA Type-7 LSA's throughout the NSSA
2044 area. Any that exit the NSSA area are translated to type-5 LSA's.
2045 The instantiated image is restored after translation.
2046 (ospf_ls_upd_send_list): Renamed to ospf_ls_upd_queu_send().
2047 (ospf_ls_upd_send): Old function which enclosed by #ifdef 0 is
2048 removed.
2049 (ospf_ls_ack_send): Likewise.
2050
2051 * ospf_flood.c: NSSA-LSA's without P-bit will be restricted to
2052 local area. Otherwise they are allowed out the area to be
2053 translated by ospf_packet.c.
2054
2055 * ospf_lsa.c: Undo some previous changes for NSSA.
2056
2057 * ospf_lsdb.h: New access for type 7.
2058
20592000-11-07 Kunihiro Ishiguro <kunihiro@zebra.org>
2060
2061 * ospf_route.c (ospf_path_exist): New function to check nexthop
2062 and interface are in current OSPF path or not.
2063 (ospf_route_copy_nexthops_from_vertex): Add nexthop to OSPF path
2064 when it is not there. Reported by Michael Rozhavsky
2065 <mrozhavsky@opticalaccess.com>
2066
20672000-11-06 Kunihiro Ishiguro <kunihiro@zebra.org>
2068
2069 * ospf_dump.c (config_write_debug): Add seventh string "detail" is
2070 added for flag is OSPF_DEBUG_SEND | OSPF_DEBUG_RECV |
2071 OSPF_DEBUG_DETAIL.
2072
20732000-11-06 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
2074
2075 * ospf_lsa.c (router_lsa_flags): ASBR can't exit in stub area.
2076
20772000-11-06 Kunihiro Ishiguro <kunihiro@zebra.org>
2078
2079 * ospf_lsa.c (ospf_router_lsa_originate): Reduce unconditional
2080 logging.
2081
20822000-11-06 Dick Glasspool <dick@ipinfusion.com>
2083
2084 * ospfd.h: Add ait_ntoa function prototype.
2085
2086 * ospfd.c (ait_ntoa): New function for displaying area ID and
2087 Stub/NSSA status.
2088 (show_ip_ospf_interface_sub): Use ait_ntoa.
2089 (show_ip_ospf_nbr_static_detail_sub): Likewise.
2090 (show_ip_ospf_neighbor_detail_sub): Likewise.
2091
2092 * ospf_route.c (ospf_intra_route_add): Set external routing type
2093 to ospf route.
2094 (ospf_intra_add_router): Likewise.
2095 (ospf_intra_add_transit): Likewise.
2096 (ospf_intra_add_stub): Likewise.
2097 (ospf_add_discard_route): Likewise.
2098 (show_ip_ospf_route_network): Use ait_ntoa.
2099 (show_ip_ospf_route_network): Likewise.
2100 (show_ip_ospf_route_router): Likewise.
2101
2102 * ospf_lsa.c (show_lsa_detail): Use ait_ntoa.
2103 (show_lsa_detail_adv_router): Likewise.
2104 (show_ip_ospf_database_summary): Likewise.
2105
2106 * ospf_route.h (struct route_standard): Add new member
2107 external_routing.
2108
2109 * ospf_ia.c (process_summary_lsa): Set external routing tyep to ospf
2110 route.
2111 (ospf_update_network_route): Likewise.
2112 (ospf_update_router_route): Likewise.
2113
21142000-11-04 Kunihiro Ishiguro <kunihiro@zebra.org>
2115
2116 * ospf_flood.c (ospf_process_self_originated_lsa): Enclose
2117 OSPF_AS_NSSA_LSA treatment with #ifdef HAVE_NSSA.
2118
21192000-11-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2120
2121 * Unconditional logging is enclosed with if (IS_DEBUG_OSPF_EVENT).
2122 Please specify "debug ospf event" for enable logging.
2123
2124 * ospf_ism.c: Do not extern debug flag varible. It is done by
2125 ospf_debug.h
2126 * ospf_asbr.c: Likewise.
2127 * ospf_lsa.c: Likewise.
2128 * ospf_nsm.c: Likewise.
2129 * ospf_zebra.c: Likewise.
2130
2131 * ospf_dump.c (debug_ospf_event): New command "debug ospf event"
2132 is added.
2133
2134 * ospfd.c (router_ospf): Change logging from vty_out() to
2135 zlog_info().
2136 (ospf_area_stub_cmd): Likewise.
2137
2138 * ospf_dump.h: Extern term_debug flags.
2139 (OSPF_DEBUG_EVENT): Add new flag.
2140 (IS_DEBUG_OSPF_EVENT): Add new macro.
2141
21422000-11-03 Dick Glasspool <dick@ipinfusion.com>
2143
2144 * ospf_flood.c (ospf_process_self_originated_lsa):
2145 OSPF_AS_NSSA_LSA is treated as same as OSPF_AS_EXTERNAL_LSA.
2146 (ospf_flood): Type-5's have no change. Type-7's can be received,
2147 and will Flood the AS as Type-5's They will also flood the local
2148 NSSA Area as Type-7's. The LSDB will be updated as Type-5's, and
2149 during re-fresh will be converted back to Type-7's (if within an
2150 NSSA).
2151 (ospf_flood_through): Incoming Type-7's were allowed here if our
2152 neighbor was an NSSA. So Flood our area with the Type-7 and also
2153 if we are an ABR, flood thru AS as Type-5.
2154
2155 * ospf_lsa.c (ospf_external_lsa_refresh): Flood NSSA both NSSA
2156 area and other area.
2157
2158 * ospf_packet.c (ospf_db_desc_proc): When AS External LSA is
2159 exists in DD packet, make it sure that this area is not stub.
2160 (ospf_ls_upd_list_lsa): When LSA type is NSSA then set lsa's area
2161 to NULL.
2162 (ospf_ls_upd): If the LSA is AS External LSA and the area is stub
2163 then discard the lsa. If the LSA is NSSA LSA and the area is not
2164 NSSA then discard the lsa.
2165
21662000-11-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2167
2168 * ospfd.c (ospf_interface_run): Fix bug of Hello packet's option
2169 is not properly set when interface comes up.
2170
21712000-11-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2172
2173 * ospfd.h (OSPF_OPTION_O): Add new hello header option.
2174
21752000-11-01 Dick Glasspool <dick@ipinfusion.com>
2176
2177 * ospf_lsa.h: Define OSPF_MAX_LSA to 8 when HAVE_NSSA is enabled.
2178 (OSPF_GROUP_MEMBER_LSA): Define OSPF_GROUP_MEMBER_LSA.
2179
2180 * ospf_lsa.c (show_database_desc): Add "Group Membership LSA"
2181 string.
2182
21832000-10-31 Dick Glasspool <dick@ipinfusion.com>
2184
2185 * ospf_lsa.h (OSPF_AS_NSSA_LSA): Define OSPF_AS_NSSA_LSA.
2186
2187 * ospf_lsa.c (show_ip_ospf_database): NSSA database display
2188 function is added. ALIASES which have "show ip ospf database
2189 nssa-external" is added.
2190 (show_ip_ospf_border_routers): New command "show ip ospf
2191 border-routers" is added.
2192
21932000-10-30 Dick Glasspool <dick@ipinfusion.com>
2194
2195 * ospfd.c (router_ospf): NSSA Enabled message is added for
2196 testing.
2197 (ospf_area_type_set): Are type set for NSSA area.
2198 (ospf_area_stub_cmd): Special translation of no_summary into NSSA
2199 and summary information. If NSSA is enabled pass the information
2200 to ospf_area_type_set().
2201 (area_nssa): New commands are added:
2202 "area A.B.C.D nssa"
2203 "area <0-4294967295> nssa"
2204 "area A.B.C.D nssa no-summary"
2205 "area <0-4294967295> nssa no-summary"
2206 (ospf_no_area_stub_cmd): Special translation of no_summary into
2207 NSSA and summary information. If external_routing is
2208 OSPF_AREA_NSSA unset area with ospf_area_type_set (area,
2209 OSPF_AREA_DEFAULT).
2210 (show_ip_ospf_area): Display NSSA status.
2211 (config_write_ospf_area): Show NSSA configuration.
2212
2213 * ospf_packet.c (ospf_hello): For NSSA support, ensure that NP is
2214 on and E is off.
2215
22162000-10-26 Gleb Natapov <gleb@nbase.co.il>
2217
2218 * ospf_lsa.c (ospf_network_lsa_body_set): The network-LSA lists
2219 those routers that are fully adjacent to the Designated Router;
2220 each fully adjacent router is identified by its OSPF Router ID.
2221 The Designated Router includes itself in this list. RFC2328,
2222 Section 12.4.2.
2223
22242000-10-23 Jochen Friedrich <jochen@scram.de>
2225
2226 * ospf_snmp.c: ospf_oid and ospfd_oid are used in smux_open after
2227 it is registered. So those variables must be static.
2228
22292000-10-18 K N Sridhar <sridhar@euler.ece.iisc.ernet.in>
2230
2231 * ospfd.c: Add area_default_cost_decimal_cmd and
2232 no_area_default_cost_decimal_cmd alias.
2233
22342000-10-05 Gleb Natapov <gleb@nbase.co.il>
2235
2236 * ospfd.c (ospf_network_new): Fix setting area format.
2237 (no_router_ospf): Check area existance when calling
2238 ospf_interface_down().
2239
2240 * ospf_flood.c (ospf_external_info_check): Fix bug of refreshing
2241 default route.
2242
22432000-10-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2244
2245 * zebra-0.89 is released.
2246
22472000-09-29 Kunihiro Ishiguro <kunihiro@zebra.org>
2248
2249 * ospf_snmp.c (ospfHostEntry): OSPF Host MIB is implemented.
2250
2251 * ospfd.c (ospf_nbr_static_cmp): OSPF neighbor is sorted by it's
2252 address.
2253
22542000-09-28 Michael Rozhavsky <mike@nbase.co.il>
2255
2256 * ospf_interface.c (ospf_if_free): Fix deleting self neighbor twice.
2257
22582000-09-27 Kunihiro Ishiguro <kunihiro@zebra.org>
2259
2260 * ospf_packet.c (ospf_read): Solaris on x86 has ip_len with host
2261 byte order.
2262
22632000-09-25 Toshiaki Takada <takada@zebra.org>
2264
2265 * ospfd.c (ospf_compatible_rfc1583), (no_ospf_compatible_rfc1583):
2266 Add CISCO compatible command.
2267
22682000-09-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2269
2270 * ospf_abr.c (ospf_area_range_lookup): New function is added for
2271 area range lookup in OSPF-MIB.
2272 (ospf_area_range_lookup_next): Likewise.
2273
22742000-09-22 Kunihiro Ishiguro <kunihiro@zebra.org>
2275
2276 * ospfd.c (no_router_ospf): Delete virtual link before deleting
2277 area structure.
2278
2279 * ospf_lsa.c (ospf_external_lsa_refresh_type): Check
2280 EXTERNAL_INFO(type).
2281
2282 * ospfd.c (no_router_ospf): Call ospf_vl_delete() instead of
2283 ospf_vl_data_free().
2284
2285 * ospf_interface.c (ospf_vl_shutdown): Execute ISM_InterfaceDown
2286 when ospf_vl_shutdown is called.
2287 (ospf_vl_delete): Call ospf_vl_shutdown() to delete virtual link
2288 interface's thread.
2289
22902000-09-21 Gleb Natapov <gleb@nbase.co.il>
2291
2292 * ospf_lsa.c: New implementation of OSPF refresh.
2293
22942000-09-20 Kunihiro Ishiguro <kunihiro@zebra.org>
2295
2296 * ospf_snmp.c (ospfLsdbLookup): Add LSDB MIB implementation.
2297
22982000-09-18 Kunihiro Ishiguro <kunihiro@zebra.org>
2299
2300 * ospf_snmp.c (ospfStubAreaEntry): Add OSPF stub area MIB.
2301
23022000-09-18 Gleb Natapov <gleb@nbase.co.il>
2303
2304 * ospf_route.h (route_standard): Change member from `struct area'
2305 to area_id.
2306
2307 * ospf_abr.c (ospf_abr_announce_network), (ospf_abr_should_announce),
2308 (ospf_abr_process_network_rt), (ospf_abr_announce_rtr),
2309 (ospf_abr_process_router_rt):
2310 * ospf_ase.c (ospf_find_asbr_route),
2311 (ospf_find_asbr_router_through_area),
2312 * ospf_ia.c (ospf_find_abr_route), (ospf_ia_router_route),
2313 (process_summary_lsa), (ospf_update_network_route),
2314 (ospf_update_router_route):
2315 * ospf_route.c (ospf_intra_route_add), (ospf_intra_add_router),
2316 (ospf_intra_add_transit), (ospf_intra_add_stub),
2317 (ospf_route_table_dump), (show_ip_ospf_route_network),
2318 (show_ip_ospf_route_router), (ospf_asbr_route_cmp),
2319 (ospf_prune_unreachable_routers):
2320 * ospf_spf.c (ospf_rtrs_print):
2321 * ospfd.c (ospf_rtrs_free): Fix the struct change above.
2322
23232000-09-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2324
2325 * ospf_network.c (ospf_serv_sock_init): Enclose SO_BINDTODEVICE
2326 with ifdef.
2327
23282000-09-13 Gleb Natapov <gleb@nbase.co.il>
2329
2330 * ospf_ism.c (ospf_elect_dr), (ospf_elect_bdr): Fix DR election.
2331
2332 * ospf_network.c (ospf_serv_sock_init): Add socket option
2333 SO_BINDTODEVICE on read socket.
2334
2335 * ospf_packet.c (ospf_hello): Ignore Hello packet if E-bit does
2336 not match.
2337
2338 * ospfd.c (ospf_area_check_free), (ospf_area_get),
2339 (ospf_area_add_if): New function added.
2340
23412000-09-13 Kunihiro Ishiguro <kunihiro@zebra.org>
2342
2343 * ospf_route.c (ospf_intra_add_router): Update ABR and ASBR router
2344 count.
2345
2346 * ospf_spf.c (ospf_spf_init): Rest ABR and ASBR router count
2347 starting SPF calculation.
2348
2349 * ospfd.h (struct ospf_area): Add ABR and ASBR router count.
2350
23512000-09-12 Kunihiro Ishiguro <kunihiro@zebra.org>
2352
2353 * ospfd.c (ospf_area_id_cmp): New area structure is sorted by area
2354 ID.
2355
2356 * ospf_lsa.c (ospf_router_lsa_originate): For OSPF MIB update
2357 lsa_originate_count.
2358 (ospf_network_lsa_originate): Likewise.
2359 (ospf_summary_lsa_originate): Likewise.
2360 (ospf_summary_asbr_lsa_originate): Likewise.
2361 (ospf_external_lsa_originate): Likewise.
2362
23632000-09-11 Kunihiro Ishiguro <kunihiro@zebra.org>
2364
2365 * ospf_snmp.c (ospf_variables): ospfRouterID's type RouterID
2366 syntax is IpAddress.
2367 (ospf_admin_stat): New function for OSPF administrative status
2368 check.
2369
23702000-09-10 Jochen Friedrich <jochen@scram.de>
2371
2372 * ospf_snmp.c: Implement OSPF MIB skeleton.
2373
23742000-09-08 Kunihiro Ishiguro <kunihiro@zebra.org>
2375
2376 * ospf_snmp.c: New file is added.
2377
23782000-09-07 David Lipovkov <davidl@nbase.co.il>
2379
2380 * ospf_zebra.c (ospf_interface_delete): Add pseudo interface
2381 treatment.
2382
2383 * ospf_interface.c (interface_config_write): Likewise.
2384
23852000-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2386
2387 * zebra-0.88 is released.
2388
23892000-08-17 Michael Rozhavsky <mike@nbase.co.il>
2390
2391 * ospfd.c (ospf_area_free): Remove virtual link configuration only
2392 when Area is removed.
2393
23942000-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2395
2396 * ospfd.c (network_area): Revert check for EXTERNAL_INFO
2397 (ZEBRA_ROUTE_CONNECT).
2398 (no_network_area): Likewise.
2399
24002000-08-16 Kunihiro Ishiguro <kunihiro@zebra.org>
2401
2402 * ospfd.h (struct ospf): Add distance_table and
2403 distance_{all,intra,inter,external}.
2404
2405 * ospf_zebra.c: Add OSPF distance related functions.
2406
24072000-08-15 Gleb Natapov <gleb@nbase.co.il>
2408
2409 * ospf_asbr.c (ospf_external_info_find_lsa): New function added.
2410
2411 * ospf_lsa.c (ospf_default_external_info),
2412 (ospf_default_originate_timer), (ospf_external_lsa_refresh_default):
2413 New function added.
2414
2415 * ospf_zebra.c
2416 (ospf_default_information_originate_metric_type_routemap),
2417 (ospf_default_information_originate_always_metric_type_routemap):
2418 Change name and add route-map function.
2419 (ospf_default_information_originate_metric_routemap),
2420 (ospf_default_information_originate_routemap),
2421 (ospf_default_information_originate_type_metric_routemap):
2422 New DEFUN added.
2423
24242000-08-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2425
2426 * ospf_zebra.c (zebra_interface_if_set_value): Change ifindex
2427 restore size from two octet to four.
2428
24292000-08-14 Michael Rozhavsky <mike@nbase.co.il>
2430
2431 * ospf_ase.c (ospf_ase_incremental_update): Implement incremental
2432 AS-external-LSA in 16.6 of RFC2328.
2433
24342000-08-14 Matthew Grant <grantma@anathoth.gen.nz>
2435
2436 * ospf_interface.c (ospf_if_get_output_cost): Change cost
2437 calculation algorithm.
2438
2439 * ospf_packet (ospf_ls_upd): Fix problem of LSA retransmitting.
2440
24412000-08-11 Michael Rozhavsky <mike@nbase.co.il>
2442
2443 * ospf_lsa.c (ospf_maxage_lsa_remover): Fix maxage remover for
2444 AS-external-LSAs.
2445
24462000-08-10 Toshiaki Takada <takada@zebra.org>
2447
2448 * ospfd.c (auto_cost_reference_bandwidth): New DEFUN added.
2449 `auto-cost reference-bandwidth' OSPF router command added.
2450
24512000-08-08 Gleb Natapov <gleb@nbase.co.il>
2452
2453 * ospf_routemap.c (ospf_route_map_update): New function added.
2454 Add route-map event hook.
2455
24562000-08-08 Toshiaki Takada <takada@zebra.org>
2457
2458 * ospf_zebra.c (ospf_distribute_check_connected): If redistribute
2459 prefix is connected route on OSPF enabled interface, suppress to
2460 announce it.
2461
24622000-08-08 Matthew Grant <grantma@anathoth.gen.nz>
2463
2464 * ospf_interface.c (ospf_if_get_output_cost):
2465 New function added. Handle bandwidth parameter for cost
2466 calculation.
2467
24682000-08-08 Michael Rozhavsky <mike@nbase.co.il>
2469
2470 * ospf_interface.c (interface_config_write): Show interface
2471 configuration regardless interface is down.
2472
2473 * ospf_ase.c (ospf_ase_caocluate_route): Whole rewritten external
2474 route calculate function.
2475
24762000-08-08 Gleb Natapov <gleb@nbase.co.il>
2477
2478 * ospf_routemap.c: New file added.
2479
2480 * ospf_asbr.c (ospf_reset_route_map_set_values),
2481 (ospf_route_map_set_compare): New function added.
2482
2483 * ospf_lsa.c (ospf_external_lsa_body_set): Set routemap metric
2484 with AS-external-LSA.
2485
24862000-08-05 Kunihiro Ishiguro <kunihiro@zebra.org>
2487
2488 * ospf_ase.c (ospf_ase_calculate_route_add): Pass new->cost to
2489 ospf_zebra_add as metric.
2490 (ospf_ase_calculate_route_add): Likewise.
2491
2492 * ospf_route.c (ospf_route_install): Pass or->cost to
2493 ospf_zebra_add as metric.
2494
2495 * ospf_zebra.c (ospf_zebra_add): Add metric arguemnt.
2496 (ospf_zebra_delete): Likewise.
2497
24982000-08-03 Matthew Grant <grantma@anathoth.gen.nz>
2499
2500 * ospf_flood.c (ospf_flood_delayed_lsa_ack): New function added.
2501 Dispatch delayed-ACK with flooding AS-external-LSA across virtual
2502 link.
2503
25042000-07-31 Matthew Grant <grantma@anathoth.gen.nz>
2505
2506 * ospfd.c (show_ip_ospf_area): Fix lack of VTY_NEWLINE when
2507 `show ip ospf'.
2508
2509 * ospf_interface.c (ospf_if_free): Fix bug of crash with
2510 Point-to-Point interface.
2511
25122000-07-27 Michael Rozhavsky <mike@nbase.co.il>
2513
2514 * ospf_flood.c (ospf_process_self_originated_lsa):
2515 Make sure to clear LSA->param (redistributed external information)
2516 before refreshment.
2517
25182000-07-27 Gleb Natapov <gleb@nbase.co.il>
2519
2520 * ospfd.c (refresh_group_limit), (refresh_per_slice),
2521 (refresh_age_diff): New defun added. Refresher related parameter
2522 can be configurable.
2523
25242000-07-27 Akihiro Mizutani <mizutani@dml.com>
2525
2526 * ospf_interface.c (interface_config_write): Print `description'
2527 config directive to work.
2528
25292000-07-24 Akihiro Mizutani <mizutani@dml.com>
2530
2531 * ospf_interface.c (ospf_if_init): Use install_default for
2532 INTERFACE_NODE.
2533
25342000-07-24 Gleb Natapov <gleb@nbase.co.il>
2535
2536 * ospf_packet.c (ospf_ls_upd_send_list), (ospf_ls_upd_send_event),
2537 (ospf_ls_ack_send_list), (ospf_ls_ack_send_event): New function added.
2538 This make sending always as many LS update/Ack combined in one ospf
2539 packet.
2540
25412000-07-24 Gleb Natapov <gleb@nbase.co.il>
2542
2543 * ospf_packet.c (ospf_ls_upd_list_lsa): Set NULL to lsa->area if
2544 LSA is AS-external-LSA.
2545
2546 * ospf_nsm.c (nsm_reset_nbr): Do not cancel Inactivity timer.
2547
25482000-07-21 Toshiaki Takada <takada@zebra.org>
2549
2550 * ospf_zebra.c (ospf_default_originate_timer): Set timer for
2551 `default-information originate'. Fix some default originate
2552 related functions.
2553
25542000-07-12 Toshiaki Takada <takada@zebra.org>
2555
2556 * ospf_lsa.c (stream_put_ospf_metric): New function added.
2557
25582000-07-12 Toshiaki Takada <takada@zebra.org>
2559
2560 * ospf_lsa.c (show_ip_ospf_database_router),
2561 (show_ip_ospf_database_network), (show_ip_ospf_database_summary),
2562 (show_ip_ospf_database_summary_asbr), (show_ip_ospf_database_externel),
2563 (show_router_lsa), (show_any_lsa), (show_router_lsa_self),
2564 (show_any_lsa_self): Functions removed.
2565
2566 (show_lsa_prefix_set), (show_lsa_detail_proc), (show_lsa_detail),
2567 (show_lsa_detail_adv_router_proc), (show_lsa_detail_adv_router):
2568 New functions added. Replace above functions.
2569
2570 (show_ip_ospf_database_all), (show_ip_ospf_database_self_originated):
2571 Functions removed.
2572 (show_ip_ospf_database_summary): New functions added. Replace
2573 above functions.
2574
2575 (show_ip_ospf_database_cmd): DEFUN rearranged.
2576 (show_ip_ospf_database_type_id_cmd),
2577 (show_ip_ospf_database_type_id_adv_router_cmd),
2578 (show_ip_ospf_database_type_is_self_cmd): New ALIASes added.
2579 (show_ip_ospf_database_type_adv_rotuer_cmd): New DEFUN added.
2580 (show_ip_ospf_database_type_self_cmd): New ALIAS added.
2581
25822000-07-11 Toshiaki Takada <takada@zebra.org>
2583
2584 * ospf_asbr.c (ospf_external_info_new),
2585 (ospf_external_info_free): New functions added.
2586
2587 * ospf_lsa.h (ospf_lsa): Add new member `void *param' to set
2588 origination parameter for external-LSA.
2589 Remove member `redistribute'.
2590
2591 * ospf_zebra.c (ospf_redistirbute_set): When `redistribute'
2592 command executed, metric and metric-type values are overridden.
2593 If one of those is changed refresh AS-external-LSAs for appropriate
2594 type.
2595
25962000-07-11 Michael Rozhavsky <mike@nbase.co.il>
2597
2598 * ospf_lsa.c (ospf_summary_lsa_refresh),
2599 (ospf_summary_asbr_lsa_refresh): Make sure to refresh summary-LSAs.
2600
2601 * ospf_abr.c (set_metric): New function added.
2602
26032000-07-07 Toshiaki Takada <takada@zebra.org>
2604
2605 * ospf_zebra.c (ospf_default_information_originate_metric_type),
2606 (ospf_default_information_originate_type_metric): New defun added.
2607 Metic and Metric type can be set to default route.
2608 (ospf_default_information_originate_always_metric_type):
2609 (ospf_default_information_originate_always_type_metric):
2610 New defun added. Metric and Metric type can be set to default
2611 always route.
2612
2613 * ospf_zebra.c (ospf_default_metric), (no_ospf_default_metric):
2614 New defun added.
2615
26162000-07-06 Gleb Natapov <gleb@nbase.co.il>
2617
2618 * ospf_flood.c (ospf_flood_through_area): Fix bug of considering
2619 on the same interface the LSA was received from.
2620
26212000-07-06 Michael Rozhavsky <mike@nbase.co.il>
2622
2623 * ospfd.c (ospf_config_write): Fix bug of printing `area stub'
2624 command with `write mem'.
2625
2626 * ospfd.c (no_router_ospf): Remove installed routes from zebra.
2627
2628 * ospf_zebra.c (ospf_interface_delete): Fix function to handle
2629 zebra interface delete event.
2630
26312000-07-06 Toshiaki Takada <takada@zebra.org>
2632
2633 * ospf_zebra.c (ospf_default_information_originate),
2634 (ospf_default_information_originate_always): New DEFUN added.
2635
26362000-07-05 Michael Rozhavsky <mike@nbase.co.il>
2637
2638 * ospf_route.c (ospf_terminate): Make sure to remove external route
2639 when SIGINT received.
2640
26412000-07-03 Gleb Natapov <gleb@nbase.co.il>
2642
2643 * ospf_flood.c, ospf_ism.c, ospf_lsa,c, ospfd.c: Make sure to free
2644 many structure with `no router ospf'.
2645
26462000-06-30 Gleb Natapov <gleb@nbase.co.il>
2647
2648 * ospf_neighbor.c (ospf_nbr_new),
2649 ospf_nsm.c (nsm_timer_set): Start LS update timer only
2650 when neighbor enters Exchange state.
2651
26522000-06-29 Gleb Natapov <gleb@nbase.co.il>
2653
2654 * ospf_nsm.c (nsm_timer_set), (nsm_exchange_done),
2655 ospf_packet.c (ospf_db_desc_proc):
2656 Do not cancel DD retransmit timer when Master.
2657
26582000-06-29 Gleb Natapov <gleb@nbase.co.il>
2659
2660 * ospf_abr.c (ospf_abr_announce_network_to_area),
2661 (ospf_abr_announce_rtr_to_area)
2662 ospf_ase.c (ospf_ase_rtrs_register_lsa),
2663 ospf_flood.c (ospf_process_self_originated_lsa),
2664 (ospf_flood_through_area), (ospf_ls_request_delete),
2665 ospf_interface.c (ospf_if_free),
2666 ospf_ism.c (ism_change_status),
2667 ospf_lsa.c (ospf_router_lsa_update_timer),
2668 (ospf_router_lsa_install), (ospf_network_lsa_install),
2669 (ospf_lsa_maxage_delete), (ospf_lsa_action),
2670 (ospf_schedule_lsa_flood_area),
2671 ospf_nsm.c (nsm_change_status),
2672 ospf_packet.c (ospf_make_ls_req_func), (ospf_make_ls_ack):
2673 Use ospf_lsa_{lock,unlock} for all looking-up of LSA.
2674
2675 * ospf_flood.c (ospf_ls_request_free): Function deleted.
2676
2677 * ospf_lsa.c (ospf_discard_from_db): New function added.
2678
26792000-06-26 Toshiaki Takada <takada@zebra.org>
2680
2681 * ospfd.h (ospf): struct member `external_lsa' name changed to
2682 `lsdb'.
2683
26842000-06-26 Toshiaki Takada <takada@zebra.org>
2685
2686 * ospf_lsa.c (ospf_lsa_install), (ospf_router_lsa_install),
2687 (ospf_network_lsa_install), (ospf_summary_lsa_install),
2688 (ospf_summary_asbr_lsa_install), (ospf_external_lsa_install):
2689 Functions re-arranged.
2690
2691 * ospf_lsa.c (IS_LSA_MAXAGE), (IS_LSA_SELF): Macro added.
2692
26932000-06-20 Michael Rozhavsky <mike@nbase.co.il>
2694
2695 * ospf_packet.c (ospf_ls_req), (ospf_ls_upd), (ospf_ls_ack): Add
2696 verification of LS type.
2697
26982000-06-20 Gleb Natapov <gleb@nbase.co.il>
2699
2700 * ospf_ase.c (ospf_ase_calculate_timer): Add more sanity check
2701 whether rn->info is NULL.
2702
27032000-06-20 Toshiaki Takada <takada@zebra.org>
2704
2705 * ospfd.c (show_ip_ospf_interface_sub): Show Router-ID of both
2706 DR and Backup correctly with `show ip ospf interface' command.
2707
27082000-06-20 Toshiaki Takada <takada@zebra.org>
2709
2710 * ospf_lsa.c (ospf_lsa_lock), (ospf_lsa_unlock),
2711 (ospf_lsa_discard): These functions are used for avoiding
2712 unexpected reference to freed LSAs.
2713
27142000-06-13 Kunihiro Ishiguro <kunihiro@zebra.org>
2715
2716 * ospf_packet.c (ospf_ls_upd): Initialize lsa by NULL to avoid
2717 warning.
2718
27192000-06-12 Kunihiro Ishiguro <kunihiro@zebra.org>
2720
2721 * ospf_ase.h (ospf_ase_rtrs_register_lsa): Add prototype.
2722
27232000-06-12 Toshiaki Takada <takada@zebra.org>
2724
2725 * ospf_lsa.c (ospf_external_lsa_install): Make sure to register
2726 LSA to rtrs_external when replacing AS-external-LSAs in LSDB.
2727 Fix core dump.
2728
27292000-06-10 Toshiaki Takada <takada@zebra.org>
2730
2731 * ospf_lsdb.c (id_to_prefix), (ospf_lsdb_hash_key),
2732 (ospf_lsdb_hash_cmp), (ospf_lsdb_new), (ospf_lsdb_iterator),
2733 (lsdb_free), (ospf_lsdb_free), (ospf_lsdb_add), (ospf_lsdb_delete),
2734 (find_lsa), (ospf_lsdb_lookup), (find_by_id),
2735 (ospf_lsdb_lookup_by_id), (ospf_lsdb_lookup_by_header): Functinos
2736 removed for migration to new_lsdb.
2737
2738 * ospf_lsa.c (ospf_summary_lsa_install),
2739 (ospf_summary_asbr_lsa_install), (ospf_maxage_lsa_remover),
2740 (ospf_lsa_maxage_walker), (ospf_lsa_lookup),
2741 (ospf_lsa_lookup_by_id): Use new_lsdb instead of ospf_lsdb.
2742 (count_lsa), (ospf_lsa_count_table), (ospf_lsa_count),
2743 (ospf_get_free_id_for_prefix): Funcitions removed.
2744
27452000-06-09 Gleb Natapov <gleb@nbase.co.il>
2746
2747 * ospf_ism.c (ism_interface_down): Prevent some unneeded DR changes.
2748
2749 * ospf_packet.c (ospf_db_desc_proc): Fix memory leak.
2750 (ospf_hello): Always copy router-ID when hello is received.
2751
27522000-06-08 Gleb Natapov <gleb@nbase.co.il>
2753
2754 * ospf_lsa.h (struct ospf_lsa): Add member of pointer to struct
2755 ospf_area.
2756
27572000-06-08 Michael Rozhavsky <mike@nbase.co.il>
2758
2759 * ospf_ase.c (ospf_asbr_route_same): New function added.
2760 This function makes sure external route calculation more
2761 precisely.
2762
27632000-06-07 Michael Rozhavsky <mike@nbase.co.il>
2764
2765 * ospf_ism.c (ism_change_status): Use ospf_lsa_flush_area for
2766 network-LSA deletion instead of using ospf_lsdb_delete.
2767 Also cancel network-LSA origination timer.
2768
27692000-06-07 Levi Harper <lharper@kennedytech.com>
2770
2771 * ospf_interface.c (ospf_if_down): Close read fd when an interface
2772 goes down.
2773
27742000-06-05 Kunihiro Ishiguro <kunihiro@zebra.org>
2775
2776 * ospf_asbr.c (ospf_external_info_lookup): Add explicit brace for
2777 avoid ambiguous else.
2778
2779 * ospf_flood.c (ospf_external_info_check): Likewise.
2780
27812000-06-05 Toshiaki Takada <takada@zebra.org>
2782
2783 * ospf_nsm.c (nsm_adj_ok): Fix bug of DR election.
2784
27852000-06-04 Toshiaki Takada <takada@zebra.org>
2786
2787 * ospf_zebra.c (ospf_default_information_originate),
2788 (no_ospf_default_information_originate): New DEFUN added.
2789
27902000-06-03 Toshiaki Takada <takada@zebra.org>
2791
2792 * ospf_lsa.h, ospf_asbr.h (external_info): Struct moved from
2793 ospf_lsa.h to ospf_asbr.h.
2794
2795 * ospf_lsa.c, ospf_asbr.c (ospf_external_info_add),
2796 (ospf_external_info_delete): Function moved from ospf_lsa.c
2797 to ospf_asbr.c.
2798
27992000-06-03 Toshiaki Takada <takada@zebra.org>
2800
2801 * ospf_flood.c (ospf_external_info_check): New function added.
2802 (ospf_process_self_orignated_lsa): Make sure to flush
2803 self-originated AS-external-LSA, when router reboot and no longer
2804 originate those AS-external-LSA.
2805
28062000-06-02 Toshiaki Takada <takada@zebra.org>
2807
2808 * ospf_network.c (ospf_serv_sock): Remove SO_DONTROUTE
2809 socket option.
2810
2811 * ospf_packet.c (ospf_write): Set MSG_DONTROUTE flag for
2812 unicast destination packets.
2813
28142000-06-02 Toshiaki Takada <takada@zebra.org>
2815
2816 * ospf_lsdb.c (new_lsdb_delete): Delete entry from LSDB only when
2817 specified LSA matches.
2818
28192000-06-02 Gleb Natapov <gleb@nbase.co.il>
2820
2821 * ospf_network.c (ospf_serv_sock): Set SO_DONTROUTE
2822 socket option.
2823
28242000-06-01 Akihiro Mizutani <mizutani@dml.com>
2825
2826 * ospf_dump.c: Replace string `Debugging functions\n' with DEBUG_STR.
2827 Replace string `OSPF information\n' with OSPF_STR.
2828
28292000-06-01 Toshiaki Takada <takada@zebra.org>
2830
2831 * ospf_lsdb.[ch]: Use new_lsdb struct for network-LSA instead of
2832 ospf_lsdb.
2833
28342000-06-01 Toshiaki Takada <takada@zebra.org>
2835
2836 * ospf_dump.c (config_debug_ospf_packet), (config_debug_ospf_event),
2837 (config_debug_ospf_ism), (config_debug_ospf_nsm),
2838 (config_debug_ospf_lsa), (config_debug_ospf_zebra),
2839 (term_debug_ospf_packet), (term_debug_ospf_event),
2840 (term_debug_ospf_ism), (term_debug_ospf_nsm),
2841 (term_debug_ospf_lsa), (term_debug_ospf_zebra): Repalce debug_ospf_*
2842 variable to use for debug option flags.
2843
2844 (debug_ospf_packet), (debug_ospf_ism), (debug_ospf_nsm),
2845 (debug_ospf_lsa), (debug_ospf_zebra): Set {config,term}_debug_*
2846 flags when vty->node is CONFIG_NODE, otherwise set only term_debug_*
2847 flags.
2848
2849 * ospf_dump.h (CONF_DEBUG_PACKET_ON), (CONF_DEBUG_PACKET_OFF),
2850 (TERM_DEBUG_PACKET_ON), (TERM_DEBUG_PACKET_OFF),
2851 (CONF_DEBUG_ON), (CONF_DEBUG_OFF), (IS_CONF_DEBUG_OSPF_PACKET),
2852 (IS_CONF_DEBUG_OSPF): New Macro added.
2853
28542000-05-31 Toshiaki Takada <takada@zebra.org>
2855
2856 * ospfd.c (clear_ip_ospf_neighbor): New DEFUN added.
2857 Currently this command is used for only debugging.
2858
2859 * ospf_nsm.c (nsm_change_status): Make sure thread cancellation
2860 for network-LSA when DR has no full neighbors.
2861
2862 * ospf_nsm.c (ospf_db_summary_clear): New function added.
2863
28642000-05-30 Toshiaki Takada <takada@zebra.org>
2865
2866 * ospf_lsdb.c (new_lsdb_insert): LSAs are always freed by
2867 maxage_lsa_remover when LSA is replaced.
2868
28692000-05-25 Gleb Natapov <gleb@nbase.co.il>
2870
2871 * ospf_flood.c (ospf_ls_retransmit_delete_nbr_all): Add argument
2872 `struct ospf_area' to remove LSA from Link State retransmission list
2873 of neighbor from only one Area.
2874
28752000-05-24 Michael Rozhavsky <mike@nbase.co.il>
2876
2877 * ospf_lsdb.c (ospf_lsdb_add): Preserve flags field when
2878 overriting old LSA with new LSA.
2879
28802000-05-24 Gleb Natapov <gleb@nbase.co.il>
2881
2882 * ospf_lsa.c (ospf_router_lsa_body_set): Fix bug of router-LSA
2883 size calculation.
2884
28852000-05-22 Michael Rozhavsky <mike@nbase.co.il>
2886
2887 * ospf_route.c (ospf_intra_add_stub):
2888 * ospf_spf.h (struct vertex): Use u_int32_t for distance (cost)
2889 value instead of u_int16_t.
2890
28912000-05-22 Axel Gerlach <agerlach@datus.datus.com>
2892
2893 * ospf_ia.c (ospf_ia_network_route): Fix bug of Inter-area route
2894 equal cost path calculation.
2895
28962000-05-21 Toshiaki Takada <takada@zebra.org>
2897
2898 * ospf_ase.c (ospf_ase_calculate_route_delete): New function added.
2899 Make sure, when rotuer route is deleted, related external routes
2900 are also deleted.
2901
29022000-05-20 Toshiaki Takada <takada@zebra.org>
2903
2904 * ospfd.c (ospf_interface_down): Make sure interface flag is disable
2905 and set fd to -1.
2906
29072000-05-16 Toshiaki Takada <takada@zebra.org>
2908
2909 * ospf_asbr.c (ospf_asbr_should_announce), (ospf_asbr_route_remove):
2910 Functions removed.
2911
2912 * ospfd.h (EXTERNAL_INFO): Macro added.
2913 Substitute `ospf_top->external_info[type]' with it.
2914
29152000-05-16 Toshiaki Takada <takada@zebra.org>
2916
2917 * ospf_lsa.c (ospf_rtrs_external_remove): New function added.
2918
29192000-05-14 Gleb Natapov <gleb@nbase.co.il>
2920
2921 * ospf_flood.c (ospf_ls_retransmit_delete_nbr_all)
2922 * ospf_lsdb.c (new_lsdb_insert)
2923 * ospf_packet.c (ospf_ls_ack): Fix database synchonization problem.
2924
29252000-05-14 Gleb Natapov <gleb@nbase.co.il>
2926
2927 * ospf_lsa.h (tv_adjust), (tv_ceil), (tv_floor), (int2tv),
2928 (tv_add), (tv_sub), (tv_cmp): Prototype definition added.
2929
2930 * ospf_nsm.h (ospf_db_summary_delete_all): Prototype definition added.
2931
29322000-05-13 Toshiaki Takada <takada@zebra.org>
2933
2934 * ospf_lsa.[ch] (ospf_lsa): struct timestamp type is changed from
2935 time_t to struct timeval.
2936 (tv_adjust), (tv_ceil), (tv_floor), (int2tv), (tv_add),
2937 (tv_sub), (tv_cmp): timeval utillity functions added.
2938
29392000-05-12 Toshiaki Takada <takada@zebra.org>
2940
2941 * ospf_lsa.[ch] (ospf_schedule_update_router_lsas): Delete function.
2942 Change to use macro OSPF_LSA_UPDATE_TIMER instead of using
2943 this function.
2944 router-LSA refresh timer related stuff is re-organized.
2945
29462000-05-10 Gleb Natapov <gleb@nbase.co.il>
2947
2948 * ospf_interface.c (ospf_vl_set_params):
2949 * ospf_packet.c (ospf_check_network_mask):
2950 * ospf_spf.[ch] (ospf_spf_next):
2951 Remove field address from `struct vertex', and search for peer
2952 address of virtual link in function `ospf_vl_set_params' instead.
2953
29542000-05-10 Gleb Natapov <gleb@nbase.co.il>
2955
2956 * ospf_packet.c (ospf_ls_upd): Fix some memory leak related LSA.
2957
29582000-05-08 Thomas Molkenbur <tmo@datus.com>
2959
2960 * ospf_packet.c (ospf_packet_dup): Replace ospf_steram_copy()
2961 with ospf_stream_dup() to fix memory leak.
2962
29632000-05-08 Michael Rozhavsky <mike@nbase.co.il>
2964
2965 * ospf_flood.c (ospf_flood_through_area): Fix the problem of
2966 LSA update without DROther.
2967
29682000-05-04 Gleb Natapov <gleb@nbase.co.il>
2969
2970 * ospf_spf.c (ospf_vertex_free): Fix memory leak of SPF calculation.
2971
29722000-05-03 Toshiaki Takada <takada@zebra.org>
2973
2974 * ospf_neighbor.c (ospf_db_summary_add): Use new_lsdb struct
2975 instead linked-list.
2976 (ospf_db_summary_count), (ospf_db_summary_isempty):
2977 New function added.
2978
2979 * ospf_lsa.c (ospf_rotuer_lsa): Re-arrange and divide functions.
2980
29812000-05-02 Gleb Natapov <gleb@nbase.co.il>
2982
2983 * ospf_lsdb.c (new_lsdb_cleanup): Fix memory leak. When LSDB are
2984 not needed any more, then free them.
2985
29862000-05-02 Toshiaki Takada <takada@zebra.org>
2987
2988 * ospfd.c (timers_spf), (no_timers_spf): New defun added.
2989 SPF calculation timers related stuff is rearranged.
2990
2991 * ospf_spf.c (ospf_spf_calculate_timer_add): Function removed.
2992 SPF timer is scheduled by SPF calculation delay and holdtime
2993 configuration variable.
2994
2995 * ospf_lsa.c (ospf_external_lsa_nexthop_get): Set AS-external-LSA's
2996 forwarding address when nexthop learned by other protocols is
2997 in the OSPF domain.
2998
2999 * ospf_zebra.c (ospf_redistribute_source_metric_type),
3000 (ospf_redistribute_source_type_metric): Re-arrange DEFUNs and
3001 ALIASes.
3002
30032000-05-01 Toshiaki Takada <takada@zebra.org>
3004
3005 * ospf_flood.c (ospf_ls_retransmit_count),
3006 (ospf_ls_retransmit_isempty): New function added.
3007
3008 (ospf_ls_retransmit_add), (ospf_ls_retransmit_delete),
3009 (ospf_ls_retransmit_clear), (ospf_ls_retransmit_lookup),
3010 (ospf_ls_retransmit_delete_all), (ospf_ls_retransmit_delete_nbr_all),
3011 (ospf_ls_retransmit_add_nbr_all): Replace these functions to use
3012 new_lsdb.
3013
30142000-04-29 Toshiaki Takada <takada@zebra.org>
3015
3016 * ospfd.c (no_network_area): Add check Area-ID whether specified
3017 Area-ID with prefix matches config.
3018
30192000-04-27 Toshiaki Takada <takada@zebra.org>
3020
3021 * ospf_lsa.c (ospf_maxage_lsa_remover): Fix problem of
3022 remaining withdrawn routes on zebra.
3023
30242000-04-25 Michael Rozhavsky <mike@nbase.co.il>
3025
3026 * ospf_nsm.c (nsm_kill_nbr), (nsm_ll_down), (nsm_change_status),
3027 (ospf_nsm_event): Fix network-LSA re-origination problem.
3028
30292000-04-24 Toshiaki Takada <takada@zebra.org>
3030
3031 * ospf_nsm.c (ospf_db_desc_timer): Fix bug of segmentation fault
3032 with DD retransmission.
3033
3034 * ospf_nsm.c (nsm_kill_nbr): Fix bug of re-origination when
3035 a neighbor disappears.
3036
30372000-04-23 Michael Rozhavsky <mike@nbase.co.il>
3038
3039 * ospf_abr.c (ospf_abr_announce_network_to_area): Fix bug of
3040 summary-LSAs reorigination. Correctly copy OSPF_LSA_APPROVED
3041 flag to new LSA. when summary-LSA is reoriginatd.
3042
3043 * ospf_flood.c (ospf_flood_through_area): Fix bug of flooding
3044 procedure. Change the condition of interface selection.
3045
30462000-04-21 Toshiaki Takada <takada@zebra.org>
3047
3048 * ospf_lsa.c (ospf_refresher_register_lsa): Fix bug of refresh never
3049 occurs.
3050
3051 * ospfd.c (show_ip_ospf_neighbor_id): New defun added.
3052 `show ip ospf neighbor' related commands are re-arranged.
3053
30542000-04-20 Toshiaki Takada <takada@zebra.org>
3055
3056 * ospf_dump.c (debug_ospf_zebra): New defun added.
3057 Suppress zebra related debug information.
3058
30592000-04-19 Toshiaki Takada <takada@zebra.org>
3060
3061 * ospf_zebra.c (ospf_distribute_list_update_timer),
3062 (ospf_distribute_list_update), (ospf_filter_update):
3063 New function added. Re-organize `distribute-list' router ospf
3064 command.
3065
30662000-04-13 Michael Rozhavsky <mike@nbase.co.il>
3067
3068 * ospf_packet.c (ospf_make_ls_upd): Add check for MAX_AGE.
3069
30702000-04-14 Michael Rozhavsky <mike@nbase.co.il>
3071
3072 * ospf_packet.c (ospf_make_ls_upd): Increment LS age by configured
3073 interface transmit_delay.
3074
30752000-04-14 Sira Panduranga Rao <pandu@euler.ece.iisc.ernet.in>
3076
3077 * ospf_interface.c (ip_ospf_cost), (no_ip_ospf_cost):
3078 Add to schedule router_lsa origination when the interface cost changes.
3079
30802000-04-12 Toshiaki Takada <takada@zebra.org>
3081
3082 * ospf_lsa.c (ospf_refresher_register_lsa),
3083 (ospf_refresher_unregister_lsa): Fix bug of core dumped.
3084
3085 * ospfd.c (no_router_ospf): Fix bug of core dumped.
3086
30872000-03-29 Toshiaki Takada <takada@zebra.org>
3088
3089 * ospf_nsm.c (nsm_oneway_received): Fix bug of MS flag unset.
3090
30912000-03-29 Michael Rozhavsky <mike@nbase.co.il>
3092
3093 * ospf_lsa.c (ospf_network_lsa):
3094 * ospf_nsm.c (ospf_nsm_event): Fix bug of Network-LSA originated
3095 in stub network.
3096
30972000-03-28 Toshiaki Takada <takada@zebra.org>
3098
3099 * ospf_nsm.c (nsm_bad_ls_req), (nsm_seq_number_mismatch),
3100 (nsm_oneway_received): Fix bug of NSM state flapping between
3101 ExStart and Exchange.
3102
31032000-03-28 Toshiaki Takada <takada@zebra.org>
3104
3105 * ospf_packet.h (strcut ospf_header): Fix the size of ospf_header,
3106 change u_int8_t to u_char.
3107
31082000-03-27 Toshiaki Takada <takada@zebra.org>
3109
3110 * ospf_lsa.c (ospf_lsa_checksum): Take care of BIGENDIAN architecture.
3111
31122000-03-27 Toshiaki Takada <takada@zebra.org>
3113
3114 * ospfd.c (ospf_interface_run): Make sure Address family matches.
3115
31162000-03-26 Love <lha@s3.kth.se>
3117
3118 * ospf_packet.c (ospf_write): Chack result of sendto().
3119
31202000-03-26 Sira Panduranga Rao <pandu@euler.ece.iisc.ernet.in>
3121
3122 * ospf_nsm.c (nsm_oneway_received): Fix bug of 1-WayReceived in NSM.
3123
31242000-03-23 Libor Pechacek <farco@clnet.cz>
3125
3126 * ospf_lsa.c (ospf_network_lsa)
3127 * ospf_lsdb.c (new_lsdb_insert): Fix bug of accessing to
3128 unallocated memory.
3129
31302000-03-23 Toshiaki Takada <takada@zebra.org>
3131
3132 * ospfd.c (ospf_config_write): Fix bug of duplicate line for
3133 `area A.B.C.D authentication'.
3134
31352000-03-22 Toshiaki Takada <takada@zebra.org>
3136
3137 * ospf_debug.c (debug_ospf_lsa), (no_debug_ospf_lsa): Defun added.
3138 Suppress all zlog related to LSAs with this config option.
3139
31402000-03-21 Kunihiro Ishiguro <kunihiro@zebra.org>
3141
3142 * ospf_nsm.c (ospf_nsm_event): Add check for NSM_InactivityTimer.
3143
31442000-03-21 Toshiaki Takada <takada@zebra.org>
3145
3146 * ospf_packet.c (ospf_ls_upd_timer), (ospf_ls_req):
3147 Fix bug of memory leak about linklist.
3148
3149 * ospf_flood.c (ospf_flood_through_area): Likewise.
3150
31512000-03-18 Sira Panduranga Rao <pandu@euler.ece.iisc.ernet.in>
3152
3153 * ospf_flood.c (ospf_ls_retransmit_lookup): Add checksum comparison
3154 to identify LSA uniquely. This fix routes lost.
3155
31562000-03-18 Toshiaki Takada <takada@zebra.org>
3157
3158 * ospf_ase.c (ospf_find_asbr_route): Add sanity check with router
3159 routing table.
3160
31612000-03-17 Alex Zinin <zinin@amt.ru>
3162
3163 * ospf_spf.[ch]: Bug fix.
3164 The 2nd stage of Dijkstra could consider one vertex
3165 more than once if there is more than one link
3166 between the routers, thus adding extra CPU overhead
3167 and extra next-hops.
3168 Fixed.
3169
31702000-03-15 Sira Panduranga Rao <pandu@euler.ece.iisc.ernet.in>
3171
3172 * ospf_nsm.c (nsm_inactivity_timer): Changed to call nsm_kill_nbr().
3173
31742000-03-14 Toshiaki Takada <takada@zebra.org>
3175
3176 * ospf_route.c (ospf_route_copy_nexthops): Fix bug of memory leak of
3177 ospf_path. Actually ignore merging ospf_route with completely same
3178 paths.
3179
31802000-03-12 Toshiaki Takada <takada@zebra.org>
3181
3182 * ospf_lsa.c (show_as_external_lsa_detail): fix bug of
3183 external route tag byte order.
3184
31852000-03-11 Toshiaki Takada <takada@zebra.org>
3186
3187 * ospf_lsdb.c (ospf_lsdb_insert): New function added.
3188
31892000-03-09 Toshiaki Takada <takada@zebra.org>
3190
3191 * ospf_lsa.c (ospf_external_lsa_install),
3192 (ospf_lsa_lookup), (show_ip_ospf_database_all),
3193 (show_ip_ospf_database_self_originate): Use struct new_lsdb for
3194 LSDB of AS-external-LSAs instead of ospf_lsdb.
3195
3196 * ospf_lsa.c (ospf_lsa_unique_id): New function added.
3197 Use for assigning Unique Link State ID instead of
3198 ospf_get_free_id_for_prefix().
3199
32002000-03-09 Toshiaki Takada <takada@zebra.org>
3201
3202 * ospf_ase.c (ospf_ase_calculate_timer): Fix bug of segmentation
3203 fault reported by George Bonser <george@siteROCK.com>.
3204
32052000-03-07 Libor Pechacek <farco@clnet.cz>
3206
3207 * ospfd.c (ospf_interface_down): Fix bug of segmentation fault.
3208
32092000-03-06 Toshiaki Takada <takada@zebra.org>
3210
3211 * ospf_route.c (ospf_route_cmp): Change meaning of return values.
3212
32132000-03-02 Alex Zinin <zinin@amt.ru>
3214 * ospfd.h, ospf_ia.h
3215 New Shortcut ABR code. Now area's flag can be configured
3216 with Default, Enable, and Disable values.
3217 More info will be in the new ver of I-D soon (see IETF web).
3218
32192000-02-25 Toshiaki Takada <takada@zebra.org>
3220
3221 * ospf_lsa.c (ospf_lsa_header_set), (ospf_external_lsa_body_set),
3222 (osfp_external_lsa_originate), (ospf_external_lsa_queue),
3223 (ospf_external_lsa_originate_from_queue): New function added.
3224 (ospf_external_lsa): Function removed.
3225
3226 * ospf_zebra.c (ospf_zebra_read_ipv4): Originate AS-external-LSA
3227 when listen a route from Zebra, instead creating external route.
3228
3229 * ospf_asbr.c (ospf_asbr_route_add_flood_lsa),
3230 (ospf_asbr_route_add_queue_lsa),
3231 (ospf_asbr_route_install_lsa), (ospf_asbr_route_add):
3232 Functions removed.
3233
3234 * ospf_ase.c (process_ase_lsa): Function will not be used.
3235 (ospf_ase_calculate), (ospf_ase_calculate_route_add),
3236 (ospf_ase_calculate_new_route), (ospf_ase_caluculate_asbr_route):
3237 process_ase_lsa () is separated to these functions.
3238
3239 OSPF AS-external-LSA origination is whole re-organized.
3240
32412000-02-18 Toshiaki Takada <takada@zebra.org>
3242
3243 * ospf_packet.c (ospf_ls_upd): Fix bug of OSPF LSA memory leak.
3244
3245 * ospf_asbr.c (ospf_asbr_route_add_flood_lsa),
3246 (ospf_asbr_route_add_queue_lsa): Fix bug of OSPF external route
3247 memory leak.
3248
32492000-02-12 Kunihiro Ishiguro <kunihiro@zebra.org>
3250
3251 * ospf_asbr.c (ospf_asbr_route_install_lsa): Re-calculate LSA
3252 checksum after change Advertised Router field.
3253
32542000-02-09 Toshiaki Takada <takada@zebra.org>
3255
3256 * ospf_asbr.c (ospf_external_route_lookup): Add new function.
3257
32582000-02-08 Toshiaki Takada <takada@zebra.org>
3259
3260 * ospfd.c (ospf_router_id_get), (ospf_router_id_update),
3261 (ospf_router_id_update_timer): Router ID decision algorithm is changed.
3262 Router ID is chosen from all of eligible interface addresses even if
3263 it is not enable to OSPF.
3264
32652000-02-08 Toshiaki Takada <takada@zebra.org>
3266
3267 * ospf_asbr.c (ospf_asbr_route_add): Function divided to
3268 ospf_asbr_route_add_flood_lsa, ospf_asbr_route_add_queue_lsa and
3269 ospf_asbr_route_install_lsa. If Router-ID is not set, then LSA is
3270 waited to install to LSDB.
3271 `0.0.0.0 adv_router' AS-external-LSA origination bug was fixed.
3272
32732000-02-01 Sira Panduranga Rao <pandu@euler.ece.iisc.ernet.in>
3274
3275 * ospf_flood.c (ospf_ls_retransmit_lookup): Compare LS seqnum
3276 in the ACK before deleting.
3277
3278 * ospf_packet.c (ospf_hello): Reset the flags after a shutdown
3279 and no shutdown of the interface.
3280
32812000-01-31 Toshiaki Takada <takada@zebra.org>
3282
3283 * ospf_packet.c (ospf_ls_req): Send multiple Link State Update
3284 packets respond to a Link State Request packet.
3285
3286 * ospfd.c (show_ip_ospf_neighbor_detail_sub): Show thread state.
3287
3288 * ospf_interface.c (ospf_vl_new): Crash when backbone area
3289 is not configured and set virtual-link to no-backbone area,
3290 bug fixed.
3291
32922000-01-30 Kunihiro Ishiguro <kunihiro@zebra.org>
3293
3294 * ospf_neighbor.h (struct ospf_neighbor): Add pointer to last send
3295 LS Request LSA.
3296
3297 * ospf_packet.c (ospf_ls_upd): Comment out LS request list
3298 treatment. That should be done in OSPF flooding procedure.
3299
3300 * ospf_flood.c (ospf_flood_through_area): Enclose
3301 ospf_check_nbr_loding inside if-else close.
3302
33032000-01-31 Toshiaki Takada <takada@zebra.org>
3304
3305 * ospf_packet.c (ospf_make_ls_upd): Fix bug of #LSAs counting.
3306
33072000-01-29 Toshiaki Takada <takada@zebra.org>
3308
3309 * ospf_packet.c (ospf_make_md5_digest): Fix bug of md5 authentication.
3310
33112000-01-28 Toshiaki Takada <takada@zebra.org>
3312
3313 * ospfd.c (show_ip_ospf): Show Number of ASE-LSAs.
3314
33152000-01-27 Kunihiro Ishiguro <kunihiro@zebra.org>
3316
3317 * ospf_packet.c (ospf_make_db_desc): Don't use rm_list for
3318 removing LSA from nbr->db_summary.
3319
33202000-01-27 Sira Panduranga Rao <pandu@euler.ece.iisc.ernet.in>
3321
3322 * ospf_packet.c (ospf_ls_upd_send): Set AllSPFRouters to
3323 destination when the link is point-to-point.
3324 (ospf_ls_ack_send_delayed): Likewise.
3325
33262000-01-27 Kunihiro Ishiguro <kunihiro@zebra.org>
3327
3328 * ospf_flood.c (ospf_ls_request_delete_all): Fix bug of next
3329 pointer lookup after the node is freed.
3330
33312000-01-26 Kunihiro Ishiguro <kunihiro@zebra.org>
3332
3333 * ospf_asbr.c (ospf_asbr_route_add): Instead of scanning all AS
3334 external route, use ospf_top->external_self.
3335
33362000-01-27 Toshiaki Takada <takada@zebra.org>
3337
3338 * ospf_lsa.c (ospf_forward_address_get): New function added.
3339
3340 * ospf_asbr.c (ospf_asbr_check_lsas): Originate AS-external-LSA
3341 only when it should be replaced.
3342
33432000-01-25 Kunihiro Ishiguro <kunihiro@zebra.org>
3344
3345 * ospf_flood.c (ospf_ls_retransmit_clear): Delete list node.
3346
3347 * ospf_lsa.c (ospf_lsa_free): Reduce logging message using
3348 ospf_zlog value.
3349
3350 * ospf_ism.c (ism_change_status): Fix bug of DR -> non DR status
3351 change. Self originated LSA is freed but not deleted from lsdb.
3352
33532000-01-24 Kunihiro Ishiguro <kunihiro@zebra.org>
3354
3355 * ospf_ism.c (ism_interface_down): Don't use router_id for
3356 detecting self neighbor structure. Instead of that compare
3357 pointer itself.
3358
3359 * ospf_neighbor.c (ospf_nbr_free): Cancel all timer when neighbor
3360 is deleted.
3361 (ospf_nbr_free): Free last send packet.
3362
3363 * ospf_neighbor.h (struct ospf_neighbor): Remove host strucutre.
3364 Instead of that src is introduced.
3365
3366 * ospf_nsm.h: Enclose macro defenition with do {} while (0).
3367
33682000-01-17 Kunihiro Ishiguro <kunihiro@zebra.org>
3369
3370 * ospfd.c: Change part of passive interface implementation. For
3371 passive interface just disabling sending/receiving Hello on the
3372 interface.
3373
33742000-01-16 Kai Bankett <kai.bankett@vew-telnet.net>
3375
3376 * ospf_interface.h (OSPF_IF_PASSIVE): Add passive flag.
3377 * ospf_interface.c (ospf_if_lookup_by_name): Add new function.
3378 * ospf_lsa.c (ospf_router_lsa): Skip passive interface.
3379 * ospfd.c (passive_interface): New command passive-interface is
3380 added.
3381 (ospf_config_write): Print passive interface.
3382
33832000-01-15 Toshiaki Takada <takada@zebra.org>
3384
3385 * ospf_interface.h (crypt_key): New struct added to store
3386 multiple cryptographic autheitication keys.
3387 (ospf_interface): struct changed.
3388
3389 * ospf_interface.c: ospf_crypt_key_new, ospf_crypt_key_add,
3390 ospf_crypt_key_lookup, ospf_crypt_key_delete: new functions added.
3391
3392 * ospf_packet.c (ip_ospf_message_digest_key): Changed to store
3393 multiple cryptographic authentication keys.
3394
33952000-01-14 Toshiaki Takada <takada@zebra.org>
3396
3397 * ospf_interface.c: DEFUN (if_ospf_*) commands changed name to
3398 ip_ospf_* ().
3399 Old notation `ospf *' still remains backward compatibility.
3400
34011999-12-29 Alex Zinin <zinin@amt.ru>
3402 * ospf_lsa.c: ospf_lsa_more_recent() bug fix
3403 * ospf_nsm.c, ospf_packet.c: remove nbr data struct when
3404 int goes down, also check DD flags correctly (bug fix)
3405
34061999-12-28 Alex Zinin <zinin@amt.ru>
3407 * "redistribute <source> metric-type (1|2) metric <XXX>" added
3408
34091999-12-23 Alex Zinin <zinin@amt.ru>
3410 * added RFC1583Compatibility flag
3411 * added dynamic interface up/down functionality
3412
34131999-11-19 Toshiaki Takada <takada@zebra.org>
3414
3415 * ospf_neighbor.h (struct ospf_neighbor): Add member state_change
3416 for NSM state change statistics.
3417
34181999-11-19 Toshiaki Takada <takada@zebra.org>
3419
3420 * ospfd.c (show_ip_ospf_neighbor_detail),
3421 (show_ip_ospf_neighbor_int_detail): DEFUN Added.
3422
34231999-11-14 Kunihiro Ishiguro <kunihiro@zebra.org>
3424
3425 * ospf_asbr.c (ospf_asbr_check_lsas): Add check of
3426 lsa->refresh_list.
3427
34281999-11-11 Toshiaki Takada <takada@zebra.org>
3429
3430 * ospf_ia.[ch] (OSPF_EXAMINE_SUMMARIES_ALL): Macro added.
3431 This macro is expanded to ospf_examine_summaries ()
3432 for SUMMARY_LSA and SUMMARY_LSA_ASBR.
3433 (OSPF_EXAMINE_TRANSIT_SUMMARIES_ALL): Macro added.
3434 This macro is expanded to ospf_examine_transit_summaries ()
3435 for SUMMARY_LSA and SUMMARY_LSA_ASBR.
3436
34371999-11-11 Toshiaki Takada <takada@zebra.org>
3438
3439 * ospf_lsa.[ch] (ospf_find_self_summary_lsa_by_prefix): Changed to
3440 macro OSPF_SUMMARY_LSA_SELF_FIND_BY_PREFIX.
3441 (ospf_find_self_summary_asbr_lsa_by_prefix): Changed to
3442 macro OSPF_SUMMARY_ASBR_LSA_SELF_FIND_BY_PREFIX.
3443 (ospf_find_self_external_lsa_by_prefix): Changed to
3444 macro OSPF_EXTERNAL_LSA_SELF_FIND_BY_PREFIX.
3445
34461999-11-11 Toshiaki Takada <takada@zebra.org>
3447
3448 * ospfd.c (ospf_abr_type): ospf_abr_type_cisco, ospf_abr_type_ibm,
3449 ospf_abr_type_shortcut and ospf_abr_type_standard DEFUNs are
3450 combined.
3451 * ospfd.c (no_ospf_abr_type): no_ospf_abr_type_cisco,
3452 no_ospf_abr_type_ibm and no_ospf_abr_type_shortcut DEFUNS are
3453 combined.
3454
34551999-11-10 Toshiaki Takada <takada@zebra.org>
3456
3457 * ospf_route.c (ospf_lookup_int_by_prefix): Move function to
3458 ospf_interface.c and change name to ospf_if_lookup_by_prefix ().
3459
34601999-11-01 Alex Zinin <zinin@amt.ru>
3461 * ospf_packet.c
3462 some correction to LSU processing
3463
3464 * ospf_lsa.c ospfd.h
3465 randomize initial LSA refreshment interval
3466 and limit the size of LSA-group to 10
3467 to let randomization work more effectively.
3468
34691999-10-31 Alex Zinin <zinin@amt.ru>
3470 * ospf_interface.c
3471 cancel t_network_lsa_self
3472 when freeing int structure
3473
3474 * ospf_abr.c ospf_asbr.c ospf_flood.c ospf_lsa.c
3475 ospf_lsa.h ospf_lsdb.h ospfd.c ospfd.h
3476
3477 Summary and ASE LSA refreshment functions
3478 added---LSA refreshment is paced to 70 LSAs
3479 per sec to avoid link overflow. Refreshment events
3480 are further randomized within a 10 sec interval
3481 to avoid syncing.
3482
3483 Also the sigfault of memcmp() in ospf_lsa_is_different()
3484 is fixed.
3485
34861999-10-30 Alex Zinin <zinin@amt.ru>
3487 * ospf_nsm.c
3488 Fix the bug where MAX_AGE LSAs
3489 are included into the DB summary.
3490
3491 * ospf_interface.c
3492 allocate 2*MTU input buffer instead of just MTU
3493 for the cases when the other router mistakenly
3494 sends larger packets thus causing fragmentation, etc.
3495
3496 * ospf_nsm.c
3497 in nsm_reset_nbr() lists should be freed
3498 not when they are empty.
3499
35001999-10-29 Kunihiro Ishiguro <kunihiro@zebra.org>
3501
3502 * ospf_zebra.c (ospf_acl_hook): Move OSPF_IS_ASBR and OSPF_IS_ABR
3503 check inside of if (ospf_top).
3504
35051999-10-29 Alex Zinin <zinin@amt.ru>
3506 * ospf_lsa.c ospf_lsdb.c :
3507 add assertion in lsa and lsa->data alloc functions,
3508 as well as in lsdb_add for new->data
3509
3510 * ospf_lsdb.c: free hash table correctly
3511
35121999-10-28 John Capo <jc@irbs.com>
3513
3514 * ospf_packet.h (OSPF_PACKET_MAX): Correct MAX packet length
3515 calculation
3516
35171999-10-27 Kunihiro Ishiguro <kunihiro@zebra.org>
3518
3519 * OSPF-TRAP-MIB.txt: New file added. Edited version of RFC1850.
3520
3521 * OSPF-MIB.txt: New file added. Edited version of RFC1850.
3522
35231999-10-27 Alex Zinin <zinin@amt.ru>
3524 * ospfd, ospf_zebra, ospf_abr
3525 "area import-list" command is added.
3526 This command allows to filter the inter-area routes
3527 injected into an area. Access list hook function
3528 extended to invalidate area exp/imp lists.
3529
35301999-10-25 Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
3531
3532 * ospfd.c (ospf_interface_run): Enable to detect P2P network
3533 on an OSPF interface.
3534
35351999-10-19 Jordan Mendelson <jordy@wserv.com>
3536
3537 * ospf_lsdb.c (ospf_lsdb_add): Fix bug of crash
3538 in ospf_ls_retransmit_lookup ().
3539
35401999-10-19 Vladimir B. Grebenschikov <vova@express.ru>
3541
3542 * ospf_route.c: Workaround about installation of OSPF routes into
3543 the zebra daemon. Add checking of existance routes. Free
3544 ospf_top->old_table if it exists.
3545
35461999-10-15 Jordan Mendelson <jordy@wserv.com>
3547
3548 * Add support for MD5 authentication.
3549
35501999-10-12 Alex Zinin <zinin@amt.ru>
3551 * ospfd.c, ospfd.h, ospf_abr.c:
3552 a new command "area export-list" was added, it allows
3553 the admin. to control which intra-area routes are
3554 announced to other areas by the ABR
3555
35561999-10-12 Alex Zinin <zinin@amt.ru>
3557 * ospf_asbr.c (ospf_asbr_check_lsas): Fix bug of coredump
3558 when "no redistribute" is used after a distribute list
3559 denying some networks was used
3560
35611999-10-05 Toshiaki Takada <takada@zebra.org>
3562
3563 * ospf_route.c (ospf_path_dup): New function added.
3564
35651999-10-05 Toshiaki Takada <takada@zebra.org>
3566
3567 * ospf_interface.[ch]: Some of VL related funciton name changed.
3568
35691999-09-27 Alex Zinin <zinin@amt.ru>
3570
3571 * ospf_zebra.c: Distribute-list functionality added
3572
35731999-09-27 Toshiaki Takada <takada@zebra.org>
3574
3575 * ospfd.c (show_ip_ospf): Fix bug of segmentation fault when no ospf
3576 instance exists.
3577
35781999-09-25 Kunihiro Ishiguro <kunihiro@zebra.org>
3579
3580 * ospfd.c (ospf_interface_down): Fix bug of misusing nextnode()
3581 instead of node->next. Reported by Hiroki Ishibashi
3582 <ishibasi@dcd.abk.nec.co.jp>.
3583
3584 * ospf_route.c (show_ip_ospf_route): Add check for ospf is enabled
3585 or not.
3586
35871999-09-23 Alex Zinin <zinin@amt.ru>
3588
3589 * stub area support added
3590
35911999-09-23 Alex Zinin <zinin@amt.ru>
3592
3593 * fwd_addr in ASE-LSAs is now set correctly
3594 * ASE routing changed to check the fwd_addr
3595 and skip the route if the addr points to one
3596 of our interfaces to avoid loops.
3597
35981999-09-22 Alex Zinin <zinin@amt.ru>
3599
3600 * ospf_interface:
3601 ospf_vls_in_area() added, it returns
3602 the number of VLs configured through the area
3603
3604 * ospf_interface.c ospf_lsa.c ospf_lsdb.c ospfd.c
3605 honor correct mem alloc
3606
36071999-09-22 Alex Zinin <zinin@amt.ru>
3608
3609 * memory.[ch]:
3610 Some OSPF mem types added,
3611 plus more info in "show mem"
3612
36131999-09-21 Alex Zinin <zinin@amt.ru>
3614
3615 * ospfd.c:
3616 "area range substitute" added.
3617 It can be used on NAT-enabled (IP-masquarade)
3618 routers to announce private networks
3619 from an area as public ones into the outside
3620 world (not in the RFC, btw :)
3621
36221999-09-21 Alex Zinin <zinin@amt.ru>
3623
3624 * ospfd.c:
3625 "area range suppress" added.
3626 This command allows to instruct the router
3627 to be silent about specific ranges, i.e.,
3628 it is a method of route filtering on area
3629 borders
3630
36311999-09-21 Alex Zinin <zinin@amt.ru>
3632
3633 * ospfd.c VLs removed when "no network area" executed
3634
36351999-09-20 Alex Zinin <zinin@amt.ru>
3636
3637 * ospf_ase.c bug fix for not-zero fwd_addr
3638 and directly connected routes.
3639
36401999-09-20 Yon Uriarte <yon@plannet.de>
3641
3642 * ospf_packet.c (ospf_make_ls_req): Introduce delta value for
3643 checking the length of OSPF packet exceeds MTU or not.
3644
3645 * ospf_lsa.c (ospf_lsa_different): Apply ntohs for checking
3646 l1->data->length.
3647
36481999-09-18 Alex Zinin <zinin@amt.ru>
3649
3650 * ospf_lsa.c bug fix for ospf_network_lsa() to
3651 include itself into the RID list
3652
36531999-09-10 Alex Zinin <zinin@amt.ru>
3654
3655 * Alternative ABR behaviors IBM/Cisco/Shortcut
3656 implemented
3657
36581999-09-10 Alex Zinin <zinin@amt.ru>
3659
3660 * router and network-LSA origination
3661 changed to honor MinLSInterval
3662
36631999-09-08 Alex Zinin <zinin@amt.ru>
3664
3665 * modified ABR behavior to honor VLs and transit
3666 areas
3667
36681999-09-07 Alex Zinin <zinin@amt.ru>
3669
3670 * completed VL functionality
3671
36721999-09-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3673
3674 * ospf_asbr.c: New file.
3675 ospf_asbr.h: New file.
3676
3677 * ospf_zebra.c (ospf_redistribute_connected): Add redistribute
3678 related stuff.
3679
36801999-09-05 Kunihiro Ishiguro <kunihiro@zebra.org>
3681
3682 * ospfd.h (OSPF_FLAG_VIRTUAL_LINK): Change OSPF_FLAG_VEND to
3683 OSPF_FLAG_VIRTUAL_LINK for comprehensiveness.
3684
36851999-09-03 Kunihiro Ishiguro <kunihiro@zebra.org>
3686
3687 * ospf_spf.c (ospf_spf_register): Change name from
3688 ospf_spf_route_add() to ospf_spf_register().
3689 Include "ospfd/ospf_abr.h" for ospf_abr_task() prototype.
3690
36911999-09-02 Kunihiro Ishiguro <kunihiro@zebra.org>
3692
3693 * ospf_lsa.c (ospf_external_lsa_install): Change to update
3694 lsa->data rather than install new one, when same id lsa is already
3695 installed.
3696
36971999-09-01 Kunihiro Ishiguro <kunihiro@zebra.org>
3698
3699 * ospf_lsa.c (ospf_router_lsa_install): Return lsa value.
3700 (ospf_network_lsa_install): Likewise.
3701 (ospf_summary_lsa_install): Likewise.
3702 (ospf_summary_asbr_lsa_install): Likewise.
3703 (ospf_external_lsa_install): Likewise.
3704
3705 * ospf_spf.c (ospf_spf_calculate): Comment out debug function
3706 ospf_rtrs_print().
3707
37081999-08-31 Kunihiro Ishiguro <kunihiro@zebra.org>
3709
3710 * ospf_spf.c (ospf_rtrs_free): Add ospf_spf_calculate() for
3711 freeing rtrs.
3712
37131999-08-31 Toshiaki Takada <takada@zebra.org>
3714
3715 * ospf_lsa.c (show_ip_ospf_database_summary),
3716 (show_ip_ospf_database_summary_asbr),
3717 (show_ip_ospf_database_external): New function added.
3718 `show ip ospf database summary',
3719 `show ip ospf database asbr-summary'
3720 `show ip ospf database external' command can be used.
3721
3722 * ospf_lsa.c (ospf_lsa_count_table): New function added.
3723 (show_ip_ospf_database_all): show nothing if a type of LSA
3724 does not exist.
3725
37261999-08-31 Kunihiro Ishiguro <kunihiro@zebra.org>
3727
3728 * ospf_lsa.c (ospf_maxage_lsa_remover): Preserve next pointer when
3729 the node is deleted.
3730
37311999-08-31 Toshiaki Takada <takada@zebra.org>
3732
3733 * ospf_flood.c (ospf_ls_retransmit_lookup): change to return
3734 struct ospf_lsa *.
3735 (ospf_ls_request_new), (ospf_ls_request_free),
3736 (ospf_ls_request_add), (ospf_ls_request_delete),
3737 (ospf_ls_request_delete_all), (ospf_ls_request_lookup):
3738 New function added.
3739
3740 * ospf_packet.c (ospf_ls_upd_send_lsa): New function added.
3741
3742 * ospf_lsa.h (LS_AGE): Slightly change macro definition.
3743
3744 * ospf_lsa.c (ospf_lsa_more_recent), (ospf_lsa_diffrent):
3745 Use LS_AGE macro.
3746
37471999-08-30 Alex Zinin <zinin@amt.ru>
3748
3749 * ospfd.c
3750 fix a bug with area range config write
3751 added "show ip ospf" command, it will be enhanced later on
3752
37531999-08-30 Alex Zinin <zinin@amt.ru>
3754
3755 * ospf_lsa.c
3756 updated ospf_router_lsa() to honor flags (B-bit)
3757
37581999-08-30 Alex Zinin <zinin@amt.ru>
3759
3760 * ospf_abr.c
3761 wrote major functions implementing ABR activity
3762
37631999-08-30 Alex Zinin <zinin@amt.ru>
3764
3765 * ospf_ia.c ospf_route.c ospf_route.h
3766 fixed the bug with ospf_route.origin field.
3767 Now it holds pointer to lsa_header
3768
37691999-08-30 Alex Zinin <zinin@amt.ru>
3770
3771 * ospf_flood.c ospf_flood.h:
3772 transformed ospf_flood_if_select into ospf_flood_through_area()
3773 added new ospf_flood_if_select() and ospf_flood_through_as()
3774
37751999-08-30 Toshiaki Takada <takada@zebra.org>
3776
3777 * ospf_flood.[ch]: New file added.
3778
3779 * ospf_packet.c (ospf_lsa_flooding),
3780 (ospf_lsa_flooding_select_if): functions move to ospf_flood.c
3781
3782 * ospf_neighbor.c (ospf_put_lsa_on_retransm_list),
3783 (ospf_remove_lsa_from_retransm_list),
3784 (ospf_nbr_remove_all_lsas_from_retransm_list),
3785 (ospf_lsa_remove_from_ls_retransmit):
3786 (ospf_lsa_retransmit): functions move to
3787 ospf_flood.c, and change function's name:
3788
3789 ospf_put_lsa_on_retransm_list ()
3790 -> ospf_ls_retransmit_add ()
3791 ospf_remove_lsa_from_retransm_list ()
3792 -> ospf_ls_retransmit_delete ()
3793 ospf_nbr_remove_all_lsas_from_retransm_list ()
3794 -> ospf_ls_retransmit_clear ()
3795 ospf_lsa_remove_from_ls_retransmit ()
3796 -> ospf_ls_retransmit_delete_nbr_all ()
3797 ospf_lsa_retransmit ()
3798 -> ospf_ls_retransmit_add_nbr_all ()
3799
3800 * ospf_lsa.c (ospf_lsa_lookup_from_list): function move to
3801 ospf_flood.c, and change name to ospf_ls_retransmit_lookup ().
3802
38031999-08-30 Kunihiro Ishiguro <kunihiro@zebra.org>
3804
3805 * ospf_neighbor.c (ospf_nbr_lookup_by_addr): Use
3806 route_node_lookup() instead of route_node_get().
3807
3808 * ospf_packet.c (ospf_ls_upd): Temporary comment out (6) check.
3809
38101999-08-30 Kunihiro Ishiguro <kunihiro@zebra.org>
3811
3812 * ospf_route.c (ospf_lookup_int_by_prefix): Add check of
3813 oi->address.
3814
38151999-08-29 Alex Zinin <zinin@amt.ru>
3816 * ospf_lsa.c
3817 MaxAge LSA deletion functions added.
3818
38191999-08-29 Alex Zinin <zinin@amt.ru>
3820 * ospf_neighbor.c
3821 ospf_nbr_lookup_by_addr(): added route_unlock_node()
3822 when function returns NULL if (rn->info == NULL)
3823
38241999-08-29 Alex Zinin <zinin@amt.ru>
3825 * ospfd.c
3826 added a hack for area range deletion
3827
38281999-08-29 Alex Zinin <zinin@amt.ru>
3829 * ospf_lsa.h
3830 included lsdb field into struct ospf_lsa, to find
3831 LSDB easier when removing MaxAge LSAs.
3832
38331999-08-29 Alex Zinin <zinin@amt.ru>
3834 * ospf_lsa.c ospf_neighbor.c ospf_nsm.c
3835 ospf_packet.c changed to honor new retransmit list
3836 management functions
3837
38381999-08-29 Alex Zinin <zinin@amt.ru>
3839 * ospf_neighbor.c , .h added new retransmit list functions.
3840
38411999-08-29 Alex Zinin <zinin@amt.ru>
3842 * Makefile.in
3843 added ospf_ase, ospf_abr, ospf_ia
3844
38451999-08-29 Alex Zinin <zinin@amt.ru>
3846 * ospf_spf.c:
3847 - changed ospf_next_hop_calculation() to include interface
3848 and nexthop addr for directly connected routers---more informative
3849 and solves problem with route installation into the kernel
3850 - changed ospf_nexthop_out_if_addr() to support routers, not only
3851 transit networks
3852 - added ospf_process_stubs();
3853
38541999-08-29 Alex Zinin <zinin@amt.ru>
3855 * ospf_lsa.c:
3856 - changed ospf_router_lsa() to provide correct links
3857 for p-t-p interfaces;
3858 - changed ospf_summary_lsa_install() to support table
3859 of self-originated summary-LSAs;
3860 - added ospf_summary_asbr_lsa_install() and ospf_external_lsa_install()
3861 - changed ospf_lsa_install() accordingly
3862 - changed show_ip_ospf_database_router_links() to support p-t-p
3863
38641999-08-29 Kunihiro Ishiguro <kunihiro@zebra.org>
3865
3866 * ospf_packet.c (ospf_make_db_desc): Only master can clear more
3867 flag.
3868
38691999-08-29 Kunihiro Ishiguro <kunihiro@zebra.org>
3870
3871 * ospf_packet.c (ospf_read): Add check of IP src address.
3872
38731999-08-28 Alex Zinin <zinin@amt.ru>
3874 * ospf_neighbor.h
3875 added ospf_nbr_lookup_by_routerid()
3876
38771999-08-28 Alex Zinin <zinin@amt.ru>
3878 * ospfd.h
3879 added ABR/ASBR flag definitions and fields;
3880 added iflist field to area structure;
3881 summary_lsa_self and summary_lsa_asbr_self are changed
3882 to be route tables;
3883 added ranges field---configured area ranges;
3884 A separate Routers RT added;
3885 area range config commands and config write added
3886
3887
38881999-08-28 Alex Zinin <zinin@amt.ru>
3889 * ospf_route.c :
3890 ospf_route_free()--added code to free the list of paths;
3891 The following functions added:
3892 ospf_intra_add_router();
3893 ospf_intra_add_transit();
3894 ospf_intra_add_stub();
3895 the last function uses new ospf_int_lookup_by_prefix();
3896 show_ip_ospf_route_cmd()--changed to support new RT structure;
3897 added ospf_cmp_routes()--general route comparision function;
3898 added ospf_route_copy_nexthops() and ospf_route_copy_nexthops_from_vertex()
3899 they are used in ASE and IA routing;
3900 added ospf_subst_route() and ospf_add_route();
3901
39021999-08-28 Alex Zinin <zinin@amt.ru>
3903 * ospf_route.h :
3904 changed struct ospf_path to include output interface,
3905 changed struct ospf_route to support IA and ASE routing.
3906 added prototypes of the function used in IA and ASE modules.
3907
39081999-08-28 Alex Zinin <zinin@amt.ru>
3909 * ospf_lsa.h ospf_lsa.c :
3910 added ospf_my_lsa(), an interface independent version of
3911 ospf_lsa_is_self_originated(), it will be used in ASE and IA-routing.
3912
39131999-08-27 Kunihiro Ishiguro <kunihiro@zebra.org>
3914
3915 * ospf_interface.c (interface_config_write): Add check for
3916 oi->nbr_self.
3917
39181999-08-25 Toshiaki Takada <takada@zebra.org>
3919
3920 * ospf_lsa.c (ospf_lsa_dup): New function added.
3921
3922 * ospf_packet.c (ospf_write), (ospf_read): Print send/recv
3923 interface in debug message.
3924
39251999-08-25 Toshiaki Takada <takada@zebra.org>
3926
3927 * ospf_packet.c (ospf_ls_ack_send): The name is changed from
3928 `ospf_ls_ack_send'.
3929 (ospf_ls_ack_send_delayed) (ospf_ls_ack_timer): New function added.
3930 Delayed Link State Acknowledgment is scheduled by timer.
3931
39321999-08-25 Alex Zinin <zinin@amt.ru>
3933
3934 * ospf_lsa.c (ospf_router_lsa): Incorrectly included link to
3935 a stub network instead of link to a transit network into
3936 originated router-LSA, bug fixed.
3937
39381999-08-24 Toshiaki Takada <takada@zebra.org>
3939
3940 * ospfd.c (ospf_update_router_id): New function added.
3941
3942 * ospf_network.c (ospf_write): Create new socket per transmission.
3943 And select outgoing interface whether dst is unicast or multicast.
3944
3945 * ospf_packet.c: LSA flooding will work.
3946
39471999-08-24 VOP <vop@unity.net>
3948
3949 * ospf_route.c: Include "sockunion.h"
3950
39511999-08-24 Kunihiro Ishiguro <kunihiro@zebra.org>
3952
3953 * ospf_network.c (ospf_serv_sock_init): Enclose
3954 IPTOS_PREC_INTERNETCONTROL setting with #ifdef for OS which does
3955 not have the definition.
3956
39571999-08-23 Toshiaki Takada <takada@zebra.org>
3958
3959 * ospf_packet.c: Fix bug of DD processing.
3960
39611999-08-18 Toshiaki Takada <takada@zebra.org>
3962
3963 * ospf_lsa.c (show_ip_ospf_database): Show actual `LS age'.
3964
39651999-08-17 Toshiaki Takada <takada@zebra.org>
3966
3967 * ospf_lsa.h (OSPF_MAX_LSA): The value of OSPF_MAX_LSA is
3968 corrected. The bug of `mes_lookup' is fixed.
3969 This had been reported by Poul-Henning Kamp <phk@freebsd.org>.
3970
3971 * ospf_lsa.c (ospf_router_lsa_install): The name is changed from
3972 `ospf_add_router_lsa'.
3973 (ospf_network_lsa_install): The name is changed from
3974 `ospf_add_network_lsa'.
3975
3976 * ospf_interface.h (ospf_interface): Add member `nbr_self'.
3977
3978 * ospf_interface.c (ospf_if_is_enable): New function added.
3979
39801999-08-16 Toshiaki Takada <takada@zebra.org>
3981
3982 * ospf_lsa.h (struct lsa_header): The name is changed from
3983 `struct ospf_lsa'.
3984 (struct ospf_lsa): New struct added to control each LSA's aging
3985 and timers.
3986
3987 * ospf_lsa.c (ospf_lsa_data_free): The name is change from
3988 `ospf_lsa_free'.
3989 (ospf_lsa_data_new), (ospf_lsa_new), (ospf_lsa_free),
3990 (ospf_lsa_different), (ospf_lsa_install): New function added.
3991
3992 * ospf_packet.c (ospf_ls_upd_list_lsa): New function added.
3993
39941999-08-12 Toshiaki Takada <takada@zebra.org>
3995
3996 * ospf_nsm.c (nsm_reset_nbr): New function added.
3997 KillNbr and LLDown neighbor event call this function.
3998
39991999-08-10 Toshiaki Takada <takada@zebra.org>
4000
4001 * ospf_packet.c (ospf_ls_retransmit)
4002 (ospf_ls_upd_timer): New function added.
4003 Set retransmission timer for Link State Update.
4004
40051999-07-29 Toshiaki Takada <takada@zebra.org>
4006
4007 * ospf_ism.c (ospf_dr_election): Fix bug of DR election.
4008
40091999-07-28 Toshiaki Takada <takada@zebra.org>
4010
4011 * ospf_network.c (ospf_serv_sock_init): Set IP precedence field
4012 with IPTOS_PREC_INTERNET_CONTROL.
4013
4014 * ospf_nsm.c (nsm_change_status): Schedule NeighborChange event
4015 if NSM status change.
4016
4017 * ospf_packet.c (ospf_make_hello): Never include a neighbor in
4018 Hello packet, when the neighbor goes down.
4019
40201999-07-26 Kunihiro Ishiguro <kunihiro@zebra.org>
4021
4022 * Makefile.am (noinst_HEADERS): Add ospf_route.h.
4023
4024 * ospf_route.c (show_ip_ospf_route): Add `show ip ospf route'
4025 command.
4026
40271999-07-25 Toshiaki Takada <takada@zebra.org>
4028
4029 * ospf_lsa.c (ospf_router_lsa): Fix bug of LS sequence number
4030 assignement.
4031
40321999-07-25 Kunihiro Ishiguro <kunihiro@zebra.org>
4033
4034 * ospf_route.c (ospf_route_table_free): New function added.
4035
4036 * ospf_spf.c (ospf_spf_next): Free vertex w when cw's and w's
4037 distance is same.
4038
4039 * ospfd.h (struct ospf): Add old_table.
4040
4041 * ospf_main.c (sighup): Call of log_rotate () removed.
4042
4043 * ospf_lsa.c (ospf_lsa_is_self_originated): Fix bug of checking
4044 area->lsa as self LSA. This should be area->lsa_self.
4045
40461999-07-24 Kunihiro Ishiguro <kunihiro@zebra.org>
4047
4048 * ospf_zebra.c (ospf_zebra_add): ospf_zebra_add
4049 (),ospf_zebra_delete () added.
4050
4051 * ospf_spf.c (ospf_spf_calculate): Call ospf_intra_route_add ().
4052
40531999-07-24 Toshiaki Takada <takada@zebra.org>
4054
4055 * ospf_lsa.c: Change LS sequence number treatment.
4056 (ospf_lsa_is_self_originated): New function added.
4057 (show_ip_ospf_database_self_originated): New DEFUN added.
4058
40591999-07-23 Kunihiro Ishiguro <kunihiro@zebra.org>
4060
4061 * ospf_interface.c (ospf_if_lookup_by_addr): Add loopback check.
4062
40631999-07-22 Toshiaki Takada <takada@zebra.org>
4064
4065 * ospf_spf.c (ospf_nexthop_new), (ospf_nexthop_free),
4066 (ospf_nexthop_dup): function added.
4067 (ospf_nexthop_calculation): function changed.
4068
4069 * ospf_interface.c (ospf_if_lookup_by_addr): function added.
4070
40711999-07-21 Toshiaki Takada <takada@zebra.org>
4072
4073 * ospf_spf.c (ospf_spf_closest_vertex): function removed.
4074
40751999-07-21 Kunihiro Ishiguro <kunihiro@zebra.org>
4076
4077 * ospf_spf.c (ospf_spf_next): Apply ntohs for fetching metric.
4078
40791999-07-21 Toshiaki Takada <takada@zebra.org>
4080
4081 * ospf_neighbor.c (ospf_nbr_lookup_by_router_id): fundtion removed.
4082
4083 * ospf_lsa.c (show_ip_ospf_database_router): describe each
4084 connected link.
4085
40861999-07-21 Kunihiro Ishiguro <kunihiro@zebra.org>
4087
4088 * ospf_spf.c (ospf_spf_next): V is router LSA or network LSA so
4089 change behavior according to LSA type.
4090 (ospf_lsa_has_link): Link check function is added.
4091
40921999-07-20 Kunihiro Ishiguro <kunihiro@zebra.org>
4093
4094 * ospf_spf.c (ospf_spf_calculate_schedule): Add new function for
4095 SPF calcultion schedule addtition.
4096 (ospf_spf_calculate_timer_add): Rough 30 sec interval SPF calc
4097 timer is added.
4098 (ospf_spf_next_router): Delete ospf_spf_next_network ().
4099
4100 * ospf_lsa.c (show_ip_ospf_database_all): Network-LSA display
4101 header typo correction. Display of router LSA's #link added.
4102
41031999-07-19 Toshiaki Takada <takada@zebra.org>
4104
4105 * ospf_packet.c (ospf_check_network_mask): Added new function for
4106 receiving Raw IP packet on an appropriate interface.
4107
41081999-07-16 Toshiaki Takada <takada@zebra.org>
4109
4110 * ospfd.c (ospf_router_id): new DEFUN added.
4111
41121999-07-15 Toshiaki Takada <takada@zebra.org>
4113
4114 * ospf_spf.c (ospf_spf_init), (ospf_spf_free),
4115 (ospf_spf_has_vertex), (ospf_vertex_lookup),
4116 (ospf_spf_next_router), (ospf_spf_next_network),
4117 (ospf_spf_closest_vertex), (ospf_spf_calculate):
4118 function added.
4119
41201999-07-13 Toshiaki Takada <takada@zebra.org>
4121
4122 * ospf_ism.c: fix bug of DR Election.
4123
4124 * ospf_nsm.c: fix bug of adjacency forming.
4125
41261999-07-05 Kunihiro Ishiguro <kunihiro@zebra.org>
4127
4128 * ospfd.c (ospf_init): Change to use install_default.
4129
41301999-07-01 Rick Payne <rickp@rossfell.co.uk>
4131
4132 * ospf_zebra.c (zebra_init): Install standard commands to
4133 ZEBRA_NODE.
4134
41351999-06-30 Toshiaki Takada <takada@zebra.org>
4136
4137 * ospf_dump.c: Whole debug command is improved.
4138 (ISM|NSM) (events|status|timers) debug option added.
4139 (show_debugging_ospf): new DEFUN added.
4140
41411999-06-30 Kunihiro Ishiguro <kunihiro@zebra.org>
4142
4143 * ospf_lsa.c (ospf_lsa_lookup_from_list): Change !IPV4_ADDR_CMP to
4144 IPV4_ADDR_SAME.
4145
41461999-06-29 Toshiaki Takada <takada@zebra.org>
4147
4148 * ospf_dump.c (ospf_summary_lsa_dump): Add summary-LSA dump routine.
4149 (ospf_as_external_lsa_dump): Add AS-external-LSA dump routine.
4150
4151 * ospf_nsm.c (nsm_twoway_received): fix condtion of adjacnet.
4152
4153 * ospf_ism.c (ospf_dr_election): fix DR Election.
4154
4155 * ospf_dump.c (ospf_nbr_state_message): fix `show ip ospf neighbor'
4156 command's state.
4157
41581999-06-29 Kunihiro Ishiguro <kunihiro@zebra.org>
4159
4160 * ospf_dump.c (ospf_router_lsa_dump): Add router-LSA dump routine.
4161
41621999-06-28 Toshiaki Takada <takada@zebra.org>
4163
4164 * ospf_lsa.c (show_ip_ospf_database_network): fix bug of
4165 `show ip ospf database network' command output.
4166
4167 * ospf_nsm.c (nsm_inactivity_timer): Clear list of Link State
4168 Retransmission, Database Summary and Link State Request.
4169
4170 * ospf_packet.c (ospf_ls_req_timer): New function added.
4171 Set Link State Request retransmission timer.
4172
41731999-06-27 Kunihiro Ishiguro <kunihiro@zebra.org>
4174
4175 * ospf_main.c (main): Change default output from ZLOG_SYSLOG to
4176 ZLOG_STDOUT.
4177
4178 * ospfd.c (ospf_init): Register show_ip_ospf_interface_cmd and
4179 show_ip_ospf_neighbor_cmd to VIEW_NODE.
4180
4181 * ospf_lsa.c (ospf_lsa_init): Register show_ip_ospf_database_cmd
4182 and show_ip_ospf_database_type_cmd to VIEW_NODE.
4183
41841999-06-25 Toshiaki Takada <takada@zebra.org>
4185
4186 * ospf_packet.c: fix bug of DD making.
4187 fix bug of LS-Update reading.
4188
41891999-06-23 Toshiaki Takada <takada@zebra.org>
4190
4191 * ospf_packet.c: All type of packets are changed to use
4192 fifo queue structure.
4193 (ospf_fill_header) function added.
4194
41951999-06-22 Toshiaki Takada <takada@zebra.org>
4196
4197 * ospf_packet.c (ospf_packet_new): New function added to handle
4198 sending ospf packet by fifo queue structure.
4199 (ospf_packet_free), (ospf_fifo_new), (ospf_fifo_push),
4200 (ospf_fifo_pop), (ospf_fifo_head), (ospf_fifo_flush),
4201 (ospf_fifo_free): Likewise.
4202
42031999-06-21 Toshiaki Takada <takada@zebra.org>
4204
4205 * ospf_nsm.c (ospf_db_desc_timer): function added.
4206 (nsm_timer_set) function added.
4207 * ospf_dump.c (ospf_option_dump): function added.
4208 * ospf_packet.c (ospf_ls_req) (ospf_make_ls_req): function added.
4209
42101999-06-20 Toshiaki Takada <takada@zebra.org>
4211
4212 * ospf_lsa.c (ospf_lsa_more_recent): function added.
4213 * ospf_neighbor.h (struct ospf_neighbor): Change member ms_flag
4214 to dd_flags.
4215
42161999-06-19 Toshiaki Takada <takada@zebra.org>
4217
4218 * ospf_lsa.c: DEFUN (show_ip_ospf_database) Added.
4219 * ospf_interface.c (if_ospf_cost), (if_ospf_dead_interval),
4220 (if_ospf_hello_interval), (if_ospf_priority),
4221 (if_ospf_retransmit_interval), (if_ospf_transmit_delay)
4222 argument changed from NUMBER to <range>.
4223 DEFUN (if_ospf_network_broadcast),
4224 DEFUN (if_ospf_network_non_broadcast),
4225 DEFUN (if_ospf_network_point_to_multipoint),
4226 DEFUN (if_ospf_network_point_to_point) functions are combined to
4227 DEFUN (if_ospf_network).
4228
42291999-06-18 Toshiaki Takada <takada@zebra.org>
4230
4231 * ospf_lsa.c: ospf_add_router_lsa (), ospf_add_network_lsa (),
4232 ospf_lsa_lookup (), ospf_lsa_count () Added.
4233
42341999-06-15 Toshiaki Takada <takada@zebra.org>
4235
4236 * DEFUN (ospf_debug_ism), DEFUN (ospf_debug_nsm),
4237 DEFUN (no_ospf_debug_ism), DEFUN (no_ospf_debug_nsm) Added.
4238 `debug ospf ism' command shows debug message.
4239 `debuf ospf nsm' command shows debug message.
4240
42411999-06-14 Toshiaki Takada <takada@zebra.org>
4242
4243 * ospf_lsa.c: ospf_network_lsa () Added.
4244 ospf_lsa_checksum () Added.
4245 * DEFUN (ospf_debug_packet), DEFUN (no_ospf_debug_packet) Added.
4246 `debug ospf packet' command shows debug message.
4247
42481999-06-13 Toshiaki Takada <takada@zebra.org>
4249
4250 * ospf_packet.h: Remove struct ospf_ls_req {}, ospf_ls_upd {},
4251 ospf_ls_ack {}.
4252
42531999-06-11 Toshiaki Takada <takada@zebra.org>
4254
4255 * ospf_dump.c: fix IP packet length treatment.
4256
42571999-06-10 Toshiaki Takada <takada@zebra.org>
4258
4259 * ospf_ism.h: Add OSPF_ISM_EVENT_EXECUTE() Macro Added.
4260 * ospf_nsm.h: Add OSPF_NSM_EVENT_EXECUTE() Macro Added.
4261
4262 * ospf_packet.c: ospf_db_desc (), ospf_db_desc_send () Added.
4263 ospf_make_hello (), ospf_make_db_desc () Added.
4264 ospf_db_desc_proc () Added.n
4265
4266 * Database Description packet can be processed.
4267
42681999-06-08 Toshiaki Takada <takada@zebra.org>
4269
4270 * ospf_lsa.c: New file.
4271
42721999-06-07 Toshiaki Takada <takada@zebra.org>
4273
4274 * ospf_neighbor.c: ospf_fully_adjacent_count () Added.
4275
42761999-06-07 Kunihiro Ishiguro <kunihiro@zebra.org>
4277
4278 * ospf_spf.[ch]: New file.
4279
42801999-05-30 Kunihiro Ishiguro <kunihiro@zebra.org>
4281
4282 * ospf_zebra.c: Changed to use lib/zclient.c routines.
4283
4284 * ospf_zebra.h (zebra_start): Remove struct zebra.
4285
42861999-05-29 Kunihiro Ishiguro <kunihiro@zebra.org>
4287
4288 * ospfd.c (ospf_config_write): Add cast (unsigned long int) to
4289 ntohl for sprintf warning.
4290
42911999-05-19 Toshiaki Takada <takada@zebra.org>
4292
4293 * ospf_ism.c (ospf_dr_election): Join AllDRouters Multicast group
4294 if interface state changes to DR or BDR.
4295
42961999-05-14 Stephen R. van den Berg <srb@cuci.nl>
4297
4298 * ospf_main.c (signal_init): SIGTERM call sigint.
4299 (sigint): Logging more better message.
4300
43011999-05-12 Toshiaki Takada <takada@zebra.org>
4302
4303 * ospfd.c: Fix bug of `no router ospf' statement, it will work.
4304
43051999-05-11 Toshiaki Takada <takada@zebra.org>
4306
4307 * ospf_neighbor.c: ospf_nbr_free () Added.
4308
43091999-05-10 Toshiaki Takada <takada@zebra.org>
4310
4311 * ospfd.h: struct ospf_area { }, struct ospf_network { } Changed.
4312 * Fix bug of `no network' statement, it will work.
4313
43141999-05-07 Toshiaki Takada <takada@zebra.org>
4315
4316 * ospf_interface.c, ospf_zebra.c: Fix bug of last interface is not
4317 updated by ospf_if_update ().
4318
43191999-04-30 Kunihiro Ishiguro <kunihiro@zebra.org>
4320
4321 * Makefile.am (noinst_HEADERS): Add ospf_lsa.h for distribution.
4322
43231999-04-25 Toshiaki Takada <takada@zebra.org>
4324
4325 * ospf_interface.c: DEFUN (no_if_ospf_cost),
4326 DEFUN (no_if_ospf_dead_interval),
4327 DEFUN (no_if_ospf_hello_interval),
4328 DEFUN (no_if_ospf_priority),
4329 DEFUN (no_if_ospf_retransmit_interval),
4330 DEFUN (no_if_ospf_transmit_delay) Added.
4331
4332 interface_config_write () suppress showing interface
4333 default values.
4334
43351999-04-25 Kunihiro Ishiguro <kunihiro@zebra.org>
4336
4337 * ospf_dump.c (ospf_timer_dump): If thread is NULL return "inactive".
4338
4339 * ospfd.c (ospf_if_update): Fix bug of using ospf_area { } instead
4340 of ospf_network { }. So `router ospf' statement in ospfd.conf
4341 works again.
4342 (ospf_if_update): Call ospf_get_router_id for updating router ID.
4343
43441999-04-25 Toshiaki Takada <takada@zebra.org>
4345
4346 * ospf_interface.c: DEFUN (if_ospf_network) deleted.
4347 DEFUN (if_ospf_network_broadcast),
4348 DEFUN (if_ospf_network_non_broadcast),
4349 DEFUN (if_ospf_network_point_to_multipoint),
4350 DEFUN (if_ospf_network_point_to_point),
4351 DEFUN (no_if_ospf_network) Added.
4352
43531999-04-23 Toshiaki Takada <takada@zebra.org>
4354
4355 * ospfd.h: struct area { } changed to struct ospf_network { }.
4356 Add struct ospf_area { }.
4357 * ospfd.c: Add ospf_area_lookup_by_area_id (), ospf_network_new (),
4358 and ospf_network_free ().
4359 DEFUN (area_authentication), DEFUN (no_area_authentication) Added.
4360
43611999-04-22 Toshiaki Takada <takada@zebra.org>
4362
4363 * ospf_lsa.h: New file.
4364 * ospf_packet.h: LSA related struct definition are moved to
4365 ospf_lsa.h.
4366 * ospf_packet.c: ospf_verify_header () Added.
4367
43681999-04-21 Toshiaki Takada <takada@zebra.org>
4369
4370 * ospf_ism.c: ospf_elect_dr () and related function is changed.
4371 DR Election bug fixed.
4372 * ospf_dump.c: ospf_nbr_state_message (), ospf_timer_dump () Added.
4373 * ospfd.c: DEFUN (show_ip_ospf_neighbor) Added.
4374
43751999-04-19 Kunihiro Ishiguro <kunihiro@zebra.org>
4376
4377 * ospf_main.c (main): access_list_init () is added for vty
4378 connection filtering.
4379
43801999-04-16 Toshiaki Takada <takada@zebra.org>
4381
4382 * ospfd.c: DEFUN (show_ip_ospf_interface) Added.
4383 * ospf_neighbor.c: ospf_nbr_count () Added.
4384
43851999-04-15 Toshiaki Takada <takada@zebra.org>
4386
4387 * ospfd.h: struct ospf { } Changed.
4388 * ospfd.c: ospf_lookup_by_process_id () Deleted.
4389 * ospf_ism.c: ospf_wait_timer () Added. WaitTimer will work.
4390
43911999-04-14 Toshiaki Takada <takada@zebra.org>
4392
4393 * ospf_ism.c: ospf_elect_dr () Added.
4394 * ospf_network.c: ospf_if_ipmulticast () Added.
4395
43961999-04-11 Toshiaki Takada <takada@zebra.org>
4397
4398 * ospf_interface.c: interface_config_write (),
4399 DEFUN (if_ip_ospf_cost),
4400 DEFUN (if_ip_ospf_dead_interval),
4401 DEFUN (if_ip_ospf_hello_interval),
4402 DEFUN (if_ip_ospf_priority),
4403 DEFUN (if_ip_ospf_retransmit_interval) and
4404 DEFUN (if_ip_ospf_transmit_delay) Added.
4405
44061999-04-08 Toshiaki Takada <takada@zebra.org>
4407
4408 * ospf_dump.c: ospf_packet_db_desc_dump () Added.
4409 * ospf_neighbor.c: ospf_nbr_bidirectional () Added.
4410 * ospf_nsm.c: nsm_twoway_received () Added.
4411
44121999-04-02 Toshiaki Takada <takada@zebra.org>
4413
4414 * ospf_neighbor.c: New file.
4415 * ospf_neighbor.h: New file.
4416 * ospf_nsm.c: New file.
4417 * ospf_nsm.h: New file.
4418 * ospf_packet.c: Add ospf_make_header (), ospf_hello () and
4419 ospf_hello_send (). Now OSPFd can receive Hello and send Hello.
4420
44211999-03-27 Kunihiro Ishiguro <kunihiro@zebra.org>
4422
4423 * ospf_packet.c: Add ospf_recv_packet (). Now OSPF Hello can receive.
4424
44251999-03-19 Toshiaki Takada <takada@zebra.org>
4426
4427 * ospf_packet.c: New file.
4428 * ospf_packet.h: New file.
4429 * ospf_network.c: New file.
4430 * ospf_network.h: New file.
4431 * ospfd.h: move OSPF message structure has moved to ospf_packet.h.
4432
44331999-03-17 Kunihiro Ishiguro <kunihiro@zebra.org>
4434
4435 * ospf_zebra.c (ospf_zebra_get_interface): Fix for IPv6 interface
4436 address.
4437
4438 * Makefile.am (install-sysconfDATA): Overwrite install-sysconfDATA
4439 for install ospfd.conf.sample as owner read only file.
4440
4441 * ospf_main.c (usage): Change to use ZEBRA_BUG_ADDRESS.
4442
44431999-03-15 Toshiaki Takada <takada@zebra.org>
4444
4445 * ospf_ism.c: New file.
4446 * ospf_ism.h: New file.
4447 * ospf_dump.c: New file.
4448 * ospf_dump.h: New file.
4449
4450 * ospfd.h: Add (struct ospf), (struct config_network),
4451 (struct message) structure.
4452
4453 * ospf_interface.c: Add ospf_if_match_network ().
4454 * ospf_interface.h (struct ospf_interface): Change struct members.
4455
4456 * ospfd.c: ospf_lookup_by_process_id (), ospf_network_new (),
4457 DEFUN (network_area): Added.
4458
4459 * ospfd.conf.sample: Change sample configuration.
4460
44611999-03-05 Toshiaki Takada <takada@zebra.org>
4462
4463 * ospf_interface.c: New file.
4464 * ospf_interface.h: New file.
4465 * ospf_zebra.h: New file.
4466 * ospf_zebra.c: Add interface function for zebra daemon.
4467 * ospfd.c: New file.
4468
44691999-02-23 Kunihiro Ishiguro <kunihiro@zebra.org>
4470
4471 * Move IPv6 codes and files to ospf6d directory.
4472
44731999-02-18 Peter Galbavy <Peter.Galbavy@knowledge.com>
4474
4475 * syslog support added
4476
44771998-12-22 Toshiaki Takada <takada@zebra.org>
4478
4479 * ospfd.h: New file.
4480 * ospf_lsa.h: New file.
4481
44821998-12-15 Kunihiro Ishiguro <kunihiro@zebra.org>
4483
4484 * Makefile.am: New file.
4485 * ospf_main.c: New file.
4486