blob: 89f017a1c83e71847de9f655dbbe03098089da49 [file] [log] [blame]
Paul Jakma95509e62006-06-27 08:26:07 +000012006-06-27 Paul Jakma <paul.jakma@sun.com>
2
3 * route_types.awk: Remove setting the 'bare' numeric route type
4 in redist strings.
5
Paul Jakmae5cd7062006-06-15 12:25:55 +000062006-06-15 Paul Jakma <paul.jakma@sun.com>
7
8 * command.c: (cmd_describe_command_real) Fix leak, CID #38.
Paul Jakma8ce5cfd2006-06-15 12:41:02 +00009 * memory.h: Experimental, have XFREE macro NULL out the freed
10 pointer.
Paul Jakmac024fd02006-06-15 12:43:09 +000011 * linklist.c: (list_delete) call list_delete_all_node, don't
12 duplicate it.
Paul Jakma630c97c2006-06-15 12:48:17 +000013 * if.c: (if_flag_dump) remove the whitespace indentation, callers
14 should provide.
Paul Jakmae5cd7062006-06-15 12:25:55 +000015
Paul Jakma35cfc902006-05-28 08:08:24 +0000162006-05-28 Paul Jakma <paul.jakma@sun.com>
17
18 * zebra.h: Include inttypes.h rather than stdint.h, best practice
19 according to the autoconf manual.
20 Add UINT*_MAX defines for older platforms lacking these (FBSD 4)
Paul Jakmad09552d2006-05-28 08:15:46 +000021 * memory.c: malloc.h is deprecated in favour of stdlib.h, however
22 we still need it on GNU Libc for mallinfo().
Paul Jakmaa4b30302006-05-28 08:18:38 +000023 * vty.c: (vty_log/vty_log_fixed) dont crash if called when vty
24 hasn't been initiliased.
Paul Jakmafb66b292006-05-28 08:26:15 +000025 * log.c: (general) Add support for Sun libc printstack().
26 (hex_append) make the cpp conditional on general HAVE_STACK_TRACE
27 define.
28 (zlog_backtrace_sigsafe) Ditto. Add printstack() version of the
29 the DUMP macro in this function.
Paul Jakma35cfc902006-05-28 08:08:24 +000030
Andrew J. Schorr9c378512006-05-21 04:04:49 +0000312006-05-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
32
33 * if.h: (struct connected) Document the meaning of the
34 ZEBRA_IFC_REAL and ZEBRA_IFC_CONFIGURED flags.
35
Paul Jakma9c42a6e2006-06-27 07:52:03 +0000362006-05-23 Paul Jakma <paul.jakma@sun.com>
37
38 * route_types.txt: New file, table of ZEBRA_ROUTE definitions.
39 * route_types.awk: New script, to parse previous and generate
40 (for now) redistribute string defines.
41 * Makefile.am: build route_types.h using previous two, ala
42 memtypes.h, include the script and table file in EXTRA_DIST.
43 * command.h: pull in route_types.h, add a REDIST_STR define.
44
Paul Jakmad6d672a2006-05-15 16:56:51 +0000452006-05-15 Paul Jakma <paul.jakma@sun.com>
46
47 * log.c: (general) Generalise struct zebra_route_desc into
48 struct zebra_desc_table and, similar to route_types, add a
49 command_types table to describe Zserv protocol commands.
50 (route_types[]) use a macro to use designated initialisers
51 while avoiding tedious duplication.
52 (zserv_command_string) lookup string from zebra_desc_table,
53 similar to zebra_route_string
54 * zebra.h: Add declaration for zserv_command_string, adjust the
55 comments to reflect zebra_desc_table.
56
Paul Jakmad16e0432006-05-15 10:56:46 +0000572006-05-13 Paul Jakma <paul.jakma@sun.com>
58
59 * vty.c: (vty_describe_command) CID #39 fix was too hasty, just
60 cause it /can/ leak doesn't mean it always will have, check
61 first.
62
Paul Jakma9376c342006-05-12 23:17:38 +0000632006-05-12 Paul Jakma <paul.jakma@sun.com>
64
65 * plist.c: (vty_prefix_list_uninstall) Fix potential NULL deref
66 of prefix and typestr strings, Coverity CID #3.
Paul Jakmad2519962006-05-12 23:19:37 +000067 * command.c: (cmd_complete_command_real) Fix leak of cmd_vector
68 in error case, Coverity CID #37.
Paul Jakma5fc60512006-05-12 23:24:09 +000069 (cmd_describe_command_real) Fix return of freed pointer when
70 no-match, CID #55.
Paul Jakma2fe8aba2006-05-12 23:22:01 +000071 * vty.c: (vty_describe_command) fix leak of describe vector in
72 error path, CID #39.
Paul Jakma9376c342006-05-12 23:17:38 +000073
Paul Jakma6cf0cf02006-03-30 14:43:17 +0000742006-03-30 Paul Jakma <paul.jakma@sun.com>
75
76 * command.h: (DEFUN_CMD_FUNC_TEXT) Annotate arguments as
77 potentially being unused.
Paul Jakma213d8da2006-03-30 14:45:47 +000078 * workqueue.c: (work_queue_run) fix line length of comment
Paul Jakma6cf0cf02006-03-30 14:43:17 +000079
Paul Jakmad4ce4f62006-03-30 14:30:19 +0000802006-03-27 Paul Jakma <paul.jakma@sun.com>
81
82 * memtypes.awk: Fix gensub call, g should be a string..
83
Paul Jakma68784532006-03-30 14:25:24 +0000842006-03-25 Paul Jakma <paul.jakma@sun.com>
85
86 * workqueue.h: (struct work_queue) Remove status field and
87 state flag, no longer used.
88
Paul Jakmab51f1262006-03-30 14:09:38 +0000892006-03-19 Paul Jakma <paul.jakma@sun.com>
90
91 * memtypes.c: Add MTYPE_BGP_SYNCHRONISE.
92
Paul Jakmacec0c4f2006-03-30 13:58:05 +0000932006-03-16 Paul Jakma <paul.jakma@sun.com>
94
95 * Makefile.am: Fix -version-info argument.
96
Paul Jakma41be32b2006-03-30 13:53:59 +0000972006-03-15 Paul Jakma <paul.jakma@sun.com>
98
99 * memory.c: (mtype_memstr) new helper function to
100 return human friendly string for a byte count.
101 (mtype_stats_alloc) new function, for users to retrieve
102 number of objects allocated.
103 (show_memory_mallinfo) New function, show mallinfo statistics
104 if available.
105 (show_memory_all_cmd) Call show_memory_mallinfo, if mallinfo
106 is available.
107 * memory.h: Export mtype_memstr and mtype_stats_alloc.
108 Provide a define for a reasonable buffer size for
109 mtype_memstr.
110
Paul Jakma924f9d32006-03-30 13:25:52 +00001112006-03-14 Paul Jakma <paul.jakma@sun.com>
112
113 * privs.c: (zprivs_caps_init) Change user IDs before lowering
114 privileges, while this seems to work on Linux, on Solaris
115 it rightfully refuses due to PRIV_PROC_SETID having been
116 dropped.
Paul Jakma86228fd2006-03-30 15:00:30 +0000117 * command.h: Add the struct host global exported from command.c
Paul Jakma924f9d32006-03-30 13:25:52 +0000118
Paul Jakma478ccfd2006-03-06 18:18:37 +00001192006-03-06 Paul Jakma <paul.jakma@sun.com>
120
121 * if.h: export show_address_cmd, for anyone who wishes to use
122 it.
123
Paul Jakma5a54df92006-02-21 01:37:14 +00001242006-02-21 Paul Jakma <paul.jakma@sun.com>
125
126 * sockunion.c: (sockunion_{su2str,log}) Use XSTRDUP.
127 Particularly with _su2str, as that string gets XFREEd,
128 which can be annoying if run debug code in memory.c.
129
paul306d8892006-02-02 17:50:19 +00001302006-02-02 Paul Jakma <paul.jakma@sun.com>
131
132 * workqueue.h: (struct work_queue) Remove the delay field.
133 It served no purpose and just introduced bad behaviour.
134 Should be excised before its allowed to escape into 1.0.
135 This removes need for the 'flood' and runs_since_clear
136 fields.
137 * workqueue.c: (general) excise delay factor between queue
138 runs, hence the 'flood' crap too.. See above.
139
paul581a02a2006-01-19 20:22:16 +00001402006-01-19 Paul Jakma <paul.jakma@sun.com>
141
142 * stream.c: (stream_getq_from) should use POSIX uint64_t
143 not u_int64_t. Latter is neither a traditional BSD type, nor
144 a POSIX type.
145
vincenteac314c2006-01-17 23:39:04 +00001462006-01-17 Vincent Jardin <vincent.jardin@6wind.com>
147
148 * md5.c: Don't forget to keep const.
149 * regex.c: Cleanup code and remove warnings.
150
paul7d0b0c42006-01-17 17:40:45 +00001512006-01-17 Paul Jakma <paul.jakma@sun.com>
152
153 * md5.{c,h}: (md5_loop) Is better off taking a void * and doing
154 cast to byte wise type internally, avoids needs for casts
155 in users.
paul789f78a2006-01-17 17:42:03 +0000156 * vty.c: (no_terminal_monitor_cmd) New ALIAS for
157 terminal_no_monitor, in the more normal negating format,
158 to be kind to my fingers.
159 (vty_init) install new ALIAS.
pauld2110862006-01-17 17:43:18 +0000160 * zclient.{c,h}: (zclient_create_header) export this, seems others
161 could use it (in lieu of more complete zserv helpers).
paul7d0b0c42006-01-17 17:40:45 +0000162
paulc1b98002006-01-16 01:54:02 +00001632006-01-16 Paul Jakma <paul.jakma@sun.com>
164
165 * zclient.h: Update the Zserv protocol header with a version
166 field. Define the old command field to be a 'marker', to
167 allow old Zserv and updated Zserv to be differentiated.
168 Future updates will bump the version field obviously. New
169 command field is made wider. Try to stop using the
170 'zebra_size_t' typedef in the callbacks.
171 * zclient.c: Update to read/write new format header.
172
paulc77d4542006-01-11 01:59:04 +00001732006-01-11 Paul Jakma <paul.jakma@sun.com>
174
175 * if.h: (struct interface) expand flags to 8 bytes.
176 * zclient.c: (zebra_interface_{add,state}_read) stream read of
177 interface flags now need to use stream_getq.
178 (zebra_interface_if_set_value) ditto
179
paul4b201d42006-01-10 14:35:19 +00001802006-01-10 Paul Jakma <paul.jakma@sun.com>
181
182 * stream.c: (stream_new) Allocate stream data as seperate object.
183 (stream_free) free the data.
184 (stream_resize) new function, resize stream to new size.
185 (stream_{get,put}q*) new functions to get/put quad word size
186 types.
187 * stream.h: (struct stream) make data seperate from the stream.
188 Export new stream_resize and quad-word get/put functions.
189
gdtf80a0162005-12-29 16:03:32 +00001902005-12-29 Greg Troxel <gdt@fnord.ir.bbn.com>
191
192 * vty.c (vty_hello): add cast to quiet lint (from David Young)
193
paul00c290e2005-11-26 09:21:43 +00001942005-11-26 Paul Jakma <paul.jakma@sun.com>
195
196 * buffer.c: (struct buffer_data) change gcc zero array
197 declaration to C99 incomplete array.
198 * stream.h: (struct stream) same
199
paul6e0f1b92005-11-24 12:47:17 +00002002005-11-24 Paul Jakma <paul.jakma@sun.com>
201
202 * privs.c: (zcaps2sys/solaris) remove unused variable.
203 (zprivs_state_caps/solaris) Format string missing a
204 specifier.
paulb6026072005-11-24 12:51:24 +0000205 * zebra.h: s/u_int/unsigned int/, u_int is a BSD type, defining
206 __USE_BSD on Linux pulls in further things from netinet/ip.h
207 which dont preprocess for some reason. There is no C99
208 shorthand type directly equivalent to u_int afaict, so don't
209 use it.
paul6e0f1b92005-11-24 12:47:17 +0000210
paul190880d2005-11-14 12:07:47 +00002112005-11-14 Paul Jakma <paul.jakma@sun.com>
212
paul889e9312005-11-14 14:46:35 +0000213 * (general) pass struct work-queue to callback functions.
214 * workqueue.h: (struct work_queue) move the state flag
215 variables to end.
216 Add an opaque pointer to spec, for user-data global to the
217 queue.
218 Pass reference to work_queue to all callbacks.
219 * workqueue.c: (work_queue_item_remove) pass ref to workqueue
220 to user callbacks.
221 (work_queue_run) ditto.
222
2232005-11-14 Paul Jakma <paul.jakma@sun.com>
224
paul190880d2005-11-14 12:07:47 +0000225 * (general) Add state to detect queue floods. There's no sense
226 trying to be sparing of CPU resources, if the queue is
227 flooding and using ever more memory resources. we should just
228 get on with clearing the queue.
229 The sense of delay and hold were wrong way around, fix.
230 * workqueue.h: (struct work_queue) Add status bitfield. Add
231 'flood' integer to workqueue spec. Add runs_since_clear
232 counter to workqueue.
233 * workqueue.c: (work_queue_new) set defaults for delay, hold
234 and flood.
235 (work_queue_add) initial schedule should use delay, not hold.
236 (show_work_queues) Print flood field, conserve whitespace.
237 (work_queue_unplug) use delay, not hold.
238 (work_queue_run) consecutive runs should be seperated by hold
239 time, not delay.
240 Keep track of number of consecutive runs, go into 'overdrive'
241 if queue is being flooded, we can't avoid making heavy use of
242 resources, better to use CPU than ever more RAM.
paul76367ea2005-11-14 14:05:35 +0000243 * zebra.h: [bug #231] include stdint, if its there.
paul190880d2005-11-14 12:07:47 +0000244
2452005-11-05 Paul Jakma <paul.jakma@sun.com>
pauldb29ae52005-11-12 22:36:41 +0000246
247 * routemap.c: (vty_show_route_map_entry) call action is
248 seperate from exit action, latter should still be printed
249 regardless of whether a call is specified.
250
paul34204aa2005-11-03 09:00:23 +00002512005-11-03 Paul Jakma <paul.jakma@sun.com>
252
253 * zebra.h: BSD BYTE_ORDER define isn't available everywhere,
254 define if needs be.
255 * checksum.h: new file. checksum.c exports in_cksum, provide
256 a header for it.
257 * checksum.c: (in_cksum) callers shouldn't have to know it uses
258 a u_short internally, change to void *.
259 * Makefile.am: Add checksum.h
260 * command.h: remove bogus trailling slash.
261 * md5.c: (general) Update it for the twentieth century. ANSI
262 declarations are widely supported now.. Don't include system
263 headers, only include zebra.h. Use POSIX types (the
264 alternative is to define u_int64_t in a portable way - rest
265 of Quagga needs same cleanup).
266 Make endian-conditional code be compiler conditional rather
267 than preprocessor conditional, so that breakage gets noticed
268 quicker.
269 * md5.h: POSIX types. Get rid of the odd __P() non-ANSI capable
270 compiler compatibility hack.
paul9c4f1c62005-11-03 11:04:07 +0000271 * if.c: (connected_free) use MTYPE for connected label.
paula49ad232005-11-03 13:00:54 +0000272 * memtypes.c: Add MTYPE_CONNECTED_LABEL
273 * memtypes.h: Update auto-built file.
paul34204aa2005-11-03 09:00:23 +0000274
paul02416842005-10-26 05:05:16 +00002752005-10-26 Paul Jakma <paul.jakma@sun.com>
276
277 * (general) Cleanup a some calls to XFREE,strdup, etc. to use
278 the memory.h macros.
279 * memtypes.c: Add MTYPE_IF_RMAP_NAME, MTYPE_PQUEUE,
280 MTYPE_PQUEUE_DATA and MTYPE_HOST.
281 * memtypes.h: update auto-built file.
282 * if_rmap.c: Use MTYPE_IF_RMAP_NAME.
283 * pqueue.c: Use the two MTYPE_PQUEUE mtypes for allocations.
paul05865c92005-10-26 05:49:54 +0000284 * command.c: Use MTYPE_HOST, MTYPE_STRVEC. Some other fixups,
285 including fixing some likely leaks in config_write_file.
286 * vty.c: memory macro usage fixes.
287 (vty_read_config) fix leak where relative config file is
288 specified.
paul02416842005-10-26 05:05:16 +0000289
ajs24065a32005-10-20 22:28:14 +00002902005-10-20 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
291
ajsc188c372005-10-21 02:57:41 +0000292 * sockopt.c: (setsockopt_multicast_ipv4) If IP_ADD_MEMBERSHIP
293 fails with errno equal to EADDRINUSE, then issue an info
294 message and try IP_DROP_MEMBERSHIP followed by IP_ADD_MEMBERSHIP.
295
2962005-10-20 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
297
ajs24065a32005-10-20 22:28:14 +0000298 * memory.c: (show_memory_vty) Omit zero statistics. Print separators
299 only if some non-zero stats have been printed in between.
300 (show_separator) New function to print a separator.
301 (show_memory_all) Keep track of whether a separator is needed
302 between the different memory statistics groups.
303
ajs50123222005-10-18 20:19:13 +00003042005-10-18 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
305
306 * memtypes.h: Add MTYPE_OSPF_VERTEX_PARENT (to match memtypes.c).
307
pauleb3da6d2005-10-18 04:20:33 +00003082005-10-18 Paul Jakma <paul.jakma@sun.com>
309
310 * memtypes.c: (memory_list_ospf) Add MTYPE_OSPF_VERTEX_PARENT.
311
ajsf52d13c2005-10-01 17:38:06 +00003122005-10-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
313
314 * zebra.h: Declare new functions zebra_route_string() and
315 zebra_route_char().
316 * log.c: (zroute_lookup,zebra_route_string,zebra_route_char) New
317 functions to map zebra route numbers to strings.
318
vincent5e4914c2005-09-29 16:34:30 +00003192005-09-29 Alain Ritoux <alain.ritoux@6wind.com>
320
321 * smux.[ch]: allow to retreive global OID (identified by <0
322 namelen).
323
paulceacedb2005-09-29 14:39:32 +00003242005-09-29 Paul Jakma <paul.jakma@sun.com>
325
326 * zebra.h: Solaris capabilities requires priv.h to be included.
327 * privs.{c,h}: Add support for Solaris Least-Privileges.
328 privs.h: Reduce some of the abstract capabilities, which do
329 not have rough equivalents on both systems. Rename the net
330 related caps to _NET, as they should have been in first
331 place.
332 (zprivs_terminate) should take the zebra_privs_t as argument so
333 that it can update change pointer.
334 Add an additional privilege state, ZPRIVS_UNKNOWN.
335 * privs.c: (various capability functions) Add
336 Solaris privileges variants.
337 (zprivs_state) Use privs.c specific generic types to
338 represent various capability/privilege related types, so that
339 each can be typedef'd as appropriate on each platform.
340 (zprivs_null_state) static added, to hold the state the null
341 method should report (should be raised by default, and
342 LOWERED if zprivs_terminate has been called)
343 (zprivs_state_null) Report back the zprivs_null_state.
344 (cap_map) Make it able to map abstract capability to multiple
345 system capabilities.
346 (zcaps2sys) Map to abstract capabilities to multiple system
347 privileges/capabilities.
348 (zprivs_init) move capability related init to seperate
349 function, zprivs_caps_init.
350 (zprivs_terminate) ditto, moved to zprivs_caps_terminate.
351 Set the change_state callback to the NULL state, so the
352 user can continue to run and use the callbacks.
353
vincentfbf5d032005-09-29 11:25:50 +00003542005-09-29 Alain Ritoux <alain.ritoux@6wind.com>
355
356 * filer.c: show protocol name in filter_show()
357 * plist.c: show protocol name in vty_show_prefix_entry()
358 * routemap.c: show protocol name in vty_show_route_map_entry()
359 * vty.c: in vty_command(), show protocol name if command unknown
360
vincentc1a03d42005-09-28 15:47:44 +00003612005-09-28 Alain Ritoux <alain.ritoux@6wind.com>
362
363 * md5-gnu.h: removed
364 * md5.h: replaces md5-gnu.h
365 * Makefile.am: use correct md5.h
366 * md5.c: import from WIDE
367
paul75b2dd02005-09-21 14:06:35 +00003682005-09-21 Paul Jakma <paul.jakma@sun.com>
369
370 * memtypes.{c,h}: Add MTYPE_AS_SEG_DATA.
371
hassoe6a4feb2005-09-19 09:53:21 +00003722005-09-19 Hasso Tepper <hasso at quagga.net>
373
374 * str.[ch]: Add strndup() from glibc.
375
pauleb820af2005-09-05 11:54:13 +00003762005-09-05 Paul Jakma <paul.jakma@sun.com>
377
378 * command.c: (install_element) be more robust. Eg, cmd_init
379 need not have been called, some applications may use other
380 library subsystems, which call install_element, without the
381 application wanting commands and hence not calling cmd_init.
382
paul1e836592005-08-22 22:39:56 +00003832005-08-22 Hugo Santos <hsantos@av.it.pt>
384
385 * command.h: (enum node_type) Add BGP_IPV6M_NODE
386 * command.c: (node_parent) Handle BGP_IPV6M_NODE node
387 (config_exit, config_end) ditto
388 * vty.c: (vty_end_config) Handle BGP_IPV6M_NODE node
389
gdt0312f0c2005-08-10 13:20:03 +00003902005-08-10 Greg Troxel <gdt@fnord.ir.bbn.com>
391
392 * getopt.h: Don't declare getopt (rather than getopt_long), since
393 quagga doesn't need it.
394 * getopt.c (getopt): Don't define getopt.
395
ajs330009f2005-07-26 14:35:37 +00003962005-07-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs7907c6c2005-07-26 19:55:31 +0000397 * prefix.c: (prefix_ipv4_new, prefix_ipv6_new): Call prefix_new
398 to allocate the memory to make sure that all struct prefix pointers
399 point to objects of the same length (avoids memory overruns
400 on struct prefix assignments).
401 (prefix_ipv4_free, prefix_ipv6_free): Simply call prefix_free.
402 It is interesting to note that these functions are never actually
403 called anywhere in the code. Instead prefix_free was already
404 being called directly, despite the previous MTYPE incompatibility.
405
4062005-07-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs330009f2005-07-26 14:35:37 +0000407
408 * prefix.c: (ip_masklen) While loop should test that 'pnt' pointer is
409 in range before dereferencing it.
410
paul510e2092005-06-24 01:20:25 +00004112005-06-24 Pawel Worach <pawel.worach@gmail.com>
412
413 * getopt.h: add further tests for full getopt declaration on
414 various systems.
415
paul354f3b62005-06-18 16:55:20 +00004162005-06-18 Paul Jakma <paul.jakma@sun.com>
417
418 * memtypes.h: update autobuilt file to match memtypes.c changes
419
paul200df112005-06-01 11:17:05 +00004202005-06-01 Paul Jakma <paul.jakma@sun.com>
421
422 * memtypes.c: Add MTYPE_BGP_PROCESS_QUEUE and
423 MTYPE_BGP_CLEAR_NODE_QUEUE
424
paul8176c192005-05-24 09:33:52 +00004252005-05-24 Paul Jakma <paul@dishone.st>
426
427 * memtypes.h: update this auto-built file. (maybe we should just
428 remove it, is GNU awk a terrible dependency to have?)
429
pauld5c92532005-05-23 12:33:58 +00004302005-05-23 Paul Jakma <paul@dishone.st>
431
432 * memtypes.awk: use character classes, which work correctly in
433 all LC_COLLATE environments, unlike A-Z, which doesnt work in
434 eg estonian collate order. Reported by Hasso.
pauld4f09602005-05-23 12:43:34 +0000435 * routemap.c: (rmap_onmatch_goto) fix crash if 'continue' command
436 is used, which does not supply an argv[0].
437 this is a backport candidate /iff/ the trailing ; is removed
438 from VTY_GET_INTEGER_RANGE
439 * vty.h: fix the VTY_GET macros, do {..} while(0) so they have
440 correct function like syntax in usage.
paul269d74f2005-05-23 13:42:46 +0000441 * workqueue.h: Add a WQ_QUEUE_BLOCKED item_status return code,
442 to allow a queue function to indicate the queue is not
443 ready/blocked - rather than any problem with the item at hand.
444 Add a notion of being able to 'plug' and 'unplug' a queue.
445 Add helpers to plug/unplug a queue.
446 Add a completion callback, to be called when a queue is emptied.
447 * workqueue.c: (work_queue_new) remove useless list_free.
448 (work_queue_schedule) new internal helper function to schedule
449 queue, if appropriate.
450 (work_queue_add) use work_queue_schedule
451 (show_work_queues) Print 'P' if queue is plugged.
452 (work_queue_plug) new API function, plug a queue - ie prevent it
453 from 'drained' / processed / scheduled.
454 (work_queue_unplug) unplug a queue, allowing it to be drained
455 / scheduled / processed again.
456 (work_queue_run) Add support for WQ_QUEUE_BLOCKED.
457 Add comment for RETRY_NOW case.
458 Make hysteris more aggresive in ramping up granularity, improves
459 performance significantly.
460 Add support for calling completion callback when queue is emptied,
461 possibly useful for knowing when to unplug a queue.
pauld5c92532005-05-23 12:33:58 +0000462
pauldc818072005-05-19 01:30:53 +00004632005-05-19 Paul Jakma <paul@dishone.st>
464
465 * thread.c: (thread_cancel_event) the number of pending events
466 cancelled is potentially useful information, dont throw it away,
467 pass it back to the caller.
paul2ba9a372005-05-19 01:37:50 +0000468 * sockunion.c: (sockunion_getsockname) use MTYPE_SOCKUNION, not TMP
469 (sockunion_getpeername) ditto
paule387e662005-05-19 02:13:28 +0000470 * memtypes.c: (memory_list_bgp) add MTYPE_BGP_PEER_HOST
pauldc818072005-05-19 01:30:53 +0000471
paul024a7f02005-05-15 14:25:08 +00004722005-05-15 Paul Jakma <paul@dishone.st>
473
474 * getopt.h: It's not just __GNU_LIBRARY__ which defines
475 getopt, eg __EXTENSIONS__ does too on SunOS. It still seems
476 awfully fragile though.
477 * getopt.c: include zebra.h after config.h, before including
478 getopt.h so that things at least are consistent..
479 * getopt1.c: ditto
480
paul42c98192005-05-07 02:22:51 +00004812005-05-07 Yar Tikhiy <yar@comp.chem.msu.su>
482
483 * sockopt.c: Add support for BSD style ifindex in ip_mreq.
484
paul8cc41982005-05-06 21:25:49 +00004852005-05-06 Paul Jakma <paul@dishone.st>
486
487 * (general) extern and static'ification of functions in code and
488 header.
489 Cleanup any definitions with unspecified arguments.
490 Add casts for callback assignments where the callback is defined,
491 typically, as passing void *, but the function being assigned has
492 some other pointer type defined as its argument, as gcc complains
493 about casts from void * to X* via function arguments.
494 Fix some old K&R style function argument definitions.
495 Add noreturn gcc attribute to some functions, as appropriate.
496 Add unused gcc attribute to some functions (eg ones meant to help
497 while debugging)
498 Add guard defines to headers which were missing them.
499 * command.c: (install_node) add const qualifier, still doesnt shut
500 up the warning though, because of the double pointer.
501 (cmp_node) ditto
502 * keychain.c: (key_str2time) Add GET_LONG_RANGE() macro, derived
503 fromn vty.h ones to fix some of the (long) < 0 warnings.
504 * thread.c: (various) use thread_empty
505 (cpu_record_hash_key) should cast to uintptr_t, a stdint.h type
506 * vty.h: Add VTY_GET_IPV4_ADDRESS and VTY_GET_IPV4_PREFIX so they
507 removed from ospfd/ospf_vty.h
508 * zebra.h: Move definition of ZEBRA_PORT to here, to remove
509 dependence of lib on zebra/zserv.h
510
hassoe7fe8c82005-05-06 19:33:35 +00005112005-05-06 Hasso Tepper <hasso at quagga.net>
512
513 * sockunion.c: Fix warning message.
514
paul0dab9302005-05-03 09:07:56 +00005152005-05-03 Paul Jakma <paul@dishone.st>
516
517 * stream.h: Add comment about the special zero-ing ability of
518 stream_put.
519 (stream_recvmsg, stream_write) should return ssize_t and size_t
520 respectively. Should both be extern linkage.
521 (stream_recvfrom) Stream aware wrapper around recvfrom, in style
522 of stream_read_try.
523 * stream.c: (stream_recvfrom) new function, wrapper around recvfrom.
524 (stream_recvmsg, stream_write) ssize_t and size_t return values
525
ajs3df53782005-04-27 16:29:54 +00005262005-04-27 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
527
ajs8b70d0b2005-04-28 01:31:13 +0000528 Add wall-clock timing statistics to 'show thread cpu' output.
529 * thread.h: Define struct rusage_t to contain wall-clock time
530 and cpu time. Change GETRUSAGE macro to collect both pieces
531 of data. Make appropriate changes to struct cpu_thread_history
532 to track CPU time and real time. Change proto for
533 thread_consumed_time to return real and cpu time elapsed.
534 And declare a new global variable 'struct timeval recent_time'.
535 * thread.c (struct timeval recent_time): New global timestamp variable.
536 (timeval_adjust): If timeout is negative, set to 0 (not 10
537 microseconds). And remove upper bound of 1,000,000 seconds, since
538 this does not seem to make any sense (and it breaks
539 funcname_thread_add_timer_timeval).
540 (timeval_cmp): Should return long, not int.
541 (vty_out_cpu_thread_history): Show CPU time and real time.
542 (cpu_record_hash_print): Calculate totals for CPU and real time.
543 (cpu_record_print): Change 'show thread cpu' title to show CPU and
544 real time.
545 (thread_timer_remain_second): Put current time in global recent_time.
546 (funcname_thread_add_timer_timeval): Fix assert. Replace 2-case
547 switch assignment with a ternary expression. Use global recent_time
548 variable. Fix use of timeval_adjust (previously, the value was not
549 actually being adjusted).
550 (thread_cancel): Add missing "break" statement in case
551 THREAD_BACKGROUND.
552 (thread_timer_wait): Use global recent_time value instead of calling
553 gettimeofday. And there's no need to check for negative timeouts,
554 since timeval_subtract already sets these to zero.
555 (thread_timer_process): Timers are sorted, so bail out once we
556 encounter a timer that has not yet popped. And remove some
557 extraneous asserts.
558 (thread_fetch): Do not process foreground timers before calling
559 select. Instead, add them to the ready list just after the select.
560 Also, no need to maintain a count of the number of ready threads,
561 since we don't care how many there are, just whether there's
562 one at the head of the ready list (which is easily checked).
563 Stick current time in global variable recent_time to reduce
564 the number of calls to gettimeofday. Tighten logic for
565 calculating the select timeout.
566 (thread_consumed_time): Now returns real time and puts the elapsed
567 cpu time in an additional argument.
568 (thread_should_yield): Use real (wall-clock) time to decide whether
569 to yield.
570 (thread_call): Maintain CPU and real time statistics.
571 * vty.c (vty_command): For slow commands, show real and cpu time.
572
5732005-04-27 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
574
ajs3df53782005-04-27 16:29:54 +0000575 * workqueue.c (show_work_queues): Remove unused gettimeofday call.
576
paul84369682005-04-27 12:39:27 +00005772005-04-27 Paul Jakma <paul.jakma@sun.com>
578
579 * workqueue.h: (struct work_queue_item) change retry_count to ran,
580 its a count of number item has been run.
581 * workqueue.c: (show_work_queues) Fix formating of slightly
582 bugfix: fix SIGFPE if wq->runs is 0.
583 (work_queue_run) retry logic was slightly wrong.
584 cycles.best is 0 initialy, granularity is 1, so update best
585 if cycles >= granularity, not just >.
paula7bca0f2005-04-27 12:44:54 +0000586 * memory.h: memtypes is built source, default includes points to
587 top_builddir, so we should refer to lib/memtypes.h
588
ajs07334da2005-04-26 17:14:30 +00005892005-04-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
590
591 * buffer.c (buffer_write): Comment out call to buffer_flush_available.
592 This should speed up buffering at the expense of a possible increase
593 in latency in flushing the data if inside a long-running thread.
594
paulab59ae32005-04-25 13:52:26 +00005952005-04-25 Paul Jakma <paul.jakma@sun.com>
596
paul147aff02005-04-25 16:29:10 +0000597 * workqueue.{c,h}: Helper API for setting up and running queues via
598 background threads.
599 * command.c: install the 'show workqueues' command
600 * memtypes.c: Add work queue mtypes, and a rib-queue type for
601 a zebra rib work queue.
602 * memtypes.h: Updated to match memtypes.c
paulab59ae32005-04-25 13:52:26 +0000603 * Makefile.am: Refer to source files via srcdir variable, fix
604 out-of-tree build breakage.
paul147aff02005-04-25 16:29:10 +0000605 Add new workqueue files to build.
paul2c1de2a2005-04-25 14:02:44 +0000606 * memory.c: Make the string field much wider
607 * memtypes.c: Correct the prefix list str/entry strings
paul907873a2005-04-25 14:53:46 +0000608 * thread.c: Kill unused TIMER_NO_SORT bits
paulab59ae32005-04-25 13:52:26 +0000609
ajsfb9e46b2005-04-22 14:23:34 +00006102005-04-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
611
612 * thread.h: Fix type for struct thread_master add_type: should be
613 unsigned char. Also, add some documentation of thread_add_background
614 args. And remove extraneous declaration of
615 show_thread_work_queues_cmd.
616
paula48b4e62005-04-22 00:43:47 +00006172005-04-22 Paul Jakma <paul.jakma@sun.com>
618
paule1e53ed2005-04-22 13:44:17 +0000619 * memory.h: Move include of memtypes.h to after the definition of
620 struct memory_list, gcc 4.0 doesn't like arrays of incomplete
621 types.
paula48b4e62005-04-22 00:43:47 +0000622 * thread.h: Add background thread type and thread_add_background
623 macro and accompanying funcname_... function.
624 export thread_should_yield, background threads can use it.
625 Lower thread yield time to 10ms, 100ms is noticeable lag and
626 a thread would only be /starting/ to finish sometime afterward.
627 * thread.c: (general) Add background thread type and schedule
628 nearly all thread types through the ready list for fairness.
629 (timeval_adjust) static qualifier missing
630 (vty_out_cpu_thread_history) add support for printout of
631 background threads
632 (show_thread_cpu) ditto.
633 (thread_master_debug) add debug of background list
634 (thread_master_create) fixup long line
635 (thread_add_unuse) add asserts for required state.
636 (thread_master_free) free background thread list
637 (funcname_thread_add_timer_timeval) make generic, able to
638 support arbitrary timer-like thread types.
639 (funcname_thread_add_timer) pass thread type to .._add_timer_timeval
640 (funcname_thread_add_timer_msec) ditto
641 (funcname_thread_add_background) Add a background thread, with an
642 optional millisecond delay factor, using .._add_timer_timeval.
643 (thread_cancel) Add background thread type.
644 Move the thread_list_delete common to all cases to bottom of
645 function, after the switch statement..
646 (thread_cancel_event) indent
647 (thread_timer_wait) Static qualifier, and make it able to cope
648 with arbitrary timer-like thread lists, so its of use to
649 background threads too.
650 (thread_process_fd) static qualifier. Again, make it take a list
651 reference rather than thread_master. Fix indentation.
652 (thread_timer_process) Check for ready timer-like threads in the
653 given list and move them on to the ready list - code originally
654 embedded in thread_fetch.
655 (thread_fetch) Schedule all threads, other than events, through
656 the ready list, to ensure fairness. Timer readying code moved to
657 thread_timer_process so it can be reused for background threads.
658 Remove the unneeded quagga_sigevent_process, as pointed out by
659 John Lin <john.ch.lin@gmail.com>.
660 (thread_should_yield) make this available.
661
ajs924b9222005-04-16 17:11:24 +00006622005-04-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
663
664 * thread.h (thread_consumed_time): Declare new function to calculate
665 elapsed microseconds.
666 * thread.c (thread_consumed_time): Must be global not static so we
667 can call it from lib/vty.c:vty_command.
668 (thread_should_yield): Surround with `#if 0' to make clear that this
669 function is not currently being used anywhere.
670 (thread_call): If CONSUMED_TIME_CHECK is defined, print a CPU HOG
671 warning message if the thread takes more than CONSUMED_TIME_CHECK
672 microseconds.
673 * vty.c (vty_command): If CONSUMED_TIME_CHECK is defined, print a CPU
674 HOG warning message if the command takes more than CONSUMED_TIME_CHECK
675 microseconds.
676
pauldc830cb2005-04-16 15:51:05 +00006772005-04-16 Paul Jakma <paul@dishone.st>
678
679 * memtypes.c: the comment about use of comments in the comments
680 headers was causing comment within comment warnings from compiler
681 * memtypes.awk: Add extensive comments on the file format for
682 memtypes.c.
683 tighten the pattern for the MTYPE matching action (suggestion from
684 Andrew) and tighten which field we try the match on.
685
paul2fd2fd52005-04-15 11:47:15 +00006862005-04-15 Paul Jakma <paul@dishone.st>
687
688 * memtypes.c: The new, unified location for memory type definitions.
689 The memtype enum and declarations for memory_lists are built from
690 this automatically and put into memtypes.h.
691 * memtypes.awk: New script to generate memtypes.h from memtypes.c
692 * memory.h: Finally, the enum can banished!
693 * memory.c: Finally, the seperate mtype memory_list definitions can
694 be banished!
695 (log_memstats) Increase width of fields
696 (show_memory_zebra_cmd) display zebra specific memory types.
697 Increase width of fields.
698 * Makefile.am: Add memtypes.{c,h}, add BUILT_SOURCES for memtypes.h
699 Add a rule to build memtypes.h using memtypes.awk.
700 Add memtypes.awk to EXTRA_DIST.
pauld45f1f12005-04-15 22:18:37 +0000701 memtypes.awk is gawk dependent, use the GAWK automake var.
702 * memtypes.h: New file, auto-generated, checked in for convenience.
paul2fd2fd52005-04-15 11:47:15 +0000703
ajs634f9ea2005-04-11 15:51:40 +00007042005-04-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
705
706 * zclient.h (struct zclient): Add two fields to support non-blocking
707 I/O: struct buffer *wb, and struct thread *t_write.
708 (zclient_free): Remove function.
709 (zebra_redistribute_send): Change 2nd arg from socket fd to
710 struct zclient * (needed to support non-blocking I/O and buffering).
711 (zclient_send_message): New function to send an arbitrary
712 message with non-blocking I/O.
713 * zclient.c (zclient_new): Create write buffer.
714 (zclient_free): Remove unused function.
715 (zclient_stop): Must cancel new t_write thread. Also, reset
716 all buffers: ibuf, obuf, and wb.
717 (zclient_failed): New helper function for typical error handling.
718 (zclient_flush_data): New thread to flush queued data.
719 (zclient_send_message): New function to send the message in
720 zclient->obuf to zebra using non-blocking I/O and buffering.
721 (zebra_message_send, zapi_ipv4_route, zapi_ipv6_route): Use
722 new zclient_send_message function instead of calling writen.
723 (zclient_start): Set socket non-blocking. Also, change 2nd arg
724 to zebra_redistribute_send from zclient->sock to zclient.
725 (zebra_redistribute_send): Change 2nd arg to struct zclient *.
726 Can now use zclient->obuf to assemble the message instead of
727 allocating a temporary stream. And call zclient_send_message to
728 send the message instead of writen.
729 (zclient_read): Convert to support non-blocking I/O by using
730 stream_read_try instead of deprecated stream_read.
731 (zclient_redistribute): Change 2nd arg to zebra_redistribute_send
732 from zclient->sock to zclient.
733
hasso5bb4c192005-04-09 13:27:50 +00007342005-04-09 Jeroen Simonetti <jeroens@office.netland.nl>
735
736 * routemap.c: Show description in "show route-map" output.
737
ajsd66a7b52005-04-08 16:42:03 +00007382005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
739
ajs67bf16c2005-04-08 19:02:04 +0000740 * sigevent.c: On GNU_LINUX, check whether __USE_GNU is already defined.
741
7422005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
743
ajs926fe8f2005-04-08 18:50:40 +0000744 * vty.c: (vty_log_fixed) Use casts to (void *) to try to eliminate
745 compiler warnings when assigning a (const char *) value to
746 struct iovec iov_base.
747
7482005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
749
ajsd66a7b52005-04-08 16:42:03 +0000750 * zebra.h: If GNU_LINUX is defined, then define _GNU_SOURCE. This
751 fixes a problem where we were not getting the declaration of strnlen
752 in <string.h>.
753
hasso3a2ce6a2005-04-08 01:30:51 +00007542005-04-08 Hasso Tepper <hasso at quagga.net>
755
hasso4a8164e2005-04-08 14:20:18 +0000756 * routemap.[ch]: Added "description ..." command.
757
7582005-04-08 Hasso Tepper <hasso at quagga.net>
759
hasso3a2ce6a2005-04-08 01:30:51 +0000760 * prefix.[hc]: Pass argument to the inet6_ntoa by value making it more
761 inet_ntoa alike.
762
paul1eb8ef22005-04-07 07:30:20 +00007632005-04-07 Paul Jakma <paul.jakma@sun.com>
764
765 * linklist.h: Add usage comments.
766 Rename getdata macro to listgetdata.
767 Rename nextnode to listnextnode and fix its odd behaviour to be
768 less dangerous.
769 Make listgetdata macro assert node is not null, NULL list entries
770 should be bug condition.
771 ALL_LIST_ELEMENTS, new macro, forward-referencing macro for use
772 with for loop, Suggested by Jim Carlson of Sun.
773 Add ALL_LIST_ELEMENTS_RO for cases which obviously do not need the
774 "safety" of previous macro.
775 LISTNODE_ADD and DELETE macros renamed to ATTACH, DETACH, to
776 distinguish from the similarly named functions, and reflect their
777 effect better.
778 Add a QUAGGA_NO_DEPRECATED_INTERFACES define guarded section
779 with the old defines which were modified above,
780 for backwards compatibility - guarded to prevent Quagga using it..
781 * linklist.c: fix up for linklist.h changes.
782 * *.c: fix up for new list loop macro, try audit other loop
783 usage at same time, to some degree.
784
hasso59209902005-04-05 14:36:49 +00007852004-04-05 Hasso Tepper <hasso at quagga.net>
786
787 * lib/prefix.[hc]: inet6_ntoa utility function copied from
788 ripngd/ripngd.c (inet6_ntop).
789
paul3d1dc852005-04-05 00:45:23 +00007902004-04-05 Paul Jakma <paul@dishone.st>
791
792 * vty.c: Improve logging of failures to open vty socket(s).
793 See bugid #163.
794
ajs3cb98de2005-04-02 16:01:05 +00007952005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
796
ajs08dbfb62005-04-03 03:40:52 +0000797 * if.h: Fix comments to reflect that if_lookup_by_name and
798 if_get_by_name now require the argument strings to be NUL-terminated.
799 * if.c: (if_lookup_by_name) Compare using strcmp.
800 (if_get_by_name) Pass strlen(ifname) as 2nd arg to if_create.
801
8022005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
803
ajs018546e2005-04-02 23:05:56 +0000804 * if.c: (if_nametoindex) The man page is rather vague, but it seems
805 like the argument to if_nametoindex has an implicit maximum length
806 of IFNAMSIZ characters.
807
8082005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
809
ajsa3491982005-04-02 22:50:38 +0000810 * if.h: (if_lookup_by_name_len, if_get_by_name_len) New functions.
811 * if.c: (if_lookup_by_name_len, if_get_by_name_len) New functions.
812 (if_get_by_name) Tighten up code.
813 (interface) Use new function if_get_by_name_len.
814 * zclient.c: (zebra_interface_add_read) Use new if_get_by_name_len
815 function.
816 (zebra_interface_state_read) Use new if_lookup_by_name_len function.
817
8182005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
819
ajs851adbd2005-04-02 18:48:39 +0000820 * str.c: Replace strlcpy and strlcat with actual working versions
821 copied from rsync-2.6.2/lib/compat.c.
822
8232005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
824
ajsd2fc8892005-04-02 18:38:43 +0000825 * if.h: Remove define for IFINDEX_INTERNBASE and add define
826 IFINDEX_INTERNAL 0, since all internal (i.e. non-kernel) pseudo-
827 interfaces should have ifindex set to 0.
828 (if_new) Remove function.
829 (if_delete_retain) New function to delete an interface without
830 removing from iflist and freeing the structure.
831 (ifname2ifindex) New function.
832 * if.c: (if_new) Remove function (absorb into if_create).
833 (if_create) Replace function if_new with call to calloc.
834 Set ifp->ifindex to IFINDEX_INTERNAL. Fix off-by-one error
835 in assert to check length of interface name. Add error message
836 if interface with this name already exists.
837 (if_delete_retain) New function to delete an interface without
838 removing from iflist and freeing the structure.
839 (if_delete) Implement with help of if_delete_retain.
840 (ifindex2ifname) Reimplement using if_lookup_by_index.
841 (ifname2ifindex) New function to complement ifindex2ifname.
842 (interface) The interface command should check the name length
843 and fail with a warning message if it is too long.
844 (no_interface) Fix spelling in warning message.
845 (if_nametoindex) Reimplement using if_lookup_by_name.
846 (if_indextoname, ifaddr_ipv4_lookup) Reimplement using
847 if_lookup_by_index.
848
8492005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
850
ajs3cb98de2005-04-02 16:01:05 +0000851 * zebra.h: Should include str.h to pick up missing functions.
852 * str.h: Declare strnlen if needed.
853 * str.c: Do not include str.h since zebra.h now includes it.
854 (strnlen) New function.
855
ajsdb8eaac2005-03-16 16:13:06 +00008562005-03-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
857
858 * zebra.h: Must check whether __attribute__ should be defined before
859 including zassert.h.
860
paulb8961472005-03-14 17:35:52 +00008612005-03-14 Paul Jakma <paul.jakma@sun.com>
862
863 * command.c: (sort_node) use vector_max instead of referencing
864 (struct vector *)->max directly. Test that vector_max is > 0
865 before using it to calculate an index.
866 Fixup vector loop to make main body conditional on vector slot
867 not being empty.
868 (cmd_cmdsize) Fixup vector loop to make main body conditional on
869 vector slot not being empty.
870 (cmd_filter_by_completion) ditto
871 (cmd_filter_by_string) ditto
872 (is_cmd_ambiguous) ditto
873 (cmd_describe_command_real) Change index integers to unsigned.
874 Test that vector_max is > 0 before using it to calculate an index.
875 Return immediately with CMD_ERR_NO_MATCH if vline has no
876 active slots.
877 Fixup vector loop to make main body conditional on vector slot
878 not being empty.
879 (cmd_complete_command_real) ditto.
880 (cmd_execute_command_strict) Fixup vector loop to be conditional
881 on non-null slot.
paul909a2152005-03-14 17:41:45 +0000882 (various) Fix indentation and other whitespace.
paul55468c82005-03-14 20:19:01 +0000883 vector.h: Rename to (struct vector).max to slightly less confusing
884 active, for the number of active slots, distinct from allocated
885 or active-and-not-empty. Rename vector_max to vector_active
886 for same reason.
paulb8961472005-03-14 17:35:52 +0000887
paul9e92eea2005-03-09 13:39:26 +00008882005-03-09 Paul Jakma <paul.jakma@sun.com>
889
890 * command.c: Undo commit of sign warning fix and hidden command
891 in list_cmd. Sign warning is more subtle. list_cmd on its own
892 will be committed after.
paul4275b1d2005-03-09 13:42:23 +0000893 * command.c: (config_list_cmd) Don't list hidden or deprecated
894 commands, hiding these from tab completion is still to be done.
paul9e92eea2005-03-09 13:39:26 +0000895
paulb45da6f2005-03-08 15:16:57 +00008962005-03-08 Paul Jakma <paul.jakma@sun.com>
897
paul9c5d8562005-03-08 15:56:42 +0000898 * command.c: (banner_motd_file_cmd) use XSTRDUP/XFREE.
paul22085182005-03-08 16:00:12 +0000899 (no_banner_motd_cmd) use XFREE.
paul9c5d8562005-03-08 15:56:42 +0000900 (cmd_describe_command_real) sign compile warning fix
901 (cmd_complete_command_real) ditto.
902 (config_list_cmd) Don't list hidden or deprecated commands,
903 hiding these from tab completion is still to be done.
904 * command.h: cmd attr enum should start at 1.
paulb45da6f2005-03-08 15:16:57 +0000905 * vty.c: (vty_hello) suggestions from Andrew, read by line and
906 stub out trailling non-printable characters on each line thus
907 allowing us to specify VTY_NEWLINE to vty_out.
908
paul3b0c5d92005-03-08 10:43:43 +00009092005-03-08 Jeroen Massar <jeroen@unfix.org>
910
911 * vty.c: (vty_hello) display motd file, if set
912 * command.h: add char *motdfile to struct host
913 * command.c: (config_write_host) write out motdfile config
914 (banner_motd_file_cmd) new command, allow motd to be read from
915 file.
916 (no_banner_motd_cmd) free motdfile string, if needs be.
917 (cmd_init) init (struct host).motdfile. Add new motd file
918 commands.
919
hasso12f6ea22005-03-07 08:35:39 +00009202005-03-07 Michael Sandee <voidptr@voidptr.sboost.org>
921
922 * command.c: host.name might be NULL.
923 * vty.c: Fix fd leak.
924
ajs81fb3242005-02-24 16:02:53 +00009252005-02-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
926
927 * stream.c: (stream_read_try) Log a warning message if a fatal
928 I/O error occurs.
929 (stream_fifo_new) Fix prototype.
930 * stream.h: Fix prototype for stream_fifo_new (need void arg).
931
ajs9fc7ebf2005-02-23 15:12:34 +00009322005-02-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
933
ajscdb6ee92005-02-23 15:48:32 +0000934 * {vty.h,vty.c}: Remove vty_finish (duplicate of vty_reset).
935
9362005-02-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
937
ajs9fc7ebf2005-02-23 15:12:34 +0000938 * buffer.h: Make the struct buffer and struct buffer_data structures
939 private by moving them inside buffer.c. Add comments for all
940 functions. Rename buffer_write as buffer_put (to be more consistent
941 with the buffer_putc and buffer_putstr functions). Declare a new
942 buffer_write function that is used to write data to a file descriptor
943 and/or add it to the buffer queue. Remove unused function
944 buffer_flush_vty_all. Create a new enum typedef buffer_status_t
945 to be used as the return code for all buffer_flush* functions
946 and buffer_write.
947 * buffer.c: The struct buffer and struct buffer_data declarations
948 are now private to this file. In conjunction with that, remove
949 some unnecessary fields: struct buffer (alloc, unused_head,
950 unused_tail, length), struct buffer_data (prev).
951 (buffer_data_new) Removed: functionality incorporated into buffer_add.
952 (buffer_data_free) Removed: use a macro BUFFER_DATA_FREE instead.
953 (buffer_new) Use calloc instead of malloc + memset(zero).
954 Supply an appropriate default size if the specified size is 0.
955 (buffer_free) Eliminate code duplication by calling buffer_reset to
956 free the contents of the buffer (and remove unused code related
957 to unused_head).
958 (buffer_empty,buffer_putc,buffer_putstr) Aesthetic change (make more
959 compact).
960 (buffer_reset) Use macro BUFFER_DATA_FREE. No need to set
961 alloc and length to 0 (these fields have been removed).
962 (buffer_add) Fix scope to be static. Call XMALLOC directly instead
963 of calling removed buffer_data_new function. Simplify the logic
964 (since it's now a singly-linked list instead of doubly-linked).
965 (buffer_write) Renamed to buffer_put. Change to void, since return
966 code of 1 was meaningless. No need to adjust length field, since
967 it has been removed.
968 (buffer_putw,buffer_flush,buffer_flush_vty_all,buffer_flush_vty)
969 Remove unused functions.
970 (buffer_flush_all) Rewrite using buffer_flush_available to eliminate
971 a possible failure mode if IOV_MAX is less than the number of buffers
972 on the queue.
973 (buffer_flush_window) Incorporate logic from buffer_flush_vty.
974 Log an error message if there is a writev error.
975 (buffer_flush_available) Be more paranoid: check for case where
976 buffer is already empty. Use new ERRNO_IO_RETRY macro, and use
977 new enum for return codes. Simplify deletion logic (since it's
978 now a singly-linked list).
979 (buffer_write) New function for use with non-blocking I/O.
980 * vty.h: Replace the struct vty sb_buffer field with a fixed-size
981 (5-character) sb_buf field and an sb_len field, since using
982 a struct buffer was inappropriate for this task. Add some useful
983 comments about telnet window size negotiation.
984 * vty.c: Include <arpa/telnet.h> (no longer included by zebra.h).
985 Remove VTY_OBUF_SIZE (instead use buffer_new default size).
986 Make telnet_backward_char and telnet_space_char static const.
987 (vty_out) Replace buffer_write with buffer_put.
988 (vty_log_out) Check for I/O errors. If fatal, close the vty session.
989 Consolidate 3 separate writes into a single write call.
990 (vty_will_echo,vty_command,vty_next_line,vty_previous_line,
991 vty_end_config,vty_describe_fold,vty_clear_buf,vty_serv_sock_addrinfo,
992 vty_serv_sock_family,vty_serv_un,vty_use_backup_config,exec_timeout,
993 vty_config_write,vty_save_cwd) Fix scope to static.
994 (vty_new) Let buffer_new use its default buffer size.
995 (vty_write) Fix signature: 2nd arg should be const char *.
996 Replaced buffer_write with buffer_put.
997 (vty_telnet_option) Fix minor bug (window height or width greater than
998 255 was broken). Use sb_buf and sb_len instead of removed sb_buffer
999 (which was being used improperly).
1000 (vty_read) On error, use ERRNO_IO_RETRY to decide whether it's fatal.
1001 If the error is fatal, call buffer_reset so vty_close does not attempt
1002 to flush the data. Use new sb_buf and sb_len instead of sb_buffer
1003 to store the SB negotiation string.
1004 (vty_flush) When vty->lines is 0, call buffer_flush_available instead
1005 of buffer_flush_window. Look at the return code from buffer_flush
1006 to detect I/O errors (and in that case, log an error message and
1007 close the vty).
1008 (vty_create) Fix scope to static. Initialize sb_len to 0 instead
1009 of creating sb_buffer.
1010 (vty_accept) Set socket nonblocking.
1011 (vtysh_accept) Use new set_nonblocking function instead of calling
1012 fcntl directly.
1013 (vtysh_flush) New function called from vtysh_read (after command
1014 execution) and from vtysh_write. This flushes the buffer
1015 and reacts appropriately to the return code (by closing the vty
1016 or scheduling further flushes).
1017 (vtysh_read) Check whether error is fatal using ERRNO_IO_RETRY.
1018 If not, just try again later. Otherwise, call buffer_reset before
1019 calling vty_close (to avoid trying to flush the buffer in vty_close).
1020 Fix logic to allow case where a command does not arrive atomically
1021 in a single read call by checking for the terminating NUL char.
1022 (vtysh_write) Use new vtysh_flush helper function.
1023 (vty_close) No need to call buffer_empty, just call buffer_flush_all
1024 in any case (it will check whether the buffer is empty).
1025 Do not free sb_buffer (since it has been removed).
1026 (vty_log_fixed) Use writev instead of write.
1027 * zebra.h: Do not include <arpa/telnet.h>, since this is used only
1028 by lib/vty.c.
1029
hassoc3c07f22005-02-21 18:17:52 +000010302005-02-21 Vincenzo Eramo <eramo at infocom.ing.uniroma1.it>
1031
1032 * pqueue.[ch]: Introduce "update" function to meet ospf spf needs. It
1033 will allow to update node when:
1034 i) a node is inserted into the priority queue;
1035 ii) a node position is modified in the priority queue;
1036 * pqueue.h: Export trickle_down() function.
1037
paul109ac962005-02-19 01:17:07 +000010382005-02-19 Paul Jakma <paul.jakma@sun.com>
1039
1040 * stream.c: (stream_new) fix dumb mistake.
1041
ajsd7e2a812005-02-17 20:02:49 +000010422005-02-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1043
ajs53270112005-02-17 20:07:22 +00001044 * stream.c: (stream_read_try) Use new ERRNO_IO_RETRY macro.
1045
10462005-02-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1047
ajsd7e2a812005-02-17 20:02:49 +00001048 * network.h: Define a new ERRNO_IO_RETRY macro to test whether an I/O
1049 operation should be retried. This eliminates the need to duplicate
1050 the same logic testing for EAGAIN or EINTR in multiple places.
1051
ajs42218e72005-02-16 16:25:39 +000010522005-02-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1053
ajs262feb12005-02-16 20:35:47 +00001054 * stream.h: Declare new function stream_read_try suitable for use
1055 with non-blocking file descriptors. Indicate that stream_read
1056 and stream_read_unblock are deprecated.
1057 * stream.c: (stream_read_try) New function for use with non-blocking
1058 I/O.
1059 (stream_recvmsg) Should return -1 if the stream is too small to
1060 contain the data.
1061
10622005-02-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1063
ajs42218e72005-02-16 16:25:39 +00001064 * network.c: (set_nonblocking) Should check return code from
1065 fcntl(F_GETFL).
1066
ajsa269d612005-02-16 00:45:37 +000010672005-02-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1068
1069 * network.h: Declare new function set_nonblocking. Indicate that
1070 readn and writen are deprecated.
1071 * network.c: (set_nonblocking) New function to make a file descriptor
1072 non-blocking, since it seems silly to have fcntl calls sprinkled
1073 throughout the code.
1074
paul1dd13d42005-02-14 23:49:09 +000010752005-02-14 Paul Jakma <paul.jakma@sun.com>
paulf2e6c422005-02-12 14:35:49 +00001076
1077 * stream.h: Unsigned long updated to size_t
1078 * stream.c: ditto
paul050c0132005-02-14 23:47:47 +00001079 * stream.h: Add stream_copy, stream_dup, stream_recvmsg.
1080 Add comment describing struct stream abstraction, and various
1081 other comments.
1082 Deprecate several unsafe/ambigious macros.
1083 Add STREAM_WRITEABLE and STREAM_READABLE.
1084 Add (stream_getl_from) for symmetry.
1085 Update stream_forward_{endp,getp} to use size_t offset.
1086 Make stream data a 0 length array, rather than a seperate malloc.
1087 * stream.c: Add consistency checks. Update to follow stream.h
1088 changes.
1089 (stream_new) Alloc stream+data in one go.
1090 (stream_copy) new function, copy a stream.
1091 (stream_dup) new function, dup a stream.
1092 (stream_recvmsg) new function, recvmsg data into a stream.
1093 (stream_empty) no need to check getp == 0.
paulf2e6c422005-02-12 14:35:49 +00001094
paul9985f832005-02-09 15:51:56 +000010952005-02-09 Paul Jakma <paul.jakma@sun.com>
1096
1097 * stream.h: Remove putp. Update reference to putp with endp.
1098 Add stream_forward_endp, which daemons were doing manually.
1099 Rename stream_forward to stream_forward_getp.
1100 stream.c: Remove/update references to putp.
1101 introduce stream_forward_endp.
1102
ajs548e6f72005-02-08 15:57:25 +000011032005-02-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1104
1105 * zebra.h: Change macro definitions SET_FLAG and UNSET_FLAG
1106 to use compound assignment operators (aesthetic change).
1107
ajs1e221352005-02-03 16:42:40 +000011082005-02-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1109
ajsc4c7d0c2005-02-03 19:22:05 +00001110 * log.c: (zlog_signal,zlog_backtrace_sigsafe) Eliminate use of fileno()
1111 since it is not async-signal-safe.
1112 (_zlog_assert_failed) Rewrite crashlog logic more compactly.
1113 (zlog_set_file,zlog_reset_file,zlog_rotate) Update logfile_fd
1114 for use in signal handler.
1115
11162005-02-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1117
ajs1e221352005-02-03 16:42:40 +00001118 * log.c: (syslog_sigsafe) Reduce scope of syslog_fd: it is accessed
1119 inside this function only.
1120 (open_crashlog) New function to open /var/tmp/quagga.<daemon>.crashlog
1121 with flags O_WRONLY|O_CREAT|O_EXCL to save some crash info.
1122 (zlog_signal,_zlog_assert_failed) Increase logging priority from
1123 LOG_ERR to LOG_CRIT. If no file logging is configured, try to use
1124 open_crashlog to create a crash logfile.
1125 (zlog_backtrace_sigsafe) If a crashlog file descriptor is open,
1126 dump a backtrace to that file.
1127
ajs847947f2005-02-02 18:38:48 +000011282005-02-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1129
1130 * if.h: Declare if_flag_dump.
1131
ajs6a52d0d2005-01-30 18:49:28 +000011322005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1133
1134 * daemon.c: (daemon) Replace perror with zlog_err.
1135 * vty.c: (vty_serv_un) Replace perror with zlog_err.
1136
ajs3b8b1852005-01-29 18:19:13 +000011372005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1138
1139 * buffer.h: Fix comment on buffer_getstr to reflect that it now
1140 uses XMALLOC.
1141 * buffer.c: (buffer_getstr) Use XMALLOC(MTYPE_TMP) instead of malloc.
1142 * filter.c: (access_list_remark,ipv6_access_list_remark) Use
1143 argv_concat instead of buffer_getstr.
1144 * if.c: (interface_desc) Use argv_concat instead of buffer_getstr.
1145 * plist.c: (ip_prefix_list_description,ipv6_prefix_list_description)
1146 Use argv_concat instead of buffer_getstr.
1147
ajsf6834d42005-01-28 20:28:35 +000011482005-01-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1149
ajsafb8b602005-01-28 20:41:07 +00001150 * lib/buffer.h: Document behavior of buffer_getstr function.
1151 * lib/buffer.c: (buffer_getstr) Fix bug: must handle case where
1152 the string extends beyond the head struct buffer_data.
1153
11542005-01-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1155
ajsf6834d42005-01-28 20:28:35 +00001156 * lib/command.h: Document behavior of argv_concat function.
1157 * lib/command.c: (argv_concat) Calculate total string length first so
1158 we can call malloc just once (instead of realloc'ing to add each
1159 string element).
1160 (do_echo,config_logmsg) Allow for possible NULL return value from
1161 argv_concat.
1162
hasso13bfca72005-01-23 21:42:25 +000011632005-01-23 Hasso Tepper <hasso at quagga.net>
1164
1165 * lib/command.[ch]: Make node_parent() function nonstatic. vtyh.c will
1166 use it as well.
1167
ajs31364272005-01-18 22:18:59 +000011682005-01-18 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1169
1170 * log.h: Test for SA_SIGINFO to see whether zlog_signal takes final
1171 two args (siginfo and program_counter).
1172 * log.c: (hex_append) Include this function only if SA_SIGINFO or
1173 HAVE_GLIBC_BACKTRACE is defined.
1174 (zlog_signal) Final two args (siginfo and program_counter) now
1175 depend on whether SA_SIGINFO is defined on this platform.
1176 * sigevent.c: (program_counter) Do not include this function if
1177 SA_SIGINFO is not defined on this platform.
1178 (exit_handler,core_handler) Test for SA_SIGINFO to decide whether
1179 2nd & 3rd arguments are present and to decide how to invoke
1180 zlog_signal.
1181 (trap_default_signals) Test for SA_SIGINFO and invoke sigaction
1182 appropriately.
1183
ajs239c26f2005-01-17 15:22:28 +000011842005-01-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1185
1186 * log.h: Change prototype for zlog_backtrace_sigsafe to take additional
1187 program_counter argument.
1188 * log.c: (zlog_backtrace_sigsafe) Add additional program_counter
1189 argument. If it is non-NULL, use backtrace_symbols_fd to resolve
1190 the address.
1191 (zlog_signal) Call zlog_backtrace_sigsafe with additional
1192 program_counter argument.
1193
hasso87d683b2005-01-16 23:31:54 +000011942005-01-17 Hasso Tepper <hasso at quagga.net>
1195
1196 * command.[ch], vty.c: cmd_execute_command() function must not attempt
1197 to walk up in the node tree if called from vtysh. Different daemons
1198 might have commands with same syntax in different nodes (for example
1199 "router-id x.x.x.x" commands in zebra/ospfd/ospf6d daemons).
1200
ajscb585b62005-01-14 17:09:38 +000012012005-01-14 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1202
1203 * command.c (print_version): Do not bother even to examine host.name,
1204 since it is always NULL when this function is called from main.
1205
gdtf867d322005-01-14 15:47:33 +000012062005-01-14 Greg Troxel <gdt@fnord.ir.bbn.com>
1207
1208 * command.c (print_version): Don't print host.name if it is NULL.
1209 Fixes segfault on Solaris reported by Goetz von Escher <goetz@open.ch>
1210
ajse22f5512005-01-12 16:18:17 +000012112005-01-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1212
ajs40abf232005-01-12 17:27:27 +00001213 * sigevent.c: (trap_default_signals) Use the SA_SIGINFO flag to
1214 pass additional siginfo_t and ucontext_t arguments to core_handler
1215 and exit_handler.
1216 (core_handler,exit_handler) Now invoked with 3 arguments (using
1217 SA_SIGINFO). Pass additional info to zlog_signal.
1218 (program_counter) New function to find program counter in ucontext_t,
1219 needs to be enhanced to support more platforms (currently works only
1220 on Linux/x86).
1221 * log.h: Change the zlog_signal prototype to add new arguments
1222 siginfo_t * and program_counter.
1223 * log.c: (zlog_signal) Add new arguments siginfo and program_counter.
1224 Include si_addr and program counter (if non-NULL) in message.
1225 And remove #ifdef HAVE_GLIBC_BACKTRACE around hex_append, since
1226 that is now used to render the si_addr and PC pointers.
1227
12282005-01-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1229
ajse22f5512005-01-12 16:18:17 +00001230 * zebra.h: If not C99 and no va_copy macro available, fall back to
1231 memcpy (solves a build problem on FreeBSD 4.x).
1232
ajsb99760a2005-01-04 16:24:43 +000012332005-01-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1234
1235 * zebra.h: Define ZCMSG_FIRSTHDR appropriately based on whether
1236 config.h indicates HAVE_BROKEN_CMSG_FIRSTHDR (as determined
1237 by the configure test program).
1238 * sockopt.c: (getsockopt_cmsg_data) Use ZCMSG_FIRSTHDR instead
1239 of CMSG_FIRSTHDR.
1240
hassocba8a602005-01-02 18:51:01 +000012412005-01-02 Hasso Tepper <hasso at quagga.net>
1242
1243 * command.c: Revert int -> unsigned int fixes in
1244 cmd_describe_command_real() and cmd_complete_command_real(). index can
1245 be actually negative and it caused crash with "do<TAB>" in vty.
1246
gdt1d69fdf2004-12-29 18:53:30 +000012472004-12-29 Greg Troxel <gdt@poblano.ir.bbn.com>
1248
gdtd44debe2004-12-29 20:06:23 +00001249 * sockopt.c (getsockopt_ipv4_ifindex): Document calling
1250 convention. Beef up comments. Handle the case where the cmsghdr
1251 has a zero controllen, or more specifically when the wanted option
1252 is not present. This is needed for Solaris 8, and in general for
1253 any platform for which configure finds a method and it can fail.
1254 Mark some changes with XXX to be cleaned up post 0.98.
1255
ajsaf04bd72004-12-28 17:00:12 +000012562004-12-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1257
ajs1d75c8c2004-12-28 21:43:17 +00001258 * sockopt.c: (setsockopt_ipv4_ifindex) Improve error message.
1259 When neither IP_PKTINFO nor IP_RECVIF is defined, make return value
1260 deterministic (-1).
1261
12622004-12-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1263
ajsaf04bd72004-12-28 17:00:12 +00001264 * thread.c: (funcname_thread_add_timer_msec) Reduce overflow risk.
1265
paul4ba9b922004-12-21 22:34:58 +000012662004-12-21 Paul Jakma <paul.jakma@sun.com>
1267
1268 * if.h: Add more 'non-generic' IFF_ flags.
1269 * if.c: IFF_NOXMIT/IFF_VIRTUAL interfaces are 'loopback like'
paul0e43a2b2004-12-22 00:15:34 +00001270 * stream.c: Dont allocate streams with 0 sized data buffers
paul4ba9b922004-12-21 22:34:58 +00001271
ajs202d08c2004-12-17 20:50:00 +000012722004-12-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs2885f722004-12-17 23:16:33 +00001273
1274 * command.c: (do_echo) Added new "echo" command, useful for
1275 watchdog pinging to make sure the daemon is responsive.
1276
12772004-12-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs202d08c2004-12-17 20:50:00 +00001278
1279 * pid_output.c: (pid_output_lock) Eliminate static function, and just
1280 use the #ifdef to decide which version of the function to include.
1281 This eliminates a compilation problem with gcc4. And fix the
1282 non-fcntl version so that it actually compiles. Exit with
1283 status 1 instead of -1 on error.
1284
ajs81fc57c2004-12-15 17:41:14 +000012852004-12-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1286
1287 * sigevent.c: (trap_default_signals) Ignore SIGPIPE instead of exiting.
1288
ajs3378d202004-12-10 22:43:17 +000012892004-12-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1290
1291 * log.c: (zlog_signal,_zlog_assert_failed) Change logging level back to
1292 LOG_ERR instead of LOG_EMERG.
1293
ajsc3324c62004-12-09 17:26:31 +000012942004-12-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1295
1296 * log.c: (hex_append) No need to include this function if
1297 HAVE_GLIBC_BACKTRACE is not defined.
1298
ajsb9e70282004-12-08 17:14:45 +000012992004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1300
1301 * prefix.c: (prefix_copy) Error message before abort should
1302 have severity LOG_ERR, not LOG_INFO.
1303 * memory.c: (mtype_log) Log level should be LOG_DEBUG, not LOG_INFO.
1304
ajs274a4a42004-12-07 15:39:31 +000013052004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1306
ajs8ddca702004-12-07 18:53:52 +00001307 * {smux.c,zclient.c}: Change level of debug messages to LOG_DEBUG.
1308
13092004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1310
ajs82146b82004-12-07 17:15:55 +00001311 * command.c: (config_write_host) Note that "log trap" is deprecated
1312 when writing out the config.
1313
13142004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1315
ajs274a4a42004-12-07 15:39:31 +00001316 * log.h: Replace struct zlog flags and maskpri fields with maxlvl
1317 array to support individual logging levels for each destination.
1318 Remove the 2nd argument to openzlog since the default logging config
1319 should be standardized inside the library. Replaced the
1320 zlog_set_flag and zlog_reset_flag functions with zlog_set_level.
1321 And zlog_set_file now requires an additional log_level argument.
1322 Declare zlog_proto_names for use inside command.c in the
1323 "show logging" command. Added defines useful for command
1324 construction.
1325 * log.c: (vzlog) Decide where to send the message based on the
1326 individual logging levels configured for each destination.
1327 Remove support for ZLOG_STDERR since it was never actually used.
1328 Support record-priority for terminal monitors.
1329 (zlog_signal,zlog_backtrace_sigsafe) Support destination-specific
1330 logging levels. Remove stderr support (was never used). Added
1331 support for terminal monitor logging.
1332 (_zlog_assert_failed) Increase message severity to LOG_EMERG.
1333 (openzlog) Remove 2nd argument since default config should be
1334 standardized in library. By default, terminal monitoring
1335 is set to debug, and all other logging is disabled.
1336 (zlog_set_flag,zlog_reset_flag) Removed.
1337 (zlog_set_level) New function to replace zlog_set_flag and
1338 zlog_reset_flag. Supports destination-specific logging levels.
1339 (zlog_set_file,zlog_reset_file) Support file-specific logging level.
1340 (zlog_rotate) Log an error message if fopen fails, and support
1341 new file-specific logging level.
1342 * command.h: Change DEFUN_CMD_FUNC_DECL and DEFUN_CMD_FUNC_TEXT so that
1343 command functions will be static instead of global. Remove
1344 declarations for config_exit and config_help. Define new macros
1345 DEFUNSH_ATTR, DEFUNSH_HIDDEN, and DEFUNSH_DEPRECATED so we can
1346 have deprecated commands in vtysh. Similarly, for completeness,
1347 define macros ALIAS_SH, ALIAS_SH_HIDDEN, and ALIAS_SH_DEPRECATED.
1348 Also, fix bug in ALIAS_ATTR macro (didn't matter because it
1349 was never used).
1350 * command.c: Make many functions static instead of global.
1351 (facility_name,facility_match,level_match) New functions
1352 to support enhanced destination-specific logging levels.
1353 (config_write_host) Support new destination-specific logging levels.
1354 (config_logmsg) Added new "logmsg" command to help test logging
1355 system.
1356 (show_logging) Added "show logging" command to show the current
1357 configuration of the logging system.
1358 (config_log_stdout_level) Support explicit stdout logging level.
1359 (no_config_log_stdout) Now takes optional LEVEL arg.
1360 (config_log_monitor,config_log_monitor_level,no_config_log_monitor)
1361 New commands creating new "log monitor" commands to set terminal
1362 monitoring log level.
1363 (config_log_file_level) Support explicit file logging level.
1364 (config_log_syslog_level) Support explicit syslog logging level.
1365 (config_log_facility,no_config_log_facility) Implement new
1366 "log facility" command.
1367 (cmd_init) Add hooks for new commands: "show logging", "logmsg",
1368 "log stdout <level>", "log monitor", "log monitor <level>",
1369 "no log monitor", "log file <filename> <level>",
1370 "no log file <filename> <level>", "log syslog <level>",
1371 "log facility", and "no log facility".
1372 * vty.h: Added a "level" argument to vty_log so it can support
1373 "log record-priority". Declare new function vty_log_fixed for
1374 use in signal handlers.
1375 * vty.c: (vty_log,vty_log_out) Added a "level" argument to support
1376 "log record-priority" for vty terminal monitors.
1377 (vty_down_level) Use config_exit_cmd.func instead of calling
1378 config_exit directly (since command functions will now be static
1379 instead of global).
1380 (vty_log_fixed) New function to send terminal monitor messages
1381 from inside a signal handler.
1382
ajs887c44a2004-12-03 16:36:46 +000013832004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1384
ajs5e764772004-12-03 19:03:33 +00001385 * log.h: Document appropriate use of syslog logging priorities
1386 inside quagga.
1387
13882004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1389
ajs56f20692004-12-03 17:40:31 +00001390 * command.h: Remove fields log_stdout and log_syslog from struct host,
1391 since they are just trying to duplicate information in the
1392 zlog_default structure. Note that this fixes a bug since those
1393 fields were not registering any logging that was established
1394 in the initial call to openzlog (this affects only the zebra and
1395 ospf6d daemons). It is probably a bug to turn on any logging by
1396 default in the call to openzlog.
1397 * command.c: (config_write_host) Get logging info from zlog_default
1398 instead of now-removed fields host.log_stdout and host.log_syslog.
1399 (config_log_stdout,no_config_log_stdout) Do not set now-removed field
1400 host.log_stdout, since this info is recorded in zlog_default.
1401 (config_log_file) Use XSTRDUP (instead of strdup) to set host.logfile.
1402 (config_log_syslog,config_log_syslog_facility,no_config_log_syslog)
1403 Do not set now-removed field host.log_syslog, since this info is
1404 recorded in zlog_default.
1405
14062004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1407
ajs887c44a2004-12-03 16:36:46 +00001408 * version.h.in: Remove declaration for pid_output_lock, this function
1409 is now static, not global.
1410 * pid_output.c: (pid_output_lock) This function should be static, not
1411 global. And remove "old umask" error message, since it was really
1412 an unimportant debug message, not an error.
1413 (pid_output) Need to declare static function pid_output_lock.
1414
ajs7d149b82004-11-28 23:00:01 +000014152004-11-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1416
1417 * log.h: Remove several unused fields from struct zlog. Add comments
1418 for other fields, and add one new field syslog_options that is
1419 used in the new syslog_sigsafe implementation.
1420 * log.c: (syslog_sigsafe) New function to send syslog messages in
1421 an async-signal safe way that can be used inside a signal handler.
1422 (syslog_connect) New function to connect to syslog daemon inside a
1423 signal handler. This function supports only systems where /dev/log
1424 is a unix datagram socket (e.g. not Solaris).
1425 (zlog_signal) Call syslog_sigsafe if syslog logging is enabled.
1426 (zlog_backtrace_sigsafe) Call syslog_sigsafe if syslog logging is
1427 enabled.
1428 (openzlog) Save syslog_options for use in syslog_sigsafe.
1429 (num_append) Fix bug: handle 0 properly.
1430 (hex_append) New function to print a u_long in hex format.
1431
hasso2557aed2004-11-28 21:16:20 +000014322004-11-28 Hasso Tepper <hasso at quagga.net>
1433
1434 * command.h: DEFUN_DEPRECATED passes attribute to DEFUN as well.
1435
ajsd1c51d72004-11-26 14:14:30 +000014362004-11-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1437
ajs48d6c692004-11-26 20:52:59 +00001438 * log.c, log.h, memory.c: Change function name from zlog_backtrace_safe
1439 to the more self-explanatory zlog_backtrace_sigsafe.
1440
14412004-11-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1442
ajs5b85fac2004-11-26 19:36:42 +00001443 * debug.[ch]: Remove unused files.
1444 * Makefile.am: Remove references to debug.c and debug.h
1445
14462004-11-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1447
ajs063ee522004-11-26 18:11:14 +00001448 * log.c: (zlog_backtrace) New function to log a backtrace.
1449 (zlog_backtrace_safe) Log a backtrace in an async-signal-safe way.
1450 Unfortunately, this function does not support syslog logging yet.
1451 (zlog_signal) Move backtrace code into separate function
1452 zlog_backtrace_safe.
1453 (_zlog_assert_failed) Call zlog_backtrace before aborting.
1454 * log.h: Declare new functions zlog_backtrace and zlog_backtrace_safe.
1455 * memory.c: (zerror) Call zlog_backtrace before aborting.
1456
14572004-11-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1458
ajsd1c51d72004-11-26 14:14:30 +00001459 * Makefile.am: Need to add zassert.h to pkginclude_HEADERS.
1460
ajse5879ca2004-11-25 16:07:53 +000014612004-11-25 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1462
ajs4cf0d0d2004-11-25 17:14:34 +00001463 * zebra.h: If not C99 and there's no va_copy macro and there is
1464 a __va_copy macro, define va_copy as __va_copy.
1465
14662004-11-25 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1467
ajse5879ca2004-11-25 16:07:53 +00001468 * pid_output.c: (pid_output_lock) Fix 2 bugs: when locking, should
1469 set l_whence to SEEK_SET, not SEEK_END. And after writing new
1470 pid to file, must ftruncate to eliminate any extraneous bytes left
1471 over from the last time a pid was written.
1472
ajscee3df12004-11-24 17:14:49 +000014732004-11-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1474
1475 * zassert.h: New header file to declare a quagga-specific assert macro.
1476 * log.c: (_zlog_assert_failed) New function called when assert fails
1477 to log the error and abort.
1478 * zebra.h: Include "zassert.h" instead of <assert.h>.
1479 * regex.c: Include "zassert.h" instead of <assert.h>.
1480
ajsd246bd92004-11-23 17:35:08 +000014812004-11-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1482
ajs59a06a92004-11-23 18:19:14 +00001483 * sigevent.c: (signal_init) Set up some default signal handlers
1484 so that processes will issue an error message before terminating
1485 or dumping core.
1486 (trap_default_signals) New function to set up signal handlers
1487 for various signals that may kill the process.
1488 (exit_handler) Call zlog_signal, then _exit.
1489 (core_handler) Call zlog_signal, then abort.
1490 * log.h: Declare new function zlog_signal.
1491 * log.c: (zlog_signal) New function to log information about
1492 a received signal before the process dies. Try to log a
1493 backtrace also.
1494 (quagga_signal_handler,signal_set) Should be static.
1495
14962004-11-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1497
ajsd246bd92004-11-23 17:35:08 +00001498 * log.c: (vzlog) Take a single va_list argument and use va_copy
1499 as necessary for multiple traversals.
1500 (zlog) Pass only one va_list to vzlog.
1501 (zlog_*,plog_*) Use a macro for boilerplate code; pass only one
1502 va_list to vzlog.
1503 (zlog_set_file) Remove unused 2nd argument (flags).
1504 (zlog_save_cwd,zlog_get_cwd,zlog_free_cwd) Remove unused functions.
1505 * log.h: Remove ZLOG_*_INDEX defines (no longer used).
1506 Remove unused 2nd argument from zlog_set_file prototype.
1507 Fix prototype for zlog_rotate.
1508 * command.c: (config_log_file) Remove unused 2nd arg to zlog_set_file.
1509 * vty.c: (vty_out) Fix stdarg usage to perform multiple traversals
1510 properly.
1511 (vty_log) Must use va_copy for multiple traversals of va_list arg.
1512
ajsca359762004-11-19 23:40:16 +000015132004-11-19 David Young <dyoung@pobox.com>
1514
1515 * log.c: (safe_strerror) New function: safe wrapper for strerror.
1516
ajsff29bb32004-11-19 18:29:22 +000015172004-11-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1518
1519 * sockopt.c: (setsockopt_so_recvbuf) Stop error message from being
1520 printed every time.
1521
ajsf858e492004-11-16 14:25:30 +000015222004-11-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1523
1524 * memory.h: Fix prototype for memory_init().
1525 * memory.c: Declare many functions and data structures static instead
1526 of global. Fix prototype for memory_init().
1527
gdt69e13252004-11-15 18:51:15 +000015282004-11-15 Greg Troxel <gdt@fnord.ir.bbn.com>
1529
1530 * sockopt.h: Avoid CMSG_ALIGN, and declare that sizes are without
1531 alignment (users should use CMSG_SPACE).
1532
1533 * zebra.h: Rationalize CMSG_SPACE compatibility defines. Warn if
1534 asumming 4-byte alignment, since this isn't safe.
1535
ajs7fa25ff2004-11-15 16:12:32 +000015362004-11-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1537
1538 * memory.c: (zerror) Use zlog_err instead of fprintf to stderr.
1539 Instead of exiting, log currenty memory usage and then abort.
1540 (log_memstats) New function to log memory statistics, called by
1541 zerror.
1542 (show_memory_all) Loop over new mlists array instead of calling
1543 show_memory_vty separately for each memory_list.
1544
paulb86718e2004-11-08 17:34:07 +000015452004-11-08 Paul Jakma <paul@dishone.st>
paulb35e5b42004-11-07 22:27:27 +00001546
paul2265d202004-11-08 15:43:21 +00001547 * buffer.c: Add missing include of log.h.
1548 (buffer_flush_available) written is compared against
1549 mostly against unsigned types, only for the writev do we need
1550 signed compare, so declare it as size_t and cast it to ssize_t
1551 just for the error compare when we've called writev.
1552 * buffer.h: Add comment that buffer data sizes really should be
1553 size_t.
1554
15552004-11-07 Paul Jakma <paul@dishone.st>
1556
1557 * version.h.in: add autoconf configure_input output var
paulb35e5b42004-11-07 22:27:27 +00001558
ajs49ff6d92004-11-04 19:26:16 +000015592004-11-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1560
ajs5a646652004-11-05 01:25:55 +00001561 * vty.h: Remove fields in struct vty that were related to VTY_CONTINUE
1562 capabilities (that were used only in bgpd/bgp_route.c and are now
1563 removed). Also remove some other fields that were not being
1564 used at all.
1565 * vty.c: (vty_execute) Do not test for obsolete status values VTY_START
1566 and VTY_CONTINUE.
1567 (vty_read) Remove calls to vty->output_func since that was part
1568 of the VTY_CONTINUE infrastructure that has been removed.
1569 (vty_flush) Remove code to support VTY_START and VTY_CONTINUE.
1570 (vty_close) Remove code to cancel vty->t_output thread, since that
1571 thread was never actually used.
1572
15732004-11-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1574
ajs49ff6d92004-11-04 19:26:16 +00001575 * vty.c: Vtysh connections to daemons should use buffering.
1576 (vty_out) Remove exception for vty_shell_serv, just use buffer_write.
1577 (vty_new) Increase output buffer size to 4096 rounded up to a
1578 multiple of pagesize.
1579 (vtysh_read) After command has been executed and all output buffered,
1580 call buffer_flush_available and schedule further writes if the
1581 buffers are not yet empty.
1582 (vtysh_write) New function to flush output to vtysh when the socket
1583 is writeable.
1584 (vty_event) Added new VTYSH_WRITE event for flushing buffers to vtysh
1585 clients. Also, should save read thread in vty->t_read so the
1586 thread can be cancelled in vty_close.
1587 * buffer.h: In struct buffer_data, remove unused "parent" field.
1588 Convert "unsigned char *data" to "unsigned char data[0]" to save
1589 a malloc. Declare new function buffer_flush_available that works
1590 with non-blocking sockets.
1591 * buffer.c: (buffer_data_new) Use a single malloc now that data is
1592 a variable-size array at end of structure.
1593 (buffer_data_free) Just a single free now that data is part of the
1594 structure.
1595 (buffer_write) Simplify the logic to make behavior more transparent.
1596 (buffer_flush) Decrease b->length as data is written out.
1597 (buffer_flush_vty_all) Decrease b->length as buffers are freed.
1598 (buffer_flush_vty) Decrease b->length as data is written out.
1599 (buffer_flush_available) New function to flush non-blocking sockets.
1600
paule064d6d2004-11-01 08:59:21 +000016012004-11-01 Paul Jakma <paul@dishone.st>
1602
1603 * sockopt.c: (setsockopt_pktinfo) remove, its unused.
1604
paul75e15fe2004-10-31 02:13:09 +000016052004-10-31 Paul Jakma <paul@dishone.st>
1606
1607 * vty.c: As per Andrew's suggestions..
1608 (vty_serv_un) remove flags.
1609 (vtysh_accept) close socket if we cant set NONBLOCK. Add flags.
paul66cbbce2004-10-31 16:15:33 +00001610 * keychain.c: Convert some more strtoul users to VTY_GET_INTEGER.
paul9d11a192004-10-31 16:19:24 +00001611 * memory.h: Add MTYPE_THREAD_FUNCNAME and MTYPE_THREAD_STATS
1612 * thread.c: Update stats and funcname alloc/free to use previous
paul039b9572004-10-31 16:43:17 +00001613 specific memory type defines. Use XCALLOC and sizeof the type,
1614 not the pointer.
paul70e149e2004-10-31 16:29:50 +00001615 * smux.c: fix int to size_t compile warnings
paul75e15fe2004-10-31 02:13:09 +00001616
pauldccfb192004-10-29 08:29:36 +000016172004-10-29 Paul Jakma <paul@dishone.st>
1618
1619 * vty.c: Move setting of sock to O_NONBLOCK from vty_serv_un
1620 to vtysh_accept, where sock is the actual fd we wanted to set to
1621 O_NONBLOCK, ie the /connected/ vtysh unix socket.
1622
hasso508ec912004-10-23 14:26:49 +000016232004-10-23 Hasso Tepper <hasso at quagga.net>
1624
1625 * zclient.c: Unbreak reading interface update message. Might fix
1626 blocker bugzilla #109.
1627
paul23b9c612004-10-22 11:51:57 +000016282004-10-22 Paul Jakma <paul@dishone.st>
paul7d9c6e52004-10-22 10:54:39 +00001629
1630 * sockopt.c: (getsockopt_ipv4_ifindex) no ifindex should be 0, not
paul23b9c612004-10-22 11:51:57 +00001631 -1.
1632 (setsockopt_pktinfo) unexported
1633 * sockopt.h: Cleanup SOCKOPT_CMSG defines a bit. Add a throwaway
1634 define for SOPT_SIZE_CMSG_IFINDEX_IPV4 for systems which have
paul4ccb2c42004-10-22 22:52:33 +00001635 neither IP_RECVIF nor IP_PKTINFO (eg openbsd), thanks to Rivo
1636 Nurges for highlighting problem and fix.
paul4927cf02004-10-22 16:55:10 +00001637 Fix elif that should be an else.
paul406d6712004-10-22 12:27:44 +00001638 * command.h: Cleanup the defines a bit, add helper defines and
1639 collapse all defines to use those. Add an attribute field to
1640 cmd_element to support, eg hidden or deprecated commands, add
1641 defun defines for such. All that's left to do is add logic
1642 to command.c to check these attributes... ;)
paulaf0d97e2004-10-22 23:24:43 +00001643 * zebra.h: reserve ZEBRA_ROUTE_HSLS
paul7d9c6e52004-10-22 10:54:39 +00001644
hasso6590f2c2004-10-19 20:40:08 +000016452004-10-19 Hasso Tepper <hasso at quagga.net>
1646
1647 * version.h.in: Define copyright string QUAGGA_COPYRIGHT.
1648 * print_version.c: Remove. print_version () function moved to
1649 command.[c|h].
1650 * command.c: Use QUAGGA_COPYRIGHT.
1651 * Makefile.am: Remove useless version.c and print_version.c files.
1652
hasso3fb9cd62004-10-19 19:44:43 +000016532004-10-19 Andrew J. Schorr <aschorr@telemetry-investments.com>
1654
1655 * zclient.c: (zebra_interface_address_read) If the destination address
1656 is encoded as all zeroes, load it as a NULL pointer.
1657 * if.h: Add comment describing struct connected destination field
1658 and indicating that it may be NULL. Define macros
1659 CONNECTED_DEST_HOST and CONNECTED_POINTOPOINT_HOST to help
1660 with PtP logic (distinguish between host and subnet addressing).
1661 * if.c: (if_lookup_address) Fix PtP logic to handle subnet addressing
1662 properly,
1663 (connected_lookup_address) ditto.
1664 (connected_add_by_prefix) Handle case where destination is NULL,
1665 * prefix.[c|h]: New functions ipv4_network_addr and
1666 ipv4_broadcast_addr.
1667
hassoddd85ed2004-10-13 08:18:07 +000016682004-10-13 Hasso Tepper <hasso at quagga.net>
1669
1670 * command.c: Make CMD_ERR_NOTHING_TODO nonfatal if reading
1671 configuration from file. Fixes critical bugzilla #113.
hassoc75105a2004-10-13 10:33:26 +00001672 * smux.c, smux.h: Remove all defaults to initialize smux connection to
1673 snmpd by default even if not configured to do so. "smux peer OID
1674 <password>" initializes now connection and "no smux peer" terminates
1675 it.
hassoddd85ed2004-10-13 08:18:07 +00001676
paul42d49862004-10-13 05:22:18 +000016772004-10-13 Paul Jakma <paul@dishone.st>
1678
1679 * (global) more const'ification.
1680 * sockunion.c: (sockunion_su2str) buffer should be sized
1681 SU_ADDRSTRLEN.
1682 (sockunion_log) do not return stack variables, strdup buf before
1683 return.
1684 * vty.h: Fix up the VTY_GET_INTEGER macros. Testing caller supplied
1685 values against ULONG_MAX is daft, when caller probably has passed
1686 a type that can not hold ULONG_MAX. use a temporary long instead.
1687 Add VTY_GET_LONG, make VTY_GET_INTEGER_RANGE use it, make
1688 VTY_GET_INTEGER a define for VTY_GET_INTEGER_RANGE.
1689
hassoa1494112004-10-11 12:53:17 +000016902004-10-11 Hasso Tepper <hasso at quagga.net>
1691
1692 * command.h: Sync DEFUNSH with other macros.
1693 * sockunion.c, sockunion.h: More const strings.
1694
paul9076fbd2004-10-11 09:40:58 +000016952004-10-11 Paul Jakma <paul@dishone.st>
1696
1697 * thread.c: (funcname_thread_add_timer)
1698 (funcname_thread_add_timer_msec) Fix mistakes from last change.
1699 Pointed out by Liu Xin in [quagga-dev 1609].
paulc9eca012004-10-11 11:28:44 +00001700 * if.h: mtu's should be unsigned.
1701 * routemap.{c,h}: const char updates
1702 * smux.{c,h}: ditto
paul9076fbd2004-10-11 09:40:58 +00001703
paul9035efa2004-10-10 11:56:56 +000017042004-10-10 Paul Jakma <paul@dishone.st>
paul47ca2952004-10-10 08:03:18 +00001705
1706 * version.h.in: (pid_output*) add const qualifier.
paul9035efa2004-10-10 11:56:56 +00001707 * command.h: Change DEFUN func to take const char *[] rather
1708 than char **, to begin process of fixing compile warnings in lib/.
1709 Nearly all other changes in this commit follow from this change.
1710 * buffer.{c,h}: (buffer_write) pointer-arithmetic is gccism, take
1711 const void * and cast an automatic const char *p to it.
1712 (buffer_putstr) add const
1713 * command.c: (zencrypt) const qualifier
1714 (cmd_execute_command_real) ditto
1715 (cmd_execute_command_strict) ditto
1716 (config_log_file) ditto.
1717 Fix leak of getcwd() returned string.
1718 * memory.{c,h}: Add MTYPE_DISTRIBUTE_IFNAME for struct dist ifname.
1719 * distribute.{c,h}: Update with const qualifier.
1720 (distribute_free) use MTYPE_DISTRIBUTE_IFNAME
1721 (distribute_lookup) Cast to char *, note that it's ok.
1722 (distribute_hash_alloc) use MTYPE_DISTRIBUTE_IFNAME.
1723 (distribute_get) Cast to char *, note that it's ok.
1724 * filter.c: Update with const qualifier.
1725 * if.{c,h}: ditto.
1726 * if_rmap.{c,h}: ditto.
1727 (if_rmap_lookup) Cast to char *, note that it's ok.
1728 (if_rmap_get) ditto.
1729 * log.{c,h}: Update with const qualifier.
1730 * plist.{c,h}: ditto.
1731 * routemap.{c,h}: ditto.
1732 * smux.{c,h}: ditto. Fix some signed/unsigned comparisons.
1733 * sockopt.c: (getsockopt_cmsg_data) add return for error case.
1734 * vty.c: Update with const qualifier.
1735
hasso27a43a82004-10-08 06:29:12 +000017362004-10-08 Hasso Tepper <hasso at quagga.net>
1737
1738 * routemap.c, routemap.h: Make some string arguments const.
1739
paul5973ee72004-10-08 01:36:54 +000017402004-10-05 Paul Jakma <paul@dishone.st>
1741
1742 * version.h.in: print_version declaration is here, not in automake
1743 generated version.h.
1744
hassoea8e9d92004-10-07 21:32:14 +000017452004-10-08 Hasso Tepper <hasso at quagga.net>
1746
1747 * command.c, command.h: Make argument of cmd_make_strvec function
1748 const.
1749 * command.c: Make hostname commands usable in vtysh again.
1750
hasso6ad96ea2004-10-07 19:33:46 +000017512004-10-07 Hasso Tepper <hasso at quagga.net>
1752
1753 * command.c, pid_output.c, print_version.c, vty.c, vty.h: Make more
1754 strings const.
1755
hasso8c328f12004-10-05 21:01:23 +000017562004-10-05 Hasso Tepper <hasso at quagga.net>
1757
1758 * *.[c|h]: Make many strings cons and a lot of int -> unsigned int
1759 changes to fix warnings.
1760
paul96e27c92004-10-05 14:33:43 +000017612004-10-05 Paul Jakma <paul@dishone.st>
1762
1763 * sockopt.{c,h}: add sockopt_iphdrincl_swab_{htosys,systoh},
1764 functions to change byte order between system IP_HDRINCL order
1765 and host order.
paul98c91ac2004-10-05 14:57:50 +00001766 * thread.c: (funcname_thread_add_timer_timeval) new function, add
1767 timer at specified timeval.
1768 (funcname_thread_add_timer) use funcname_thread_add_timer_timeval.
1769 (funcname_thread_add_timer_msec) ditto
paul96e27c92004-10-05 14:33:43 +00001770
hassob04c6992004-10-04 19:10:31 +000017712004-10-04 Hasso Tepper <hasso at quagga.net>
1772
1773 * memory.c, memory.h: Make char * argument of strdup functions const.
1774 * prefix.c, prefix.h: Make many arguments const. Reorder stuff in
1775 header.
1776 * log.h: Make log message const in struct message.
1777 * log.c: Fix some indenting.
1778 * network.c, network.h: Make second argument of writen() const.
1779
hassoe7168df2004-10-03 20:11:32 +000017802004-10-03 Hasso Tepper <hasso at quagga.net>
1781
1782 * command.h: Introduce SERVICE_NODE for "service <...>" commands.
1783 * command.c: Don't initialize commands that don't make sense if vtysh
1784 is used.
1785 * vty.c: Make VTY_NODE appear in vtysh.
1786
hasso18a6dce2004-10-03 18:18:34 +000017872004-10-03 James R. Leu <jleu at mindspring.com>
1788
1789 * zclient.c, zclient.h: zclient functions for router id handling.
1790 * zebra.h: New message types for router id handling.
1791
paul9172ee02004-09-27 12:46:37 +000017922004-09-27 Paul Jakma <paul@dishone.st>
1793
1794 * zebra.h: Add WANT_OSPF_WRITE_FRAGMENT for ospfd
1795 to try to fragment oversized packets. Enabled only for Linux.
1796 Add HAVE_IP_HDRINCL_BSD_ORDER to define struct ip byte order,
1797 to consolidate various ad-hoc platform defines for same thing.
1798
hassoe473b032004-09-26 16:08:11 +000017992004-09-26 Hasso Tepper <hasso at quagga.net>
1800
1801 * vty.c, sockopt.c: Fix compiler warnings.
1802
hasso52dc7ee2004-09-23 19:18:23 +000018032004-09-23 Hasso Tepper <hasso at quagga.net>
1804
1805 * linklist.h: Remove list and listnode typedefs.
1806 * *.[c|h]: list -> struct list *, listnode -> struct listnode *.
1807
paul0b3acf42004-09-17 08:39:08 +000018082004-09-17 Paul Jakma <paul@dishone.st>
1809
paulb89e60c2004-09-21 15:43:13 +00001810 * sockopt.c: Add missing bracket
1811
18122004-09-17 Paul Jakma <paul@dishone.st>
1813
paul0b3acf42004-09-17 08:39:08 +00001814 * sockopt.{c,h}: Add setsockopt_so_recvbuf, for ripd and ripngd.
1815
paul33394762004-09-13 11:27:57 +000018162004-09-13 Paul Jakma <paul@dishone.st>
1817
1818 * command.c: Update the copyright string in the default motd.
1819
gdt630e4802004-08-31 17:28:41 +000018202004-08-31 David Wiggins <dwiggins@bbn.com>
1821
1822 * hash.c (hash_iterate): Save next pointer before calling
1823 procedure, so that iteration works even if the called procedure
1824 deletes the hash backet.
1825
1826 * linklist.h (listtail): new macro, not yet used.
1827
hasso34553cc2004-08-27 13:56:39 +000018282004-08-27 Hasso Tepper <hasso at quagga.net>
1829
1830 * command.c: Install "terminal length" commands only if vty is used.
1831 Vtysh will handle it itself.
1832
gdtafa43b22004-08-26 13:12:41 +000018332004-08-26 Greg Troxel <gdt@fnord.ir.bbn.com>
1834
1835 * sockopt.h: Define method-independent macro for callers of
1836 get_ifindex to use for cmsg length.
1837
paule6822762004-08-19 04:13:29 +000018382004-08-19 Paul Jakma <paul@dishone.st>
1839
paulefba6ce2004-08-25 13:47:16 +00001840 * zebra.h: add MAX and MIN defines (eg for ospf6d)
1841
18422004-08-19 Paul Jakma <paul@dishone.st>
1843
paule6822762004-08-19 04:13:29 +00001844 * sockopt.c: include sockopt.h
1845 rename some of the _pktinfo_ functions to _ifindex, where that is
1846 their purpose.
1847 (getsockopt_ipv6_pktinfo_ifindex) renamed to
1848 getsockopt_ipv6_ifindex.
1849 (setsockopt_ipv4_pktinfo) renamed to setsockopt_ipv4_ifindex
1850 (setsockopt_pktinfo) update with previous and add comment re
1851 AF_INET portability.
1852 (setsockopt_ifindex) generic ifindex function ala
1853 setsockopt_pktinfo.
1854 (getsockopt_ipv4_pktinfo_ifindex) renamed to
1855 getsockopt_ipv4_ifindex.
1856 (getsockopt_ipv4_ifindex) rejiggling to reduce repeated
1857 ifdef/elses. pktinfo case forgot to set ifindex.
1858 (getsockopt_pktinfo_ifindex) renamed to
1859 getsockopt_ifindex. update some calls to renamed functions.
1860 * sockopt.h: Update renamed exported functions
1861 Rename the CMSG_SIZE macros to IFINDEX.
1862 Guard IPv4 PKTINFO in a conditional define.
1863
paulc0618de2004-08-18 21:52:58 +000018642004-08-18 Paul Jakma <paul@dishone.st>
1865
1866 * vty.c: (vty_serv_un) set unix vty socket to nonblocking
1867 to prevent inadvertent blocking of daemons by use of
1868 vtysh. TODO: disentangle manual paging from the buffer_write
1869 path so that unix vty can use this path too and be reliable.
1870
gdt33f92322004-07-23 16:14:32 +000018712004-07-23 Greg Troxel <gdt@poblano.ir.bbn.com>
1872
1873 * sockopt.c (getsockopt_ipv4_pktinfo_ifindex): Make this compile
1874 on NetBSD, and add comments to make it less confusing. Change the
1875 sense of the SUNOS_5 test to make parallel structure between the
1876 variables and the code.
1877
paul4f7baa02004-07-23 15:11:07 +000018782004-07-23 Paul Jakma <paul@dishone.st>
1879
1880 * sockopt.h: Add SOPT_SIZE_CMSG_PKTINFO{_IPV{4,6}} define, for
1881 sizeof pktinfo as appropriate, to be used when allocating msg
1882 buffers. export setsockopt_pktinfo() and
1883 getsockopt_pktinfo_ifindex()
1884 * sockopt.c: (setsockopt_pktinfo_ifindex) new function to portably
1885 set received ifindex sock option.
1886 (getsockopt_pktinfo_ifindex) portably retrieve ifindex.
1887 (getsockopt_cmsg_data) retrieve indicated control info from
1888 message header.
1889 (getsockopt_ipv6_pktinfo_ifindex) ipv6 version of above.
1890 (setsockopt_ipv4_pktinfo) v4 version
1891 (setsockopt_pktinfo) the exported version
1892 (getsockopt_ipv4_pktinfo_ifindex) v4 specific version
1893 (getsockopt_pktinfo_ifindex) the exported version
1894
paul05c447d2004-07-22 19:14:27 +000018952004-07-14 Paul Jakma <paul@dishone.st>
1896
1897 * sigevent.c: (quagga_signal_handler) add a global caught flag, set
1898 the flags to a constant rather increment to be kinder.
1899 (quagga_sigevent_process) new function, to do core of what
1900 quagga_signal_timer did. dont block signals at all as sig->caught
1901 is volatile sig_atomic_t and should be safe to access from signal
1902 and normal contexts. The signal blocking is unneeded paranoia, but
1903 is left intact under an ifdef, should some platform require it.
1904 Check global caught flag before iterating through array.
1905 (quagga_signal_timer) nearly everything moved to
1906 quagga_sigevent_process. Left in under ifdef, in case some
1907 platform could use a regular timer check for signals.
1908 * sigevent.h: quagga_sigevent_process declaration.
1909 * thread.c: (thread_fetch) check for signals at beginning of
1910 scheduler loop, check for signals if select returns EINTR.
1911
gdtb7797132004-07-13 13:47:25 +000019122004-07-13 Greg Troxel <gdt@poblano.ir.bbn.com>
1913
1914 * sigevent.c: Don't block SIGTRAP and SIGKILL. Blocking SIGTRAP
1915 confuses gdb, at least on NetBSD 2.0_BETA, where the block
1916 succeeds.
1917
paul5510e832004-07-09 14:00:01 +000019182004-07-09 Paul Jakma <paul@dishone.st>
1919
1920 * Merge Kunihiro's 'show route-map' change and add
1921 compatibility aliases for route-map continue
paulb9790b32004-07-09 14:05:47 +00001922 * jhash.{c,h}: New files. Bob Jenkins' public domain hashing
1923 function, as implemented in linux kernel by David Miller.
paul5510e832004-07-09 14:00:01 +00001924
paulb06c14f2004-07-09 12:24:42 +000019252004-07-09 Juris Kalnins <juris@mt.lv>
1926
1927 * if.c: (if_cmp_func) fix for interface names where name is same,
1928 but one has no number, eg "devtyp" and "devtyp0".
1929
gdt87efd642004-06-30 17:36:11 +000019302004-06-30 Greg Troxel <gdt@poblano.ir.bbn.com>
1931
1932 * Makefile.am: Make libzebra shared.
1933
paul138ce752004-06-21 10:35:59 +000019342004-06-21 Paul Jakma <paul@dishone.st>
1935
1936 * ChangeLog: fix my last update config.h -> zebra.h ;)
1937 * zebra.h: Fix gcc check.
1938
paul02ff83c2004-06-11 11:27:03 +000019392004-06-11 Sowmini Varadhan <sowmini.varadhan@sun.com>
1940
1941 * filter.c: (access_list_remark_cmd) buffer_putstr doesnt need cast
1942 to u_char. (ipv6_access_list_remark_cmd) ditto.
1943 if.c: ditto
1944 * network.c: (readn/writen) pointer arg should be type u_char.
1945 * plist.c: needs to include stream.h, not declare stream functions
1946 internally.
1947 (various) Add static qualifier to internal functions.
1948 (prefix_list_type_str) extraneous breaks in switch statement.
1949 (ip_prefix_list_description_cmd) buffer_putstr doesnt need cast
1950 * stream.h: depends on plist.h and export stream_put_prefix
1951 * vty.c: (vty_<telnet option build functions>) should use
1952 unsigned char, telnet options are 0 -> 255.
1953 * zclient.c: various u_char<->char type cleanups.
1954 * zebra.h: Having to define CMSG_* can apply to more than just
1955 BSDI_NRL.
1956
paul51a87982004-06-09 10:36:05 +000019572004-06-09 Paul Jakma <paul@dishone.st>
1958
paul138ce752004-06-21 10:35:59 +00001959 * zebra.h: __attribute__ is a gcc'ism
paul51a87982004-06-09 10:36:05 +00001960
paul5228ad22004-06-04 17:58:18 +000019612004-06-04 Paul Jakma <paul@dishone.st>
1962
1963 * type mismatch fixes
1964
hasso6708fa32004-05-18 18:46:54 +000019652004-05-18 Hasso Tepper <hasso@estpak.ee>
1966
1967 * pqueue.[c|h]: Added as part of ospf6d merge from Zebra repository.
1968
paul0a589352004-05-08 11:48:26 +000019692004-05-08 Paul Jakma <paul@dishone.st>
1970
1971 * zclient.c (zapi_ipv4_route) Follow Sowmini's lead and describe
1972 message format.
1973
19742004-05-08 Sowmini Varadhan <sowmini.varadhan@sun.com>
1975
1976 * zclient.c: (zapi_ipv4_add) collapsed into zapi_ipv4_route
1977 (zapi_ipv4_delete) ditto.
1978 (zapi_ipv4_route) add/delete a route by way of cmd arg.
1979 (zapi_ipv6_add) collapsed into zapi_ipv6_route.
1980 (zapi_ipv6_delete) ditto.
1981 (zapi_ipv6_route) add/delete a route by way of cmd arg.
1982 (zebra_interface_address_delete_read) collapsed into
1983 zebra_interface_address_read.
1984 (zebra_interface_address_delete_read) ditto.
1985 (zebra_interface_address_read) read address add/delete messages
1986 by way of type argument. Describe command message format.
1987 (zebra_interface_add_read) Unconditionally read new ifmtu6 field.
1988 Describe command message format.
1989 (zebra_interface_state_read) Unconditionally read new ifmtu6 field.
1990 (zclient_redistribute_set) Collapsed into zclient_redistribute
1991 (zclient_redistribute_unset) ditto
1992 (zclient_redistribute) set/unset redistribution.
1993 (zclient_redistribute_default_set) Collapsed into
1994 zclient_redistribute_default.
1995 (zclient_redistribute_default_unset) ditto.
1996 (zclient_redistribute_default) Redistribute default set/unset.
1997 * zclient.h: delete zapi_ipv{4,6}_add, zapi_ipv{4,6}_delete. Add
1998 zapi_ipv{4,6}_route. delete zclient_redistribute_set/unset. Add
1999 zclient_redistribute. Ditto for
2000 zclient_redistribute_default_{set/unset}.
2001
paul4a7aac12004-05-08 05:00:31 +000020022004-05-08 Sowmini Varadhan <sowmini.varadhan@sun.com>
2003
2004 * if.h: Add mtu6 field to struct interface, IPv6 MTU may differ
2005 from IPv4, and Solaris treats the MTU's differently.
2006 Add connected_add_by_prefix, for use by later patch.
2007 * if.c: (connected_add_by_prefix) Add prefix to connected list.
2008 (if_flag_dump) Solaris: Dump IFF_IPv4/6 flag
2009 (if_dump) Dump mtu6 flag, for HAVE_IPV6.
paul22528292004-05-08 05:10:38 +00002010 * command.c: (sockunion_getsockname) use socklen_t for len.
2011 (sockunion_getpeername) ditto.
paul0a589352004-05-08 11:48:26 +00002012
paul31fcdd32004-04-21 11:00:43 +000020132004-04-21 Boris Kovalenko <boris@tagnet.ru>
2014
2015 * daemon.c: (daemon) fix check for error return from setsid
2016
paulc49b3062004-01-19 21:23:37 +000020172004-01-19 Paul Jakma <paul@dishone.st>
2018
2019 * sigevent.{c,h}: New files, implement event handled signals.
2020 see signal_init() in sigevent.h.
2021
jardinc32e1b52003-12-23 09:06:51 +000020222003-12-23 Vincent Jardin <jardin@6wind.com>
2023
2024 * {command.c, memory.c, vty.c, zebra.h}: Add isisd support
2025
gdt3dbf9962003-12-22 20:18:18 +000020262003-12-22 Greg Troxel <gdt@fnord.ir.bbn.com>
2027
2028 * vty.c (vty_use_backup_config): Don't free filenames before using
2029 them for unlink.
2030
paul54aba542003-08-21 20:28:24 +000020312003-08-20 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2032
2033 * command.c: Fix <cr> display problem for command line
2034 description
2035
paule9af5c72003-05-24 11:54:31 +000020362003-05-24 Anil Madhavapeddy
2037
2038 * (sockunion.c): Incorrect bounds specified in sockunion_log()
2039
paul445f1432003-05-16 19:00:31 +000020402003-05-08 Sergiy Vyshnevetskiy <serg @ vostok.net>
2041
2042 * vty.c: -A option
2043
20442003-04-19 Hasso Tepper <hasso@estpak.ee>
2045
2046 * rip_routemap.c: sync daemon's route-map commands to have same
2047 syntax
2048
paul718e3742002-12-13 20:15:29 +000020492002-09-28 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2050
2051 * vty.c (vty_flush): One line more on vty.
2052
20532002-09-27 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
2054
2055 * vector.c (vector_lookup): Add new function.
2056
20572002-08-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
2058
2059 * thread.c (timeval_adjust): Fix unconditional crush due to
2060 FreeBSD's select() system call timeval value check.
2061
20622002-07-07 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
2063
2064 * zebra-0.93 released.
2065
20662002-06-21 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
2067
2068 * if.c (ifc_pointopoint): Add ifc_pointopoint() accoding to Frank
2069 van Maarseveen's suggestion.
2070
20712002-06-18 Kunihiro Ishiguro <kunihiro@zebra.org>
2072
2073 * command.c: Change bcopy() to memcpy().
2074
20752001-12-12 Kunihiro Ishiguro <kunihiro@zebra.org>
2076
2077 * command.c (config_password): Fix host.password clear bug.
2078 Reported by Wang Jian <lark@linux.net.cn>.
2079
20802001-08-29 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
2081
2082 * thread.c (thread_should_yield): New function to check thread
2083 should yeild it's execution to other thread. Suggested by: Rick
2084 Payne <rickp@ayrnetworks.com>
2085
20862001-08-20 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
2087
2088 * thread.c (thread_timer_cmp): Rewrite function.
2089
2090 * hash.c: Add hash_get(). Change hash_pull() to hash_release().
2091
20922001-08-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
2093
2094 * zebra-0.92a released.
2095
20962001-08-15 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
2097
2098 * zebra-0.92 released.
2099
21002001-08-12 Akihiro Mizutani <mizutani@dml.com>
2101
2102 * prefix.c (netmask_str2prefix_str): Convert "1.1.0.0 255.255.0.0"
2103 string to "1.1.0.0/16".
2104
21052001-08-10 Kunihiro Ishiguro <kunihiro@zebra.org>
2106
2107 * filter.c (access_list_lookup): access_list_lookup's first
2108 argument is changed from address family to AFI.
2109
2110 * plist.c: (prefix_list_lookup): Likewise.
2111
21122001-07-27 Akihiro Mizutani <mizutani@dml.com>
2113
2114 * plist.c: ge and le display order is changed. Old compatible
2115 rule (len <= ge-value <= le-value) is removed.
2116
21172001-07-08 Kunihiro Ishiguro <kunihiro@zebra.org>
2118
2119 * prefix.h: Temporary fix for alignment of prefix problem.
2120
21212001-06-21 Kunihiro Ishiguro <kunihiro@zebra.org>
2122
2123 * prefix.h (struct prefix): Remove safi and padding field.
2124 (struct prefix_ipv4): Likewise.
2125 (struct prefix_ipv6): Likewise.
2126 (struct prefix_ls): Likewise.
2127 (struct prefix_rd): Likewise.
2128
2129 * command.h (enum node_type): Preparation for BGP new config.
2130
2131 * vty.c (vty_end_config): Likewise.
2132
21332001-06-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2134
2135 * routemap.c (route_map_rule_delete): Call func_free when
2136 route-map rule is deleted.
2137
21382001-06-14 "Akihiro Mizutani" <mizutani@dml.com>
2139
2140 * routemap.c (route_map_index_lookup): Prevent to use deny and
2141 permit for same route-map sequence.
2142
21432001-04-12 Kunihiro Ishiguro <kunihiro@zebra.org>
2144
2145 * vty.c (vty_read_config): Fix warning.
2146
21472001-03-08 Kunihiro Ishiguro <kunihiro@zebra.org>
2148
2149 * command.c (IPV6_PREFIX_STR): Add '.' and '%' for IPv6 address
2150 strings.
2151
21522001-03-07 Kunihiro Ishiguro <kunihiro@zebra.org>
2153
2154 * zebra.h (_XPG4_2): Define _XPG4_2 and __EXTENSIONS__ for
2155 CMSG_FIRSTHDR.
2156
21572001-03-07 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
2158
2159 * zebra.h (struct in_pktinfo): structure in_pktinfo declaration.
2160
21612001-02-19 Kunihiro Ishiguro <kunihiro@zebra.org>
2162
2163 * memory.c (memory_list_lib): Add MTYPE_NEXTHOP for "show memory
2164 lib" member.
2165
21662001-02-13 Matthew Grant <grantma@anathoth.gen.nz>
2167
2168 * vty.c (vty_read_config): Revert check of integrate_default when
2169 VTYSH is defined.
2170
21712001-02-13 Kunihiro Ishiguro <kunihiro@zebra.org>
2172
2173 * vty.c (vty_read_config): Do not check integrate_default. That
2174 should be used only by vtysh.
2175
21762001-02-08 Matthew Grant <grantma@anathoth.gen.nz>
2177
2178 * vty.c (vty_serv_un): Set umask 0077.
2179 (vty_read_config): Stat for vtysh Zebra.conf, if found startup and
2180 wait for boot configuration.
2181
2182 * if.c (if_lookup_address): Make it smart implementation.
2183
2184 * sockopt.c (setsockopt_multicast_ipv4): Set up a multicast socket
2185 options for IPv4 This is here so that people only have to do their
2186 OS multicast mess in one place rather than all through zebra,
2187 ospfd, and ripd .
2188
21892001-02-04 Akihiro Mizutani <mizutani@dml.com>
2190
2191 * plist.c (vty_prefix_list_install): Even when argument is
2192 invalid, new memory is allocated. Now memory allocation is done
2193 after argument check.
2194
21952001-02-01 Kunihiro Ishiguro <kunihiro@zebra.org>
2196
2197 * zebra-0.91 is released.
2198
21992001-01-31 Akihiro Mizutani <mizutani@dml.com>
2200
2201 * vty.c (vty_login): Add vty login command.
2202
22032001-01-31 Kunihiro Ishiguro <kunihiro@zebra.org>
2204
2205 * vty.c (vty_reset): Close accept socket.
2206
22072001-01-30 Kunihiro Ishiguro <kunihiro@zebra.org>
2208
2209 * memory.h (enum): MTYPE_ATTR_TRANSIT is added for unknown transit
2210 attribute.
2211
22122001-01-22 Kunihiro Ishiguro <kunihiro@zebra.org>
2213
2214 * zclient.c (zebra_interface_address_add_read): Fetch interface
2215 address flag.
2216 (zebra_interface_address_delete_read): Likewise.
2217
22182001-01-16 Kunihiro Ishiguro <kunihiro@zebra.org>
2219
2220 * table.c (route_node_match_ipv4): Utility function for IPv4
2221 address lookup.
2222 (route_node_match_ipv6): Utility function for IPv4 address lookup.
2223
22242001-01-15 Kunihiro Ishiguro <kunihiro@zebra.org>
2225
2226 * if.c: Delete RIP_API part until new implementation comes out.
2227
22282001-01-13 Kunihiro Ishiguro <kunihiro@zebra.org>
2229
2230 * hash.h (struct Hash): Rename alloc to count. Change type to
2231 unsigned long.
2232
2233 * stream.c (stream_getc_from): New function.
2234 (stream_getw_from): Likewise.
2235
2236 * zebra.h (ZEBRA_FLAG_STATIC): Add new flag for persistent route.
2237
22382001-01-11 Kunihiro Ishiguro <kunihiro@zebra.org>
2239
2240 * flap.c: File is removed.
2241
2242 * flap.c: Likewise.
2243
2244 * roken.h: Likewise.
2245
2246 * buffer.c (buffer_new): Remove type option to buffer_new().
2247
22482001-01-10 Kunihiro Ishiguro <kunihiro@zebra.org>
2249
2250 * zclient.c (zapi_ipv4_delete): Remove OLD_RIB part.
2251
22522001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
2253
2254 * zebra-0.90 is released.
2255
2256 * command.c: Update Copyright year.
2257
22582001-01-09 Matthew Grant <grantma@anathoth.gen.nz>
2259
2260 * if.c (if_create): Register connected_free() function for
2261 deletion.
2262 (if_delete): Free connected information when the interface is
2263 deleted.
2264 (if_lookup_by_index): Fix argument type from int to unsigned int.
2265 (connected_add): Keep list in order if old info found, essential
2266 for repeatable operation in some daemons.
2267
22682001-01-09 endo@suri.co.jp (Masahiko Endo)
2269
2270 * vty.c (vty_flush): When vty->statis is VTY_CLOSE do not add vty
2271 read thread.
2272
22732001-01-08 Kunihiro Ishiguro <kunihiro@zebra.org>
2274
2275 * filter.c (access_list_delete): Access-list name is not freed.
2276
2277 * plist.c (prefix_list_delete): Prefix-list name is not freed.
2278
22792000-12-29 Kunihiro Ishiguro <kunihiro@zebra.org>
2280
2281 * zclient.c (zclient_start): Change to use UNIX domain
2282 socket for zebra communication.
2283
2284 * vector.c (vector_init): vector_alloc and vector_data_alloc is
2285 removed. All memory allocation count should be maintained by
2286 XMALLOC and XFREE macros.
2287
22882000-12-28 Kunihiro Ishiguro <kunihiro@zebra.org>
2289
2290 * zebra.h (ZEBRA_NEXTHOP_IFINDEX): Define ZEBRA_NEXTHOP_* values.
2291
22922000-12-27 Kunihiro Ishiguro <kunihiro@zebra.org>
2293
2294 * zebra.h (ZEBRA_ERR_RTEXIST): Make zebra error code to negative
2295 value.
2296
22972000-12-25 "Wataru Uno" <wataru@po.ntts.co.jp>
2298
2299 * vty.c (vtysh_read): Don't allocate new buffer because buffer is
2300 allocated in vty_new ().
2301
23022000-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2303
2304 * memory.h (enum): Add MTYPE_AS_FILTER_STR.
2305
2306 * command.c (config_write_terminal): Display "end" at the end of
2307 configuration.
2308
2309 * plist.c (vty_prefix_list_install): Use AF_INET to determine
2310 lenum length.
2311
23122000-12-13 "Wataru Uno" <wataru@po.ntts.co.jp>
2313
2314 * buffer.c (buffer_flush_vty): If IOV_MAX defined in the System,
2315 then all lines write by IOV_MAX.
2316
23172000-12-12 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
2318
2319 * command.c (config_write_file): Robust method for writing
2320 configuration file and recover from backing up config file.
2321
23222000-11-29 Kunihiro Ishiguro <kunihiro@zebra.org>
2323
2324 * smux.c (smux_connect): More fail check.
2325 (smux_trap): When SMUX connection is not established, do nothing.
2326
23272000-11-28 Gleb Natapov <gleb@nbase.co.il>
2328
2329 * thread.c (thread_fetch): Execut event list first. Old event
2330 list is renamed to ready list. With this change, event thread is
2331 executed before any other thread.
2332
2333 * thread.h (struct thread_master): Add ready list.
2334
23352000-11-28 Kunihiro Ishiguro <kunihiro@zebra.org>
2336
2337 * linklist.c (listnode_add_after): Add node right after the
2338 listnode pointer.
2339
23402000-11-27 Kunihiro Ishiguro <kunihiro@zebra.org>
2341
2342 * smux.h: Pass struct variable to WriteMethod.
2343
23442000-11-25 Frank van Maarseveen <F.vanMaarseveen@inter.NL.net>
2345
2346 * if.c (if_lookup_address): When looking up interface with IP
2347 address, Sometimes multiple interfaces will match. Now PtP
2348 interfaces prevail in such a case which seem the right thing to
2349 do: There will probably also be host routes which usually prevail
2350 over network routes.
2351
23522000-11-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2353
2354 * smux.c (smux_trap): SMUX trap implementation.
2355
23562000-11-19 Akihiro Mizutani <mizutani@dml.com>
2357
2358 * plist.c: Add automatic conversion function of an old rule.
2359 ex.) 10.0.0.0/8 ge 8 -> 10.0.0.0/8 le 32
2360
23612000-11-16 Yon Uriarte <ukl2@rz.uni-karlsruhe.de>
2362
2363 * zclient.c (zebra_interface_add_read): Read hardware address when
2364 hw_addr_len is greater than 0.
2365
23662000-11-15 Akihiro Mizutani <mizutani@dml.com>
2367
2368 * plist.c: The rule of "len <= ge-value <= le-value"
2369 was changed to "len < ge-value <= le-value".
2370
23712000-11-09 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2372
2373 * memory.[ch]: Added #define and functions for ospf6d.
2374
2375 * log.[ch]: some platform says that the data of used va_list
2376 is undefined. Changed to hold list of va_list for each
2377 vsnprintf.
2378
23792000-11-07 Rick Payne <rickp@rossfell.co.uk>
2380
2381 * memory.h (enum): Add MTYPE_COMMUNITY_REGEXP.
2382
23832000-11-06 Kunihiro Ishiguro <kunihiro@zebra.org>
2384
2385 * command.c (config_exit): Fix bug of missing break after case
2386 BGP_VPNV4_NODE.
2387
23882000-10-30 Kunihiro Ishiguro <kunihiro@zebra.org>
2389
2390 * vector.c (vector_unset): Check i is not nevative.
2391
23922000-10-24 Arkadiusz Miskiewicz <misiek@pld.org.pl>
2393
2394 * smux.c (smux_sock): Set terminating '\0'. Check address family.
2395
2396 * vty.c (vty_serv_sock_addrinfo): Set terminating '\0'. Use
2397 gai_strerror. Check address family.
2398
23992000-10-23 Jochen Friedrich <jochen@scram.de>
2400
2401 * smux.c: Use linklist rather than vector.
2402 (smux_getnext): A SMUX subagent has to behave as if it manages the
2403 whole SNMP MIB tree itself. It's the duty of the master agent to
2404 collect the best answer and return it to the manager. See RFC 1227
2405 chapter 3.1.6 for the glory details :-). ucd-snmp really behaves
2406 bad here as it actually might ask multiple times for the same
2407 GETNEXT request as it throws away the answer when it expects it in
2408 a different subtree and might come back later with the very same
2409 request.
2410
24112000-10-23 Kunihiro Ishiguro <kunihiro@zebra.org>
2412
2413 * command.c (cmd_init): Log related command are only installed for
2414 terminal mode.
2415
24162000-10-21 Kunihiro Ishiguro <kunihiro@zebra.org>
2417
2418 * Makefile.am (libzebra_a_SOURCES): Remove duplicated buffer.c.
2419
2420 * zebra.h: Remove #warn directive.
2421
24222000-10-20 Kunihiro Ishiguro <kunihiro@zebra.org>
2423
2424 * keychain.c (keychain_init): Register "key chain" command to
2425 KEYCHAIN_NODE and KEYCHAIN_KEY_NODE.
2426
2427 * vty.c (vty_end_config): Fix missing vty_cinfig_unlock for other
2428 CONFIG_NODE.
2429
2430 * command.c (config_end): Likewise.
2431
2432 * keychain.c (keychain_get): Key is sorted by it's identifier
2433 value.
2434
24352000-10-19 Kunihiro Ishiguro <kunihiro@zebra.org>
2436
2437 * linklist.c (list_delete_all_node): Call delete function if it is
2438 defined.
2439
2440 * command.c (cmd_execute_command_strict): Add modification for
2441 vtysh.
2442 (cmd_execute_command_strict): Remove first argument cmdvec because
2443 it is global varibale in command.c.
2444
24452000-10-18 Kunihiro Ishiguro <kunihiro@zebra.org>
2446
2447 * command.c (cmd_init): Install
2448 copy_runningconfig_startupconfig_cmd only in terminal mode.
2449
2450 * linklist.c (list_delete_node): Simplify the function.
2451 (listnode_lookup): Renamed from list_lookup_node.
2452
24532000-10-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2454
2455 * stream.h: Undef stream_read and stream_write without
2456 parenthesis.
2457
2458 * newlist.c: File removed.
2459
2460 * newlist.h: Likewise.
2461
2462 * linklist.c (list_new): Remove list_init(). To allocate new
2463 linked list, please use list_new().
2464 (listnode_add): Remove list_add_node(). To add new node to linked
2465 list, please use listnode_add().
2466 (list_delete_by_val): Revemove fucntion.
2467
24682000-10-16 Nobuaki Tanaka <nobby@po.ntts.co.jp>
2469
2470 * table.c (route_table_free): Reimplement route_table_free().
2471
24722000-10-11 Kunihiro Ishiguro <kunihiro@zebra.org>
2473
2474 * keychain.c (keychain_get): Register key_delete_func to key
2475 list's delete function. Use linklist.c instead of newlist.c.
2476
24772000-10-04 Akihiro Mizutani <mizutani@dml.com>
2478
2479 * filter.c (access_list_remark): Add access-list's remark command.
2480 (no_access_list): "no access-list 100 permit any" error message
2481 bug is fixed.
2482
24832000-10-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2484
2485 * memory.h (enum): Add MTYPE_SOCKUNION.
2486
24872000-10-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2488
2489 * zebra-0.89 is released.
2490
24912000-10-01 Kunihiro Ishiguro <kunihiro@zebra.org>
2492
2493 * linklist.c (list_add_node_head): Delete unused function.
2494 (list_add_node_tail): Likewise.
2495
24962000-09-26 Kunihiro Ishiguro <kunihiro@zebra.org>
2497
2498 * stream.c (stream_read_unblock): Add new function for unblocking
2499 read.
2500
25012000-09-26 Jochen Friedrich <jochen@nwe.de>
2502
2503 * smux.c (smux_register): Fix bug of can't register more than one
2504 MIB with SMUX.
2505
25062000-09-26 Makoto Otsuka <otsuka@inl.ntts.co.jp>
2507
2508 * vty.c (vty_close): Fix memory leak of sb_buffer.
2509 (vty_new): Likewise.
2510
25112000-09-21 steve@Watt.COM (Steve Watt)
2512
2513 * log.h: Do not declare zlog_priority[0] variable.
2514
25152000-09-12 Kunihiro Ishiguro <kunihiro@zebra.org>
2516
2517 * linklist.h (struct _list ): Add member cmp for compare function.
2518 (struct _list ): Member up is deleted
2519
25202000-09-12 David Lipovkov <dlipovkov@OpticalAccess.com>
2521
2522 * if.c: Include RIP_API header when RIP API is enabled.
2523
25242000-09-10 Kunihiro Ishiguro <kunihiro@zebra.org>
2525
2526 * prefix.c (prefix_free): Siplify prefix_free().
2527
2528 * keychain.c (key_match_for_accept): strncmp check bug is fixed.
2529
25302000-09-07 Kunihiro Ishiguro <kunihiro@zebra.org>
2531
2532 * zebra.h: Merge roken.h into zebra.h.
2533
25342000-09-05 Akihiro Mizutani <mizutani@dml.com>
2535
2536 * routemap.c (route_map_init_vty): Install route-map command to
2537 RMAP_NODE.
2538
25392000-08-22 Kunihiro Ishiguro <kunihiro@zebra.org>
2540
2541 * thread.c (thread_get_id): Remove pthread related garbage.
2542
2543 * command.h (struct host): Likewise.
2544
2545 * zebra.h: Likewise.
2546
25472000-08-20 Kunihiro Ishiguro <kunihiro@zebra.org>
2548
2549 * command.h (node_type ): Add AAA node for authentication.
2550
2551 * vty.c (vty_close): Do not close stdout.
2552
25532000-08-18 Kunihiro Ishiguro <kunihiro@zebra.org>
2554
2555 * vty.c (vty_init_vtysh): Added for vtysh.
2556
2557 * distribute.c (districute_list_prefix_all): Interface independent
2558 filter can be set.
2559 (distribute_list_all): Likewise.
2560 (config_show_distribute): Display current distribute-list status
2561 for "show ip protocols".
2562
25632000-08-18 Akihiro Mizutani <mizutani@dml.com>
2564
2565 * command.c (config_terminal_no_length): no terminal monitor ->
2566 terminal no monitor
2567 (cmd_init): Do not install service_terminal_length_cmd into
2568 ENABLE_NODE.
2569
2570 * vty.c (terminal_no_monitor): no terminal length -> terminal no
2571 length.
2572
25732000-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2574
2575 * zebra-0.88 is released.
2576
25772000-08-17 Magnus Ahltorp <ahltorp@nada.kth.se>
2578
2579 * vty.h (struct vty ): Add iac_sb_in_progress and sb_buffer for
2580 better IAC handling.
2581
2582 * vty.c (vty_telnet_option): Change telnet option handling.
2583
25842000-08-15 Gleb Natapov <gleb@nbase.co.il>
2585
2586 * zclient.c (zclient_redistribute_unset): New function added.
2587
25882000-08-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2589
2590 * zclient.c (zebra_interface_add_read): Change ifindex restore
2591 size from two octet to four.
2592 (zebra_interface_state_read): Likewise.
2593 (zebra_interface_address_add_read): Likewise.
2594
25952000-08-13 Kunihiro Ishiguro <kunihiro@zebra.org>
2596
2597 * vty.c (vty_event): Use vector_set_index() instead of
2598 vector_set().
2599
26002000-08-07 Kunihiro Ishiguro <kunihiro@zebra.org>
2601
2602 * zebra.h (ZEBRA_XXX_DISTANCE_DEFAULT): Define Default
2603 Administrative Distance of each protocol.
2604
26052000-08-07 Matthew Grant <grantma@anathoth.gen.nz>
2606
2607 * if.h (struct interface ): Add new member bandwidth to struct
2608 interface.
2609
2610 * zclient.c (zebra_interface_add_read): Fetch bandwidth value.
2611 (zebra_interface_state_read): Likewise.
2612
26132000-08-07 Gleb Natapov <gleb@nbase.co.il>
2614
2615 * routemap.c (route_map_event_hook): New hook route_map_event_hook
2616 is added. This hook is called when route-map is changed. The
2617 parameters passed to the hook are 'event' and 'route-map name'
2618
2619 * routemap.h: Add prototype for route_map_event_hook().
2620
26212000-08-06 Kunihiro Ishiguro <kunihiro@zebra.org>
2622
2623 * zclient.c (zebra_ipv4_route): zebra_ipv4_route(),
2624 zebra_ipv4_add(), zebra_ipv4_delete() are removed.
2625
2626 * routemap.c (route_map_empty): Add new function.
2627 (route_map_delete): Use route_map_index_delete() instead of
2628 route_map_index_free().
2629 (route_map_index_free): Function removed.
2630
26312000-08-06 Gleb Natapov <gleb@nbase.co.il>
2632
2633 * routemap.c (route_map_index_delete): Add check for route-map is
2634 empty or not.
2635
26362000-08-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2637
2638 * zclient.c (zebra_ipv4_add): Change socket arguemnt with struct
2639 zclient.
2640
26412000-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2642
2643 * zclient.h (struct zebra): Add obuf for output buffer.
2644
2645 * if.c: Remove #ifdef NRL enclosing if_nametoindex() and
2646 if_indextoname().
2647
26482000-08-02 David Lipovkov <davidl@nbase.co.il>
2649
2650 * if.h (IF_PSEUDO_UNSET): IF_PSEUDO related macro added.
2651 (IF_UNKNOWN_SET): IF_UNKNOWN related macro deleted.
2652
2653 * if.c (interface_pseudo): Add "pseudo" command to interface node.
2654 (no_interface_pseudo): Add "no pseudo" command to interface node.
2655
2656 * zclient.c (zebra_interface_add_read): Set pseudo flag when it is
2657 send from zebra.
2658
26592000-08-01 Kunihiro Ishiguro <kunihiro@zebra.org>
2660
2661 * zebra.h (ZEBRA_IPV4_NEXTHOP_LOOKUP): Add new message.
2662 (ZEBRA_IPV6_NEXTHOP_LOOKUP): Likewise.
2663
2664 * vty.c (vty_serv_un): Use AF_UNIX for backward compatibility.
2665
26662000-07-31 Kunihiro Ishiguro <kunihiro@zebra.org>
2667
2668 * vty.c: Use vector for VTY server thread listing instead of
2669 single value.
2670
26712000-07-30 Kunihiro Ishiguro <kunihiro@zebra.org>
2672
2673 * keychain.c (no_key_chain): "no key chain WORD" command is added.
2674
26752000-07-29 Kunihiro Ishiguro <kunihiro@zebra.org>
2676
2677 * command.c (config_from_file): If command fail in
2678 KEYCHAIN_KEY_NODE, down to KEYCHAIN_NODE.
2679
2680 * vty.h (struct vty ): Add index_sub member.
2681
26822000-07-27 Akihiro Mizutani <mizutani@dml.com>
2683
2684 * if.c: Help strings updates.
2685
26862000-07-11 Akihiro Mizutani <mizutani@dml.com>
2687
2688 * command.c (no_config_enable_password): Add "no enable password"
2689 command.
2690 (config_write_host): Display password string.
2691
2692 * routemap.c (route_map_delete_match): Add support for delete
2693 match without argument.
2694 (route_map_delete_set): Likewise.
2695
26962000-07-09 Kunihiro Ishiguro <kunihiro@zebra.org>
2697
2698 * command.h (node_type ): Change KEYCHAIN_NODE and
2699 KEYCHAIN_KEY_NODE place just before INTERFACE_NODE.
2700
27012000-07-09 Jochen Friedrich <jochen@scram.de>
2702
2703 * smux.c (config_write_smux): Fixes the option to override OID and
2704 password for SMUX.
2705
27062000-07-09 Kunihiro Ishiguro <kunihiro@zebra.org>
2707
2708 * command.h (node_type ): Add SMUX_NODE for SMUX configuration.
2709
27102000-07-09 Toshiaki Takada <takada@zebra.org>
2711
2712 * command.c: Sort descvec command's help.
2713
2714 * vty.c (vty_describe_command): Display '<cr>' at the end of
2715 descriptions.
2716
27172000-07-05 Toshiaki Takada <takada@zebra.org>
2718
2719 * command.c (cmd_ipv6_match), (cmd_ipv6_prefix_match): Fix bug
2720 treatment of double colon.
2721
27222000-07-04 Kunihiro Ishiguro <kunihiro@zebra.org>
2723
2724 * zclient.h: Add zclient_redistribute_default_{set,unset}().
2725
2726 * keychain.c: New file for authentication key management.
2727 * keychain.h: Likewise.
2728
2729 * tcpfilter.c: New file for TCP/UDP base filtering using ipfw or
2730 ipchains.
2731 * tcpfilter.h: Likewise.
2732
2733 * flap.h: New file for route flap dampening.
2734 * flap.c: Likewise.
2735
27362000-07-04 Toshiaki Takada <takada@zebra.org>
2737
2738 * filter.c (struct filter): Add exact flag.
2739 (access_list): Add exact-match command.
2740 (ipv6_access_list): Add exact-match command.
2741
27422000-07-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2743
2744 * zebra.h (ZEBRA_REDISTRIBUTE_DEFAULT_ADD): New message for
2745 request default route.
2746
27472000-07-01 Hideaki YOSHIFUJI ($B5HF#1QL@(B) <yoshfuji@ecei.tohoku.ac.jp>
2748
2749 * smux.c: Add IPv6 smux connection code.
2750
27512000-06-15 Kunihiro Ishiguro <kunihiro@zebra.org>
2752
2753 * vty.c (vty_complete_command): To cooperate readline library,
2754 returned string is newly allocated. So some match function case
2755 need, free of memory.
2756
27572000-06-12 Akihiro Mizutani <mizutani@dml.com>
2758
2759 * distribute.c: Fix help strings.
2760
27612000-06-11 Kunihiro Ishiguro <kunihiro@zebra.org>
2762
2763 * command.c (cmd_complete_command): Add check for vector_slot
2764 (vline, index) is not NULL when calculating lcd.
2765 (cmd_entry_function): First check variable arguemnt to prevent it
2766 from completion.
2767
27682000-06-10 Kunihiro Ishiguro <kunihiro@zebra.org>
2769
2770 * vty.h (struct vty ): Add output_count member for displaying
2771 output route count. Remove arugment arg from output_func because
2772 the value is passed by vty argument. Change output to output_rn.
2773 Add output_clean function pointer member. Add output_type member.
2774
27752000-06-10 Toshiaki Takada <takada@zebra.org>
2776
2777 * command.c (show_startup_config): Add "show startup-config"
2778 command.
2779
27802000-06-06 Akihiro Mizutani <mizutani@dml.com>
2781
2782 * filter.c: Fix help strings.
2783
27842000-06-05 Kunihiro Ishiguro <kunihiro@zebra.org>
2785
2786 * prefix.h (struct prefix_rd): New prefix structure for routing
2787 distinguisher.
2788 (struct prefix): Add padding to every prefix structure.
2789
2790
2791 * routemap.c (route_map_add_match): When completely same match
2792 statement exists, don't duplicate it.
2793
27942000-06-05 Akihiro Mizutani <mizutani@dml.com>
2795
2796 * routemap.c: Change NAME to WORD.
2797
2798 * plist.c: Fix help strings.
2799
28002000-06-02 Akihiro Mizutani <mizutani@dml.com>
2801
2802 * routemap.c: Fix route-map help strings.
2803
28042000-06-01 Kunihiro Ishiguro <kunihiro@zebra.org>
2805
2806 * command.c (cmd_filter_by_completion): Fix CMD_VARARG treatment
2807 to filter other non vararg commands.
2808
2809 * routemap.c (route_map_init_vty): Use install_default() for
2810 install common commands into route-map node..
2811
28122000-06-01 Akihiro Mizutani <mizutani@dml.com>
2813
2814 * command.h (OSPF_STR): Macro added.
2815
28162000-05-31 Kunihiro Ishiguro <kunihiro@zebra.org>
2817
2818 * command.c (cmd_complete_command): LCD completion must not modify
2819 installed command string.
2820
2821 * plist.c (ipv6_prefix_list): Fix wrong syntax definition. Change
2822 X:X::X:X to X:X::X:X/M.
2823
28242000-05-31 Toshiaki Takada <takada@zebra.org>
2825
2826 * vty.c (show_history): New defun added.
2827
28282000-05-30 Kunihiro Ishiguro <kunihiro@zebra.org>
2829
2830 * command.h (CMD_COMPLETE_LIST_MATCH): New define for completion
2831 list. CMD_COMPLETE_MATCH is used for LCD completion.
2832
2833 * vty.c (vty_complete_command): Matched string's LCD is completed.
2834
2835 * command.c (cmd_lcd): New function for calculate LCD of matched
2836 strings.
2837
28382000-05-26 Kunihiro Ishiguro <kunihiro@zebra.org>
2839
2840 * command.c (install_default): config_write_terminal_cmd,
2841 config_write_file_cmd, config_write_memory_cmd are added to
2842 default node.
2843
2844 * memory.c (memory_init): Divide show memory command into each
2845 sort.
2846
2847 * command.c (cmd_init): config_write_terminal_cmd,
2848 config_write_file_cmd, config_write_memory_cmd are added to
2849 CONFIG_NODE.
2850
2851 * routemap.c (route_map_index_free): New function.
2852 (no_route_map_all): New DEFUN for "no route-map NAME".
2853
2854 * filter.c (no_access_list_all): New DEFUN for delete access-list
2855 with NAME.
2856 (no_ipv6_access_list_all): Likewise.
2857
28582000-05-23 Kunihiro Ishiguro <kunihiro@zebra.org>
2859
2860 * plist.c: Change IPV6_PREFIX to X:X::X:X. When "any" is
2861 specified, user can not use "ge" and "le" statement.
2862
28632000-05-22 Thomas Molkenbur <tmo@datus.datus.com>
2864
2865 * routemap.c (route_map_add_set): Fix bug of next pointer missing.
2866
2867 * table.c (route_table_free): Like wise.
2868
28692000-05-22 Toshiaki Takada <takada@zebra.org>
2870
2871 * vty.c (vty_stop_input): Set history pointer to the latest one.
2872
2873 * vty.c (vty_hist_add): Do not add command line history when input
2874 is as same as previous one.
2875
28762000-05-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2877
2878 * memory.h (enum): Add MTYPE_ECOMMUNITY and MTYPE_ECOMMUNITY_VAL.
2879
28802000-05-13 Kunihiro Ishiguro <kunihiro@zebra.org>
2881
2882 * command.h (node_type ): Add BGP_VPNV4_NODE.
2883
28842000-05-08 Kunihiro Ishiguro <kunihiro@zebra.org>
2885
2886 * vty.c (vtysh_accept): Add cast of struct sockaddr * to bind
2887 argument. Reported by: Vesselin Mladenov <mladenov@netbg.com>.
2888
2889 * filter.c (ipv6_access_list): Add IPv6 prefix example instead of
2890 IPv4 example. Reported by: Love <lha@s3.kth.se>.
2891
2892 * command.c (cmd_complete_command): Make it sure last element of
2893 matchvec is NULL. This fix problem which cause crush in
2894 vty_complete_command(). Reported by: JINMEI Tatuya
2895 <jinmei@isl.rdc.toshiba.co.jp>.
2896
28972000-04-28 Love <lha@s3.kth.se>
2898
2899 * prefix.h (struct prefix): Add padding.
2900
29012000-04-28 Kunihiro Ishiguro <kunihiro@zebra.org>
2902
2903 * command.c (show_version): Update copyright year.
2904
29052000-04-27 Kunihiro Ishiguro <kunihiro@zebra.org>
2906
2907 * routemap.c (route_map_apply): When map is NULL, return deny.
2908
29092000-04-26 Kunihiro Ishiguro <kunihiro@zebra.org>
2910
2911 * filter.c (access_list_apply): When access is NULL, return deny.
2912
2913 * plist.c (prefix_list_apply): When plist is NULL, return deny.
2914
29152000-04-23 Kunihiro Ishiguro <kunihiro@zebra.org>
2916
2917 * command.h (node_type ): Change RDISC_NODE to IRDP_NODE.
2918
29192000-04-18 Toshiaki Takada <takada@zebra.org>
2920
2921 * filter.[ch] (access_list_add_hook), (access_list_delete_hook):
2922 Add argument for hook function to give struct access_list *.
2923
29242000-04-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2925
2926 * plist.c (prefix_list_entry_match): In case of le nor ge is
2927 specified, exact match is performed.
2928 (prefix_list_entry_match): Add any entry matching check.
2929
29302000-04-09 Kunihiro Ishiguro <kunihiro@zebra.org>
2931
2932 * vty.c (exec_timeout): Separate timeout setting to minutes and
2933 seconds.
2934 (no_exec_timeout): Add "no exec-timeout" command.
2935
2936 * vty.h (VTY_TIMEOUT_DEFAULT): Change default value from 300 to
2937 600.
2938
29392000-03-31 Jochen Friedrich <jochen@scram.de>
2940
2941 * smux.h (SMUX_CLOSE): The SMUX_CLOSE PDU is implicit integer, so
2942 it is a primitive encoding and not constructed.
2943
29442000-03-28 Toshiaki Takada <takada@zebra.org>
2945
2946 * memory.[ch] (enum): Add MTYPE_OSPF_EXTERNAL_INFO.
2947
29482000-03-26 Love <lha@s3.kth.se>
2949
2950 * zclient.c (zclient_read): Add nbytes size check for
2951 ZEBRA_HEADER_SIZE. Check return value of steam_read ().
2952
29532000-03-26 Rick Payne <rickp@rossfell.co.uk>
2954
2955 * routemap.c: Add flexible route-map commands such as on-match
2956 next, on-match goto N.
2957
2958 * routemap.h: Likewise
2959
29602000-03-23 Adrian Bool <aid@u.net.uk>
2961
2962 * command.c (config_log_trap): Add new command "log trap
2963 PRIORITY".
2964
29652000-03-14 Toshiaki Takada <takada@zebra.org>
2966
2967 * memory.c (struct memory_list): Add Link List and Link Node
2968 to view.
2969
2970 * memory.h (enum): Remove MTYPE_OSPF_EXTERNAL_ROUTE.
2971
29722000-01-20 Hideto Yamakawa <hideto.yamakawa@soliton.co.jp>
2973
2974 * str.c (snprintf): Fix bug of calling sprintf instead of
2975 vsprintf.
2976
29772000-01-16 Kunihiro Ishiguro <kunihiro@zebra.org>
2978
2979 * memory.h (enum): Add MTYPE_RIP_PEER.
2980
29812000-01-15 Toshiaki Takada <takada@zebra.org>
2982
2983 * memory.h (enum): Add MTYPE_OSPF_CRYPT_KEY.
2984
29852000-01-15 Kunihiro Ishiguro <kunihiro@zebra.org>
2986
2987 * command.h (node_type ): Add MASC_NODE for masc.
2988
29892000-01-09 Wang Jianliang <wangjl@soim.net>
2990
2991 * routemap.c (route_map_index_add): When route_map_index is not
2992 empty and insert new item at the head, it can cause core dump.
2993 Fix "if (index == map->head)" to "if (point == map->head).
2994 (route_map_add_set): If there is an old set command, override old
2995 set command with new one.
2996 (route_map_index_delete): Use while() instead of for for() for
2997 logical correctness.
2998
29991999-12-26 Kunihiro Ishiguro <kunihiro@zebra.org>
3000
3001 * memory.h (enum): Add MTYPE_BGP_STATIC.
3002
30031999-12-23 Alex Zinin <zinin@amt.ru>
3004 * zebra.h, zclient.*: dynamic int up/down message
3005 support
3006
30071999-12-10 Kunihiro Ishiguro <kunihiro@zebra.org>
3008
3009 * thread.c (thread_cancel_event): Add a function for clean up
3010 events.
3011
30121999-12-09 Kunihiro Ishiguro <kunihiro@zebra.org>
3013
3014 * dropline.c: Delete file.
3015 dropline.h: Linewise.
3016
30171999-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
3018
3019 * filter.c (access_list_filter_delete): Wrong pointer
3020 access->master was pointed out after access is freed. I store
3021 master value at the beginning of the function.
3022
30231999-12-08 Kunihiro Ishiguro <kunihiro@zebra.org>
3024
3025 * vty.c (exec_timeout): Change of VTY timeout affect to current
3026 VTY connection.
3027 (vty_accept): Instead of immediate exit() return -1.
3028
30291999-12-07 Kunihiro Ishiguro <kunihiro@zebra.org>
3030
3031 * vty.c (vty_configure_lock): Configuration lock function added.
3032 Only one VTY can use CONFI_NODE at the same time.
3033
3034 * log.c: Delete zvlog_* functions. Now zlog_* does the same
3035 thing.
3036
3037 * log.c (log_init): Function removed.
3038 (log_close): Likewise.
3039 (log_flush): Likewise.
3040 (log_open): Likewise.
3041
3042 * vty.c (terminal_monitor): Add new command.
3043 (no_terminal_monitor): Likewise.
3044
3045 * log.c (old_log): Function removed.
3046 (old_log2): Likewise.
3047 (old_log_warn): Likewise.
3048
30491999-12-04 Toshiaki Takada <takada@zebra.org>
3050
3051 * command.c (cmd_ipv6_match): New function added.
3052 (cmd_ipv6_prefix_match): Likewise.
3053
30541999-12-04 Kunihiro Ishiguro <kunihiro@zebra.org>
3055
3056 * command.c (cmd_ipv6_match):
3057
3058 * table.c: Delete #ifdef HAVE_MBGPV4.
3059
3060 * prefix.h (struct prefix): Add safi member.
3061 (struct prefix_ipv4): Likewise.
3062 (struct prefix_ipv6): Likewise.
3063
30641999-12-04 Rumen Svobodnikov <rumen@linux.tu-varna.acad.bg>
3065
3066 * memory.c (struct mstat): Revert to support MEMORY_LOG.
3067
30681999-11-25 Kunihiro Ishiguro <kunihiro@zebra.org>
3069
3070 * version.h: Bump up to 0.81c for testing new kernel codes.
3071
30721999-11-21 Kunihiro Ishiguro <kunihiro@zebra.org>
3073
3074 * thread.h (struct thread): Pthread support is disabled all
3075 platform.
3076
30771999-11-21 Michael Handler <handler@sub-rosa.com>
3078
3079 * Include <limits.h> and <strings.h> under SUNOS_5.
3080
30811999-11-21 Kunihiro Ishiguro <kunihiro@zebra.org>
3082
3083 * sockunion.c (in6addr_cmp): Enclosed by #define HAVE_IPV6
30841999-11-13 Kunihiro Ishiguro <kunihiro@zebra.org>
3085
3086 * command.h (node_type ): Add BGP_IPV4_NODE and BGP_IPV6_NODE.
3087
30881999-11-12 Kunihiro Ishiguro <kunihiro@zebra.org>
3089
3090 * command.c (disable): Add `disable' command.
3091
30921999-11-09 Kunihiro Ishiguro <kunihiro@zebra.org>
3093
3094 * plist.c (vty_prefix_list_install): Add any check.
3095
30961999-11-04 Kunihiro Ishiguro <kunihiro@zebra.org>
3097
3098 * command.h (node_type ): Add DUMP_NODE.
3099
31001999-11-03 Kunihiro Ishiguro <kunihiro@zebra.org>
3101
3102 * smux.c: Change default SMUX oid to compatible with gated.
3103
31041999-10-30 Kunihiro Ishiguro <kunihiro@zebra.org>
3105
3106 * if_rmap.c: New file added.
3107
3108 * if_rmap.h: New file added.
3109
31101999-10-29 Alex Zinin <zinin@amt.ru>
3111
3112 * hash.c: add hash_free() function
3113
31141999-10-25 Kunihiro Ishiguro <kunihiro@zebra.org>
3115
3116 * hash.c (hash_clean): Add clean function.
3117
3118 * plist.c (prefix_list_reset): Add reset function.
3119
3120 * filter.c (access_list_reset): Add reset function.
3121
31221999-10-17 Kunihiro Ishiguro <kunihiro@zebra.org>
3123
3124 * client.c: Merged with zclient.c.
3125 * client.h: Merged with zclient.h.
3126
31271999-10-15 Jordan Mendelson <jordy@wserv.com>
3128
3129 * md5.c: Imported from GNU C Library.
3130 * md5-gnu.h: Likewise.
3131
31321999-10-15 Jochen Friedrich <jochen@scram.de>
3133
3134 * smux.c (smux_getresp_send): SMUX_GETRSP codes improvement.
3135
31361999-10-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3137
3138 * smux.h: New file added.
3139
3140 * snmp.c: Rename to smux.c.
3141
31421999-10-02 Kunihiro Ishiguro <kunihiro@zebra.org>
3143
3144 * command.c (cmd_execute_command_strict): Filter ambious commands.
3145 (cmd_filter_by_string): Change to return enum match_type.
3146
31471999-10-01 Toshiaki Takada <takada@zebra.org>
3148
3149 * vty.c (vty_describe_fold): New function which does VTY
3150 description line fold.
3151 * vty.c (vty_describe_command): Set description column.
3152
31531999-09-30 Kunihiro Ishiguro <kunihiro@zebra.org>
3154
3155 * plist.c (prefix_list_init_ipv4): VTY user interface is improved.
3156
31571999-09-26 Kunihiro Ishiguro <kunihiro@zebra.org>
3158
3159 * command.c (cmd_filter_by_string): Fix bug of CMD_IPV4 and
3160 CMD_IPV4_PREFIX check. Both return type must be exact_match.
3161
31621999-09-24 Toshiaki Takada <takada@zebra.org>
3163
3164 * command.c (cmd_filter_by_completion),
3165 (is_cmd_ambiguous): Check IPv4 address, IPv4 prefix and range
3166 parameter matches range.
3167
31681999-09-22 Kunihiro Ishiguro <kunihiro@zebra.org>
3169
3170 * routemap.c (route_map_apply): Returm RM_DENYMATCH when no match
3171 is performed.
3172
31731999-09-21 Kunihiro Ishiguro <kunihiro@zebra.org>
3174
3175 * vty.c (vty_read): Control-C stop VTY_MORE mode.
3176
31771999-09-20 Kunihiro Ishiguro <kunihiro@zebra.org>
3178
3179 * command.h (node_type ): Add ACCESS_IPV6_NODE and
3180 PREFIX_IPV6_NODE.
3181
3182 * distribute.h: New file added.
3183
3184 * command.h (node_type ): Delete DISTRIBUTE_NODE.
3185
31861999-09-18 Kunihiro Ishiguro <kunihiro@zebra.org>
3187
3188 * vty.c (vty_terminate_all): New function added for reload
3189 support.
3190
31911999-09-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3192
3193 * memory.h (enum): Add new type MTYPE_OSPF_EXTERNAL_ROUTE.
3194
31951999-08-31 Janos Farkas <chexum@shadow.banki.hu>
3196
3197 * vty.c (vty_read): Handle also 0x7f (alt-backspace), just like
3198 esc-ctrl-h (delete word backwards).
3199
32001999-08-24 Kunihiro Ishiguro <kunihiro@zebra.org>
3201
3202 * if.h: Add if_nametoindex for NRL.
3203
32041999-08-23 Kunihiro Ishiguro <kunihiro@zebra.org>
3205
3206 * if.c (if_create): New function.
3207
32081999-08-22 Kunihiro Ishiguro <kunihiro@zebra.org>
3209
3210 * snmp.c: New file.
3211
32121999-08-21 Kunihiro Ishiguro <kunihiro@zebra.org>
3213
3214 * stream.c (stream_put): stream_memcpy () is changed to stream_put
3215 (). stream_get () is added.
3216
32171999-08-18 Toshiaki Takada <takada@zebra.org>
3218
3219 * memory.h (enum): Add MTYPE_OSPF_LSA_DATA.
3220
32211999-08-18 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
3222
3223 * table.c (route_table_finish): add function frees table.
3224
32251999-08-12 Kunihiro Ishiguro <kunihiro@zebra.org>
3226
3227 * memory.h (enum): Add MTYPE_RTADV_PREFIX.
3228
32291999-08-11 Kunihiro Ishiguro <kunihiro@zebra.org>
3230
3231 * if.h (struct interface ): hw_address, hw_address_len added.
3232
32331999-08-10 Kunihiro Ishiguro <kunihiro@zebra.org>
3234
3235 * if.h (struct interface ): Change structure member if_data to
3236 info, index to ifindex.
3237
32381999-08-08 Rick Payne <rickp@rossfell.co.uk>
3239
3240 * routemap.c: Multi protocol route-map modification.
3241
3242 * routemap.c (route_map_apply): Route match process bug is fixed.
3243
32441999-08-05 Kunihiro Ishiguro <kunihiro@zebra.org>
3245
3246 * thread.c (thread_fetch): When signal comes, goto retry point.
3247
32481999-08-04 Kunihiro Ishiguro <kunihiro@zebra.org>
3249
3250 * Makefile.am: Add sockopt.c and sockopt.h
3251 * sockopt.c: New file.
3252 * sockopt.h: New file.
3253
32541999-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
3255
3256 * version.h (ZEBRA_VERSION): Release zebra-0.75
3257
32581999-08-01 Kunihiro Ishiguro <kunihiro@zebra.org>
3259
3260 * memory.h (enum): Add MTYPE_RIPNG_AGGREGATE.
3261
32621999-07-31 Kunihiro Ishiguro <kunihiro@zebra.org>
3263
3264 * sockunion.h: Add sockunion_getpeername ().
3265
32661999-07-27 Kunihiro Ishiguro <kunihiro@zebra.org>
3267
3268 * version.h: Release zebra-0.74
3269
32701999-07-26 Kunihiro Ishiguro <kunihiro@zebra.org>
3271
3272 * command.h (struct host): Delete lines from struct host. Add
3273 lines to struct vty.
3274
3275 * command.c: Delete `lines LINES'. Terminal display line settings
3276 should be done by `terminal length' command.
3277
32781999-07-24 Kunihiro Ishiguro <kunihiro@zebra.org>
3279
3280 * memory.h (enum): MTYPE_OSPF_PATH are added.
3281
32821999-07-22 Toshiaki Takada <takada@zebra.org>
3283
3284 * memory.h (enum): MTYPE_OSPF_NEXTHOP is added.
3285
32861999-07-21 Toshiaki Takada <takada@zebra.org>
3287
3288 * linklist.c (list_add_node_prev), (list_add_node_next),
3289 (list_add_list): New function added.
3290
3291 * table.c (route_table_free): New function added.
3292
32931999-07-21 Kunihiro Ishiguro <kunihiro@zebra.org>
3294
3295 * plist.c (config_write_prefix): Set write flag when configuration
3296 is written.
3297
32981999-07-15 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
3299
3300 * prefix.c : prefix_cmp() added. change apply_mask() to
3301 apply_mask_ipv4(), and new apply_mask() added.
3302
33031999-07-14 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
3304
3305 * prefix.c (prefix2str): append prefixlen.
3306
33071999-07-13 Kunihiro Ishiguro <kunihiro@zebra.org>
3308
3309 * command.c (config_terminal): Change "config terminal" to
3310 "configure terminal". Reported by Georg Hitsch
3311 <georg@atnet.at>.
3312 (config_terminal_length): `terminal length <0-512>' is added. At
3313 this moment this command is only usef for vty interface.
3314 Suggested by Georg Hitsch <georg@atnet.at>.
3315
33161999-07-12 Kunihiro Ishiguro <kunihiro@zebra.org>
3317
3318 * routemap.c (rulecmp): Add wrapper function of strcmp.
3319
33201999-07-08 Rick Payne <rickp@rossfell.co.uk>
3321
3322 * sockunion.c (inet_aton): Fix bug of inet_aton.
3323
33241999-07-08 Kunihiro Ishiguro <kunihiro@zebra.org>
3325
3326 * version.h (ZEBRA_VERSION): Start zebra-0.73
3327
33281999-07-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3329
3330 * version.h: Bump up to 0.72.
3331
33321999-07-05 Kunihiro Ishiguro <kunihiro@zebra.org>
3333
3334 * command.c (install_default): New function for install default
3335 commands to the node.
3336
3337 * memory.h (enum): MTYPE_NEXTHOP is added.
3338
33391999-07-01 <kunihiro@zebra.org>
3340
3341 * command.c (no_banner_motd): `no banner motd' command added.
3342
33431999-06-30 Kunihiro Ishiguro <kunihiro@zebra.org>
3344
3345 * regex.c: Update to glibc-2.1.1's posix/regex.c
3346
3347 * regex-gnu.h: Update to glibc-2.1.1's posix/regex.h
3348
3349 * prefix.h (IPV4_ADDR_SAME): Macro added.
3350 (IPV6_ADDR_SAME): Likewise.
3351
33521999-06-29 Kunihiro Ishiguro <kunihiro@zebra.org>
3353
3354 * memory.h (enum): Add MTYPE_OSPF_VERTEX
3355
3356 * version.h: Bump up to 0.71.
3357
3358 * vty.c (vty_serv_sock_addrinfo): Use addrinfo function to bind
3359 VTY socket when IPv6 is enabled.
3360
33611999-06-28 Kunihiro Ishiguro <kunihiro@zebra.org>
3362
3363 * vty.c (vty_serv_sock): Change vty_serv_sock determine which
3364 address family to bind.
3365
3366 * command.c: Add quit command.
3367
33681999-06-26 NOGUCHI kay <kay@dti.ad.jp>
3369
3370 * vty.c (vty_read_config): Fix bug of configuration file path
3371 detection.
3372
33731999-06-25 Kunihiro Ishiguro <kunihiro@zebra.org>
3374
3375 * version.h: Bump up to 0.70.
3376
33771999-06-17 Kunihiro Ishiguro <kunihiro@zebra.org>
3378
3379 * buffer.h (GETL): Remove GETL macro.
3380
3381 * version.h: Bump up to 0.69.
3382
33831999-06-14 Kunihiro Ishiguro <kunihiro@zebra.org>
3384
3385 * if.c (connected_add): Commented out connected_log.
3386
33871999-06-13 Kunihiro Ishiguro <kunihiro@zebra.org>
3388
3389 * command.h (struct cmd_element ): strvec and descvec is combined
3390 into newstrvec.
3391
3392 * command.c (desc_make): Function removed.
3393 (desc_next): Function removed.
3394
3395 * command.h (struct cmd_element ): docvec is removed from struct
3396 cmd_element.
3397
33981999-06-12 Kunihiro Ishiguro <kunihiro@zebra.org>
3399
3400 * command.c (cmd_execute_command): Remove command NULL check.
3401
3402 * command.h (struct cmd_element ): Add newstrvec entry to struct
3403 cmd_element.
3404 (DEFUN2): DEFUN2 macro is removed. DEFUN is extended to support
3405 (a|b|c) statement.
3406 (DESC): DESC macro is removed.
3407
3408 * vty.c (vty_complete_command): When return value is
3409 CMD_ERR_NO_MATCH, don't display error message.
3410
34111999-06-08 Kunihiro Ishiguro <kunihiro@zebra.org>
3412
3413 * table.c (route_next_until): New function.
3414
3415 * version.h: Bump up to 0.68.
3416
34171999-06-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3418
3419 * vty.c (vty_close): Free vty->buf when vty is closed.
3420
3421 * memory.h (enum): Add MTYPE_COMMUNITY_ENTRY and
3422 MTYPE_COMMUNITY_LIST.
3423
3424 * vty.h (struct vty ): Change buf from static length buffer to
3425 variable length buffer.
3426
3427 * vty.c (vty_ensure): New function added.
3428
34291999-06-04 Kunihiro Ishiguro <kunihiro@zebra.org>
3430
3431 * command.h (node_type ): Add COMMUNITY_LIST_NODE.
3432
3433 * command.c (config_enable_password): Freeing host.enable bug is
3434 fixed.
3435 (config_enable_password): Add argc count check.
3436
34371999-05-31 Kunihiro Ishiguro <kunihiro@zebra.org>
3438
3439 * version.h: Bump up to 0.67.
3440
34411999-05-30 Kunihiro Ishiguro <kunihiro@zebra.org>
3442
3443 * command.c (zencrypt): New function for encrypt password.
3444
3445 * command.h (struct host): Add password_encrypt and
3446 enable_encrypt.
3447
34481999-05-30 Jochen Friedrich <jochen@scram.de>
3449
3450 * command.h (struct host): New member encrypt is added for
3451 encrypted password.
3452
34531999-05-30 Kunihiro Ishiguro <kunihiro@zebra.org>
3454
3455 * vty.c: Remove all_digit_check function. Instead use all_digit.
3456
3457 * prefix.c (all_digit): New function for checking string is made
3458 from digit character.
3459
34601999-05-25 Kunihiro Ishiguro <kunihiro@zebra.org>
3461
3462 * Makefile.am (libzebra_a_SOURCES): Add zclient.c.
3463 (noinst_HEADERS): Add zclient.h
3464
3465 * zclient.[ch]: New file for zebra client routine.
3466
3467 * memory.h (enum): Add MTYPE_ZEBRA.
3468
34691999-05-19 Kunihiro Ishiguro <kunihiro@zebra.org>
3470
3471 * version.h (ZEBRA_VERSION): Update to 0.66.
3472
34731999-05-15 Kunihiro Ishiguro <kunihiro@zebra.org>
3474
3475 * buffer.h (GETC,GETW): Macro deleted.
3476
34771999-05-15 Carlos Alberto Barcenilla <barce@frlp.utn.edu.ar>
3478
3479 * prefix.h (IPV4_NET0, IPV4_NET127): Macro added.
3480
34811999-05-15 Kunihiro Ishiguro <kunihiro@zebra.org>
3482
3483 * vty.c (service_advanced_vty): New command added.
3484 (no_service_advanced_vty): Likewise.
3485
34861999-05-14 Kunihiro Ishiguro <kunihiro@zebra.org>
3487
3488 * vty.c (vty_auth): If advanced flag is set and enable password is
3489 not set, directly login to the ENABLE_NODE. This feature is
3490 originally designed and implemented by Stephen R. van den Berg
3491 <srb@cuci.nl>.
3492
3493 * command.h (host): Add advanced flag to struct host for advanced
3494 vty terminal interface.
3495
3496 * version.h (ZEBRA_VERSION): Update to 0.65 for next beta release.
3497
34981999-05-14 Stephen R. van den Berg <srb@cuci.nl>
3499
3500 * command.h (node_type ): Add TABLE_NODE.
3501
3502 * vty.c (vty_telnet_option): Check host.lines value.
3503
3504 * command.c (config_lines): DEFUN for 'lines LINES' command.
3505
3506 * zebra.h: Include <sys/utsname.h> for uname().
3507 (RT_TABLE_MAIN): Defined as 0 if OS does not support multiple
3508 routing table.
3509
3510 * vty.c (vty_auth): Directly login to the ENABLE_NODE when enable
3511 password is not set.
3512 (vty_prompt): Get machine's hostname when hostname is not set.
3513
35141999-05-11 James Willard <james@whispering.org>
3515
3516 * command.c (config_exit): Close connection when `exit' command is
3517 executed at ENABLE_NODE.
3518
35191999-05-10 Kunihiro Ishiguro <kunihiro@zebra.org>
3520
3521 * vty.c (vty_stop_input): `C-c' key change node to ENABLE_NODE.
3522
3523 * command.c (cmd_execute_command_strict): Matched command size
3524 check added.
3525 (cmd_make_desc_line): New function for DEFUN2.
3526
3527 * command.h (struct cmd_element ): Add descsize.
3528
35291999-05-09 Kunihiro Ishiguro <kunihiro@zebra.org>
3530
3531 * command.h (struct cmd_element ): Remame descvec to docvec.
3532 (struct cmd_element ): Add descvec for new description system.
3533
3534 * command.c (desc_make): Check cmd->descvec.
3535
35361999-05-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3537
3538 * memory.h (enum): Add MTYPE_CLUSTER, MTYPE_CLUSTER_VAL.
3539
35401999-05-05 Kunihiro Ishiguro <kunihiro@zebra.org>
3541
3542 * version.h (ZEBRA_VERSION): Bump up to 0.64 for next beta
3543 release.
3544
35451999-05-04 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
3546
3547 * linklist.c (list_delete_all_node): bug fix.
3548 previous code loses current position when node
3549 is deleted.
3550
35511999-05-03 Kunihiro Ishiguro <kunihiro@zebra.org>
3552
3553 * command.h (DESC): Macro added.
3554 (struct cmd_element2): Delete struct cmd_element2.
3555
3556 * plist.c (prefix_list): Sequential number option check is added.
3557
35581999-05-02 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
3559
3560 * log.c (zvlog_{debug,info,notice,warn,err}): have been
3561 added. now we can log both console and file, but still
3562 need some fix about config write.
3563
35641999-05-02 Kunihiro Ishiguro <kunihiro@zebra.org>
3565
3566 * log.c (zvlog_debug): Fix yasu's change.
3567
35681999-05-01 Kunihiro Ishiguro <kunihiro@zebra.org>
3569
3570 * plist.c (prefix_list): Fix typo.
3571
35721999-04-30 Kunihiro Ishiguro <kunihiro@zebra.org>
3573
3574 * Set version to 0.63 for first beta package.
3575
35761999-04-27 Carlos Barcenilla <barce@frlp.utn.edu.ar>
3577
3578 * prefix.c (str2prefix_ipv4): Fix prefix length check.
3579 (str2prefix_ipv6): Likewise.
3580
35811999-04-25 Kunihiro Ishiguro <kunihiro@zebra.org>
3582
3583 * memory.h (enum): Add MTPYE_PREFIX_LIST and
3584 MTYPE_PREFIX_LIST_ENTRY.
3585
3586 * command.h (node_type ): Add PREFIX_NODE.
3587
35881999-04-25 Carlos Barcenilla <barce@frlp.utn.edu.ar>
3589
3590 * command.c: ALIAS (config_write_memory_cmd) and ALIAS
3591 (copy_runningconfig_startupconfig_cmd) is added.
3592
3593 * table.c (route_node_lookup): Unused match variable deletion.
3594
35951999-04-24 Kunihiro Ishiguro <kunihiro@zebra.org>
3596
3597 * Makefile.am (libzebra_a_SOURCES): plist.c added.
3598 (noinst_HEADERS): plist.h added.
3599
3600 * plist.c, plist.h: New file added.
3601
3602 * memory.h (enum): Rename MTYPE_AS_PASN to MTYPE_AS_STR.
3603 * memory.c: Likewise.
3604
36051999-04-19 Carlos Alberto Barcenilla <barce@frlp.utn.edu.ar>
3606
3607 * command.c (show_version): `show version' command added.
3608
36091999-04-19 Kunihiro Ishiguro <kunihiro@zebra.org>
3610
3611 * prefix.c (str2prefix_ipv6): Prefix length overflow check.
3612
36131999-04-19 Carlos Alberto Barcenilla <barce@frlp.utn.edu.ar>
3614
3615 * prefix.c (str2prefix_ipv4): Prefix length overflow check.
3616
36171999-04-19 Alex Bligh <amb@gxn.net>
3618
3619 * prefix.c (sockunion2hostprefix): Function added.
3620 (sockunion2prefix): Address family was not set. Now it is set.
3621
3622 * vty.c: VTY access-class command is added.
3623
36241999-04-18 Kunihiro Ishiguro <kunihiro@zebra.org>
3625
3626 * memory.c: Change xmalloc to zmalloc. xcalloc, xrealloc, xfree,
3627 xstrdup are likewise.
3628
36291999-04-18 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
3630
3631 * thread.c: Add thread_execute for other routing daemon.
3632 OSPF tasks need to be generated by "sheduled" and "executed".
3633
36341999-04-13 Kunihiro Ishiguro <kunihiro@zebra.org>
3635
3636 * buffer.c: Rewrite buffer_write and buffer_flush related
3637 functions for fixing bugs. Reason of the problem and fix is
3638 suggested by Alex Bligh <amb@gxn.net>.
3639
36401999-04-12 Alex Bligh <amb@gxn.net>
3641
3642 * command.c (cmd_entry_function_descr): Added for variable
3643 argument help display.
3644
36451999-04-07 Kunihiro Ishiguro <kunihiro@zebra.org>
3646
3647 * regex.c, regex-gnu.h: Imported from GNU sed-3.02 distribution.
3648
36491999-03-24 Kunihiro Ishiguro <kunihiro@zebra.org>
3650
3651 * stream.c: stream_fifo_free bug is fixed.
3652
36531999-03-19 Toshiaki Takada <takada@zebra.org>
3654
3655 * stream.c (stream_strncpy): Added for getting any length bytes
3656 from stream.
3657
36581999-03-16 Kunihiro Ishiguro <kunihiro@zebra.org>
3659
3660 * version.h (ZEBRA_BUG_ADDRESS): New macro added.
3661
36621999-03-14 Kunihiro Ishiguro <kunihiro@zebra.org>
3663
3664 * buffer.c (buffer_flush_window): If ep is same as buffer's size
3665 length and lp is overrun one octet.
3666
36671999-03-13 Kunihiro Ishiguro <kunihiro@zebra.org>
3668
3669 * vty.h: add VTY's timeout function.
3670
36711999-03-05 <kunihiro@zebra.org>
3672
3673 * command.h (node_type ): Add OSPF6_node.
3674
36751999-03-04 Kunihiro Ishiguro <kunihiro@zebra.org>
3676
3677 * zebra.h: Check HAVE_SYS_SELECT_H when include <sys/select.h>
3678
36791999-03-03 Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
3680
3681 * zebra.h: Include <net/if_var.h> if it exists.
3682
36831999-03-02 Kunihiro Ishiguro <kunihiro@zebra.org>
3684
3685 * getopt.[ch],getopt1.c: Sync with glibc-2.1.
3686
3687 * log.c (zlog): Tempolary ZLOG_STDOUT feature added.
3688
3689 * command.h: Include vector.h and vty.h
3690
36911999-02-25 Kunihiro Ishiguro <kunihiro@zebra.org>
3692
3693 * routemap.h (struct route_map_rule_cmd): Add prefix arguemnt.
3694
3695 * routemap.c (route_map_apply_index): Add prefix argument.
3696 (route_map_apply): Likewise.
3697
3698 * memory.h (enum): Add MTYPE_ROUTE_MAP_COMPILED.
3699
3700 * stream.c: Add stream_fifo related functions.
3701
37021999-02-24 Kunihiro Ishiguro <kunihiro@zebra.org>
3703
3704 * daemon.c: Return integer value. File descriptor close is added.
3705
3706 * memory.h (enum): add MTYPE_OSPF_LSA.
3707
37081999-02-23 Kunihiro Ishiguro <kunihiro@zebra.org>
3709
3710 * rsh.c: Remove empty file.
3711
37121999-02-22 <kunihiro@zebra.org>
3713
3714 * routemap.c: Add add/delete hook to route_map_master.
3715
37161999-02-19 Peter Galbavy <Peter.Galbavy@knowledge.com>
3717
3718 * str.[ch] added to supply wrappers for snprintf(), strlcat() and
3719 strlcpy on system without these.
3720
37211999-02-18 Peter Galbavy <Peter.Galbavy@knowledge.com>
3722
3723 * syslog support added
3724
37251999-02-02 Kunihiro Ishiguro <kunihiro@zebra.org>
3726
3727 * filter.c (access_list_add_hook): added for hook function management.
3728 * filter.c (access_list_delete_hook): Likewise.
3729
37301999-01-19 Kunihiro Ishiguro <kunihiro@zebra.org>
3731
3732 * stream.c: New file.
3733 * stream.h: New file.
3734 * Divide stream related fucntions from buffer.[ch] into stream.[ch].
3735
37361999-01-14 Kunihiro Ishiguro <kunihiro@zebra.org>
3737
3738 * memory.h (enum): add MTYPE_STREAM, MTYPE_STREAM_DATA
3739
3740 * buffer.c (stream_new): Set MTYPE_STREAM to XMALLOC argument.
3741
37421998-12-23 Kunihiro Ishiguro <kunihiro@zebra.org>
3743
3744 * routemap.c: route_map_index_delete() added.
3745
37461998-12-22 Kunihiro Ishiguro <kunihiro@zebra.org>
3747
3748 * buffer.c (buffer_empty): check cp instead of sp.
3749
37501998-12-17 Kunihiro Ishiguro <kunihiro@zebra.org>
3751
3752 * radix.[ch]: Deleted.
3753
37541998-12-15 Magnus Ahltorp <map@stacken.kth.se>
3755
3756 * buffer.c: Prototype fixes.
3757 * prefix.c: Likewise.
3758 * sockunion.c: Likewise.
3759 * sockunion.h: Likewise.
3760
37611998-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
3762
3763 * vty.c (vty_read): DELETE key works as vty_delete_char.
3764
37651998-12-13 Kunihiro Ishiguro <kunihiro@zebra.org>
3766
3767 * log.c (time_print): chane %y to %Y.
3768
37691998-12-10 Kunihiro Ishiguro <kunihiro@zebra.org>
3770
3771 * distribute.c: new file.
3772
37731998-12-09 Kunihiro Ishiguro <kunihiro@zebra.org>
3774
3775 * filter.c: Remove all of struct prefix_{ipv4,ipv6} and add
3776 complete support of IPv6 access list.
3777
3778 * command.c (config_write_element): function delete.
3779 (config_write_host): function add. password and enable password
3780 isn't printed to vty interface.
3781
37821998-12-08 Kunihiro Ishiguro <kunihiro@zebra.org>
3783
3784 * filter.c: Change prefix_ipv4 to prefix and add support of
3785 prefix_ipv6 filtering.
3786
37871998-12-07 Kunihiro Ishiguro <kunihiro@zebra.org>
3788
3789 * Makefile.am (INCLUDES): add @INCLUDES@ for Linux IPv6 inet6-apps
3790 header includes.
3791
37921998-12-05 Kunihiro Ishiguro <kunihiro@zebra.org>
3793
3794 * log.c (log_flush): fix function name typo.
3795
37961998-12-04 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
3797
3798 * memory.h: OSPF memory type is added.
3799
38001998-11-15 Kunihiro Ishiguro <kunihiro@zebra.org>
3801
3802 * command.c (sort_node): add sort_node() for pretty printing of
3803 command on vty interface.
3804 (config_password): delete the restriction of charaster of password
3805 string.
3806
38071998-09-05 Kunihiro Ishiguro <kunihiro@debian.zebra.org>
3808
3809 * prefix.c (prefix_ipv4_any): add prefix_ipv4_any().
3810
38111998-08-25 Kunihiro Ishiguro <kunihiro@zebra.org>
3812
3813 * network.h: New file.
3814
38151998-08-24 Kunihiro Ishiguro <kunihiro@zebra.org>
3816
3817 * vty.c (vty_will_echo): function name change from vty_off_echo.
3818
38191998-08-18 Kunihiro Ishiguro <kunihiro@zebra.org>
3820
3821 * buffer.h: add PUTC,PUTW,PUTL macros.
3822
38231998-07-22 Kunihiro Ishiguro <kunihiro@zebra.org>
3824
3825 * route.[ch]: renamed to prefix.[ch]
3826
38271998-06-09 Kunihiro Ishiguro <kunihiro@zebra.org>
3828
3829 * prefix_in, prefix_in6 is replaced by prefix_ipv4, prefix_ipv6.
3830
3831 * Makefile.am: @INCLUDES@ is deleted from INCLUDES.
3832
38331998-06-07 Kunihiro Ishiguro <kunihiro@zebra.org>
3834
3835 * host.[ch]: merged with command.[ch]
3836
38371998-05-08 Kunihiro Ishiguro <kunihiro@zebra.org>
3838
3839 * Makefile.am (libzebra_a_SOURCES): add route.c to libzebra_a_SOURCES.
3840
38411998-05-07 Kunihiro Ishiguro <kunihiro@zebra.org>
3842
3843 * route.c (str2prefix): str2prefix () is gone.
3844
38451998-05-03 Kunihiro Ishiguro <kunihiro@zebra.org>
3846
3847 * vty.c (vty_read_config): change CONDIR to SYSCONFDIR.
3848
3849 * .cvsignore: add file.
3850
3851 * memory.c (xerror): add arguent `type' and `size'.
3852
3853 * socket.c: deleted.
3854
38551998-05-02 Kunihiro Ishiguro <kunihiro@zebra.org>
3856
3857 * vector.c: malloc,free,realloc -> XMALLOC,XFREE,XREALLOC.
3858 * linklist.c: same as above.
3859
38601998-04-30 Kunihiro Ishiguro <kunihiro@zebra.org>
3861
3862 * filter.[ch]: added.
3863
38641998-04-01 Kunihiro Ishiguro <kunihiro@zebra.org>
3865
3866 * vty.c (config_who): return CMD_SUCCESS
3867
38681998-04-01 Jochen Friedrich <jochen@scram.de>
3869
3870 * table.c (route_dump_node): route_dump_node is IPv6 specific
3871 function so move #ifdef to the end of route_dump_node ().
3872
38731998-03-05 "Hannes R. Boehm" <hannes@boehm.org>
3874
3875 * if.c: DEFUN(interface_desc) added.
3876
38771998-03-05 Kunihiro Ishiguro <kunihiro@zebra.org>
3878
3879 * if.c: separated from ripd/rip_interface.c
3880
38811998-03-04 Kunihiro Ishiguro <kunihiro@zebra.org>
3882
3883 * thread.[ch] : added.
3884
38851998-02-14 Kunihiro Ishiguro <kunihiro@zebra.org>
3886
3887 * vty.c (vty_delete_char): fix size bug.
3888 (vty_backward_pure_word): function added.
3889 (vty_read): ESC + 'f' perform vty_forward_word.
3890 (vty_read): ESC + 'b' perform vty_backward_word.
3891
38921998-02-11 Kunihiro Ishiguro <kunihiro@zebra.org>
3893
3894 * radix.c (radix_lookup_rt): add mask check.
3895 (radix_delete_duproute): add mask check.
3896
38971998-02-10 Kunihiro Ishiguro <kunihiro@zebra.org>
3898
3899 * command.c (config_write_file): fix vty -> file_vty.
3900
39011998-02-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3902
3903 * command.c (cmd_filter_ambiguous): add complex type treatment.
3904
39051998-02-05 Kunihiro Ishiguro <kunihiro@zebra.org>
3906
3907 * vty.c (vty_time_print): function added.
3908 (vty_complete_command): now [...] element isn't shown by completion.
3909
39101998-01-26 Kunihiro Ishiguro <kunihiro@zebra.org>
3911
3912 * command.c : change from cmd_install_node() to install_node().
3913
39141998-01-16 Kunihiro Ishiguro <kunihiro@zebra.org>
3915
3916 * route.[ch]: struct rt{} is replaced by struct prefix{}.
3917
39181998-01-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3919
3920 * command.c (cmd_execute_command): check command length.
3921
3922 * timer.c (zebra_timer_set): add zebra_timer_set.
3923
39241998-01-05 Kunihiro Ishiguro <kunihiro@zebra.org>
3925
3926 * command.h (node_type ): add ZEBRA_NODE.
3927
3928 * command.c (config_exit): add RIP_NODE.
3929 (config_write_file): add RIP_NODE.
3930
39311998-01-04 Kunihiro Ishiguro <kunihiro@zebra.org>
3932
3933 * print_version.c (print_version): Now Copyright is 1996-1998.
3934
3935 * sockunion.c (sockunion_log): moved from ../zebra/route.c
3936
39371997-12-30 Kunihiro Ishiguro <kunihiro@zebra.org>
3938
3939 * host.c (config_logfile): change 'log PATH' to 'logfile PATH'.
3940
3941 * sockunion.c (sockunion_sameprefix): add same prefix for
3942 sockunion.
3943
39441997-12-29 Kunihiro Ishiguro <kunihiro@zebra.org>
3945
3946 * radix.[ch] : are moved from ../zebra directroy.
3947
3948 * command.c (config_from_file): if command execution failed down
3949 level to CONFIG_NODE.
3950
3951 * host.c: config_log function which enable 'log FILENAME' command.
3952
39531997-12-23 Kunihiro Ishiguro <kunihiro@zebra.org>
3954
3955 * vty.c: add vty_transpose_chars (). Now you can use '^T' to
3956 transpose character.
3957
3958 * command.c: cmd_cmdsize add, this is useful to check incomplete
3959 command.
3960
39611997-12-07 Kunihiro Ishiguro <kunihiro@zebra.org>
3962
3963 * fd.h: add family for address family
3964
39651997-12-06 Kunihiro Ishiguro <kunihiro@zebra.org>
3966
3967 * command.o
3968 * vty.o
3969 * host.o is moved from ../zebra
3970
39711997-08-14 Kunihiro Ishiguro <kunihiro@zebra.org>
3972
3973 * make library directory.
3974