1 2006-08-06 Paul Jakma <paul.jakma@sun.com>
3 * interface.h: (ifstat_update_proc) declaration should match
4 ifstat_update_sysctl really, which is to not return status, as
5 such status is not used anywhere.
6 * if_{proc,sysctl}.c: Make ifstat_update_* definitions and return values
7 consistent with each other and their declarations, ie:
9 * rtadv.h: depends on interface.h, so should include it.
11 2006-08-04 Paul Jakma <paul.jakma@sun.com>
13 * misc_null.c: Add ifstat_update_sysctl, add another required
16 2006-08-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
18 * misc_null.c: Must include header files to get older versions of gcc
19 to process the #pragma statements properly.
21 2006-08-01 Paul Jakma <paul.jakma@sun.com>
23 * irdp_main.c: (irdp_advertisement) free the stream here, when done,
24 right under where it was allocated so it's blindingly obvious
25 it's correct. This possibly fixes a very slow leak of streams in
27 * irdp_packet.c: (send_packet) don't free the stream here as
28 it's hard to tell if right, plus an error case seemed to
29 returning before free anyway.
31 2006-07-27 Paul Jakma <paul.jakma@sun.com>
33 * {ioctl,kernel}_null.c: Dummy/Null kernel method implementations,
34 useful for testing zebra code that calls such methods.
35 * {redistribute,misc}_null.c: Dummy/Null methods, as above. But
36 for zclient, and for various misc functions.
37 * test_main.c: Test harness for zebra, currently just to test the
39 * Makefile.am: Build testzebra using above.
40 * debug.{c,h}: Add 'debug zebra rib' and 'debug zebra rib queue'.
41 * rib.h: (struct rib) Add a route_node rn_status flag field,
42 this has to be copied every time head RIB of a route_node
44 Remove the rib lock field, not needed - see below.
45 Add a status field for RIB-private flags.
46 * zebra_rib.c: Add a global for the workqueue hold time, useful
48 (general) Fix for bug #268. Problem originally detailed by
49 Simon Bryden in [quagga-dev 4001].
50 Essentially, add/delete of a RIB must happen /before/ the
51 queue. Best-path selection (ie rib_process) and reaping of
52 freed RIBs can then be done after queueing. Only the route_node
53 is queued - no important RIB state (i.e. whether a RIB is to be
55 (struct zebra_queue_node_t) Disappears, no longer need to
56 track multiple things on the queue, only the route_node.
57 (rib_{lock,unlock}) removed, RIBs no longer need to be
58 refcounted, no longer queued.
59 (rib_queue_qnode_del) Removed, deleted RIBs no longer deleted
61 (rib_queue_add_qnode) deleted
62 (rib_queue_add) Only the route_node is queued for best-path
63 selection, we can check whether it is already queued or
64 not and avoid queueing same node twice - struct rib * argument
66 (rib_link/unlink) (un)link RIB from route_node.
67 (rib_{add,del}node) Front-end to updates of a RIB.
68 (rib_process) Reap any deleted RIBs via rib_unlink.
69 Unset the route_node 'QUEUED' flag.
70 (General) Remove calls to rib_queue_add where add/del node was
71 called - not needed, update calls where not.
72 Ignore RIB_ENTRY_REMOVEd ribs in loops through route_nodes
74 2006-07-27 Rumen Svobodnikov <rumen@telecoms.bg>
76 * connected.c: (connected_up_ipv4) interface connected routes always
77 go to table main (or otherwise they cannot be used by linux as
79 * zserv.c: (zread_ipv4_add) send route to the correct routing table
80 * zebra_rib.c (static_install_ipv4) set routing table
82 2006-07-02 Paul Jakma <paul.jakma@sun.com>
84 * rt_netlink.c: (netlink_interface_addr) Fix CID #104, can not
85 proceed if addr is NULL.
86 * zebra_rib.c: (static_add_ipv6) Fix CID #18, double check
87 required arguments are supplied for the given nexthop type.
89 2006-06-15 Paul Jakma <paul.jakma@sun.com>
91 * interface.c: (if_flag_dump_vty) redundant code, remove.
92 (if_dump_vty) use libzebra if_flag_dump.
93 (ip_address_uninstall) Unset the configured flag.
94 * connected.c: (connected_same) new helper, check whether
95 two connected are same.
96 (connected_implicit_withdraw) new helper, consolidation of
97 existing code in connected_add_ipv{4,6}.
98 Try filter out unneeded Zserv address delete/adds when
99 address is exact same.
100 Where old address is implicitely removed, be sure to preserve
101 the IFC_CONFIGURED flag if set, fixes bug where configured
102 addresses were being lost on FreeBSD (Andrew Schorr).
104 2006-05-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
106 * connected.c: (connected_withdraw) Do not delete the connected
107 address if the ZEBRA_IFC_CONFIGURED flag is set.
108 (connected_add_ipv4,connected_add_ipv6) Before calling
109 connected_withdraw, unset the ZEBRA_IFC_CONFIGURED flag
110 on the superseded connected structure.
112 2006-05-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
114 * connected.c: (connected_add_ipv4,connected_add_ipv6) If the
115 new struct connected matches an already existing one
116 (that will consequently be removed by connected_withdraw),
117 then be sure to preserve the ZEBRA_IFC_CONFIGURED flag.
119 2006-05-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
121 * kernel_socket.c: (ifam_read_mesg) Improve debug message
122 to show the IP address.
124 2006-05-15 Paul Jakma <paul.jakma@sun.com>
126 * zserv.c: (general) Remove the private zebra_command_str
127 in favour of newly added libzebra zserv_command_string.
129 2006-05-11 Paul Jakma <paul.jakma@sun.com>
131 * interface.c: (if_delete_update) route_node_lookup may return
132 NULL, should fix Coverity CID #31.
134 2006-02-09 Paul Jakma <paul.jakma@sun.com>
136 * rib.h: (struct {rib,nexthop}) Rearrange fields to avoid
138 (struct rib) Remove the indirect pointer, not used anywhere!
140 2006-02-02 Paul Jakma <paul.jakma@sun.com>
142 * interface.c: (if_dump_vty) move flags to their line, neater.
144 2006-01-30 Paul Jakma <paul.jakma@sun.com>
146 * zebra_rib.c: (rib_process) Fourth time lucky on this jinxed
147 commit, last commit had a hole that could allow connected
148 route selection to escape beyond the connected route logic.
149 This time I cross-checked with Gunnar first. ;)
151 2006-01-25 Gunnar Stigen <gunnar.stigen@axxessit.no>
153 * zebra_rib.c: (rib_process) Application of Gunnar's earlier
154 metric selection RIB change included incorrect tidy-ups made
155 by commiter. Fix. (NB: any errors here are again due to paul).
157 2006-01-25 Paul Jakma <paul.jakma@sun.com>
159 * (general) More solaris PF_ROUTE hacks. The IFF_UP mangling
160 for solaris was incomplete on the PF_ROUTE side. fix it.
161 This changeset generally uglifies things. For some future
162 work I'd like to see the state changes seperated out from
163 the details of the code. Differences between systems might
164 then be slightly easier to implement without convoluted
166 Changes should be specific to Solaris mostly, however
167 also tested on FreeBSD 6.
168 * if_ioctl_solaris.c: (interface_list_ioctl) ignore ~IFF_UP
169 interfaces, we'll hear about them when/if interface goes up
171 Update flags explicitely at end of it to kick mangling.
172 * ioctl_solaris.c: (if_mangle_up) removed to interface.c, in
174 (lifreq_set_name) more convenient to take the string, than
176 (if_get_flags_direct) new convenience function, returns
177 the actual flags. Used during bootstrap in if_ioctl_solaris.c
178 to peek at flags of logical interfaces to see whether or
180 (if_get_flags) ENXIO means it's gone, poke out IFF_UP and
182 (if_{un,}set_flags) flags argument should be 64bit.
183 * ioctl.{c,h}: flags argument should be 64bit.
184 * interface.h: Add a 'primary_state' flag to struct zebra_if on
186 Export if_flags_update.
187 * interface.c: (if_flags_mangle) moved over in kind from
188 ioctl_solaris.c. Nasty kludge to try get IFF_UP right, as
189 much as is possible. Also keep track of the actual IFF_UP
190 value for the primary interface, so we can know when the ifp
192 (if_flags_update) Take a new interface flags value, apply it
193 to the interface, and take whatever actions are required due
195 (if_refresh) flag state change logic is moved out to
196 previous. Just call if_get_flags, which will end up using
197 previous to effect the update of flags.
198 (if_flag_dump_vty) IFF_IPV{4,6} aren't interesting, VIRTUAL
199 and NOXMIT are though.
200 * kernel_socket.c: (ifm_read) Down->Down transitions shouldn't
201 create ifp, for non-IFANNOUNCE systems.
202 Use if_flags_update to update flags.
203 flag transition logic is now handled automatically through
205 (ifam_read) Better to call if_refresh *after* adding
206 connected addresses, as connected count affects IFF_UP on
207 IFF_UP-mangled systems.
208 On Solaris, Up->Down due to DELADDR means we need to delete
209 the ifp - the IFINFO might already have been and gone.
210 * rt.h: include other dependent headers.
212 2006-01-19 Paul Jakma <paul.jakma@sun.com>
214 * (general) various miscellaneous compiler warning fixes.
215 Remove redundant break statements from switch clauses
217 Remove stray semi-colons which cause empty-statement
219 * main.c: (sighup) remove private declaration of external
221 (main) return from main, not exit, cause it annoys SOS.
223 2006-01-18 Gunnar Stigen <gunnar.stigen@axxessit.no>
225 * zebra_rib.c: Take interface metric into account.
227 2006-01-17 Paul Jakma <paul.jakma@sun.com>
229 * kernel_socket.c: (ifam_read) Read metric from RTM_NEWADDR.
230 If interface is an alias, pass the alias as a label for
231 connected_add_ipv{4,6}.
232 * rt_netlink.c: (netlink_interface_addr) print out
233 IFA_CACHEINFO info, if present, when debugging kernel
236 2006-01-17 Gunnar Stigen <gunnar.stigen@axxessit.no>
238 * connected.c: (connected_up_ipv{4,6}) Include interface metric on
240 * if_ioctl.c: (if_getaddrs) Be defensive about assuming
241 that struct ifaddrs will have ifa_addr filled in.
243 2006-01-16 Paul Jakma <paul.jakma@sun.com>
245 * zserv.c: Read/write updated Zserv header.
247 2006-01-11 Paul Jakma <paul.jakma@sun.com>
249 * zserv.c: (zsend_interface_{add,delete,update}) if flags are
250 8 bytes now, update to write out with stream_putq.
252 2005-12-29 Greg Troxel <gdt@fnord.ir.bbn.com>
254 * kernel_socket.c: remove dead code (from David Young).
256 * rt_socket.c (kernel_rtm_ipv4): Use AF_INET rather than AF_UNSPEC
257 for mask. From David Young.
259 2005-11-26 Paul Jakma <paul.jakma@sun.com>
261 * connected.{c,h}: (connected_add_ipv6) label should have
262 const qualifier, fix declarations.
264 2005-11-24 Paul Jakma <paul.jakma@sun.com>
266 * kernel_socket.h: New header for functions exported to sysctl
268 * kernel_socket.c: include previous.
269 Remove static qualifier from couple of functions which are
270 used by sysctl methods.
271 Add a workaround for a bogus gcc warning to the RTA_ macros.
272 * Makefile.am: Add kernel_socket.h to noinst_HEADERS
273 * if_sysctl.c: include rt.h and kernel_socket.h and remove
274 redundant prototypes.
275 * rtread_sysctl.c: ditto.
276 (route_read) fix mismatch of return values.
277 * {rt,zserv,rib}.h: Include lib headers depended on.
279 2005-11-23 Paul Jakma <paul.jakma@sun.com>
281 * (general) fix some small compile errors, and mark several
283 * kernel_socket.c: (ifan_read) should be static.
284 fix missing brackets.
285 (ifm_read,ifam_read,rtm_read_mesg,kernel_read) Make static
286 (ifam_read_mesg) make static. fix incorrect variable name.
287 (rtm_read) make static. Fix call to rib_delete_ipv4 which
288 should be rib_delete_ipv6.
289 (routing_socket,kernel_init) should be static. Void argument
290 should be specified as such, not left incomplete.
291 * rt_netlink.c: rt.h should be included, contains prototypes of
293 (kernel_delete_ipv6_old) fix sign of index argument.
294 * rt_socket.c: Exact same as previous. Also, make various
296 * rtread_getmsg.c: Include zserv.h, which prototypes
297 route_read. Make static.
298 * rtread_sysctl.c: zserv.h and rt.h should be included.
299 fix definition of route_read.
301 2005-11-14 Paul Jakma <paul.jakma@sun.com>
303 * zebra_rib.c: (rib_process) convert to new workqueue specs and
304 shut up gcc, which complains about cast from void via
305 function parameters, for some dumb reason. Do the cast
306 inside the function instead.
307 (rib_queue_qnode_del) ditto.
308 (rib_queue_init) no need for the casts anymore.
310 2005-11-12 Alexander Gall <gall@switch.ch>
312 * See [quagga-dev 1815]
313 * kernel_socket.c: (rtm_write) Use SAROUNDUP when HAVE_SIN_LEN
315 * rt_socket.c: (kernel_rtm_ipv6(_multipath)) set family to
316 AF_INET6 on ipv6 routes.
318 2005-11-12 Paul Jakma <paul.jakma@sun.com>
320 * kernel_socket.c: Add RTA_NAME_GET macro to extract name from
321 sockaddr_dl. Add some more RTF_ flags.
322 * (ifan_read) Add some debug messages.
323 * (ifm_read) Add more debug messages. More robust cross-checks
324 of index against name.
325 Fall back to by-name lookup if the index lookup fails, future
326 proofing more than anything else.
327 (ifam_read_mesg) Read RTA_IFP. Add debug messages.
328 (ifam_read) More debug. If there's an RTA_IFP and it isn't
329 the name of the interface, save it as the label.
330 (rtm_read_mesg) Read RTA_IFP.
331 (rtm_read) allow name to be retrieved.
332 (rtmsg_debug) expand on the debug message.
334 2005-11-11 Paul Jakma <paul.jakma@sun.com>
336 * kernel_socket.c: (ifm_read) arithmetic on void pointer
338 (ifam_read) Fix error from connected-with-label merge,
339 something crept in from the pending Solaris kernel_socket.c
340 patch which shouldn't have.
342 2005-11-03 Paul Jakma <paul.jakma@sun.com>
344 * connected.{c,h}: Include memory.h
345 (connected_add_ipv4) Use MTYPE for ifc label.
346 (connected_add_ipv6) Also should accept label. Store it in ifp.
347 (connected_del_ipv4) Taking label as argument is pointless.
348 * rt_netlink.c: (netlink_interface_addr) update label usage
349 for connected_{add,delete} functions.
350 * if_ioctl.c: (if_getaddrs) NULL label for connected_add_ipv6.
351 * if_ioctl_solaris.c: (interface_list_ioctl) Pass LIFC_NOXMIT
352 so we also find out about NOXMIT interfaces like VNI.
353 Bit of hackery to turn interface names into the primary
354 interface name, later with routing socket messages we only
355 will about primary interfaces anyway, so we must normalise
357 (if_get_addr) take label as argument, so it can
358 be passed to connected_add.
359 If label is provided, then it is interface name to issue the
360 ioctl for address information on, not the ifp name.
361 (interface_list) List AF_UNSPEC too, just in case.
362 * if_proc.c: (ifaddr_proc_ipv6) label for connected_add_ipv6.
363 * interface.c: (if_addr_wakeup) Some very bogus code - sets
364 IFF_RUNNING - add comment.
366 (ip_address_install) Use MTYPE for ifc label.
367 * ioctl_solaris.c: (if_mangle_up) New function. Hackery to make
368 IFF_UP reflect whether any addresses are left on the
369 interface, as we get signalled for IFF_UP flags change on the
370 primary interface only. Logical interfaces dont generate
371 IFINFO, but we do get an RTM_DELADDR.
372 (if_get_flags) Call if_mangle_up before return.
373 * kernel_socket.c: (ifam_read) Fixup calls to
374 connected_{add,delete} to match above changes. Rename gate
375 variable to brd, less confusing.
376 Pass the interface name as a label, if it is not same name
379 2005-10-11 Paul Jakma <paul.jakma@sun.com>
381 * connected.{c,h}: (connected_{add,delete}_ipv4) label should
384 2005-10-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
386 * zebra_vty.c: (route_type_str) Remove obsolete function: use new
387 library function zebra_route_string() instead. Note that there
388 are a few differences: for IPv6 routes, we now get "ripng" and
389 "ospf6" instead of the old behavior ("rip" and "ospf").
390 (route_type_char) Remove obsolete function: ues new library function
391 zebra_route_char() instead. Note that there is one difference:
392 the old function returned 'S' for a ZEBRA_ROUTE_SYSTEM route,
393 whereas the new one returns 'X'.
394 (vty_show_ip_route_detail,vty_show_ipv6_route_detail) Replace
395 route_type_str() with zebra_route_string().
396 (vty_show_ip_route,vty_show_ipv6_route) Replace route_type_char()
397 with zebra_route_char().
399 2005-10-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
401 * rt_netlink.c: (netlink_request) Use memset to clear structure
402 before calling sendto (eliminates a valgrind error message about
405 2005-09-28 Alain Ritoux <alain.ritoux@6wind.com>
407 * zserv.c: Always provied distance for route add
409 2005-09-28 Alain Ritoux <alain.ritoux@6wind.com>
411 * connected.c: flag connected_up_ipv6() and connected_down_ipv6()
414 2005-09-24 Hasso Tepper <hasso at quagga.net>
416 * rib.h: Add note about behaviour of rib_add_ipv[46]* functions -
417 add is treated as implicit withdraw.
419 2005-09-21 David Young <dyoung@ojctech.com>
421 * zebra_rib.c: Reduce the height of some staircases. Fix
422 rib_delete_ipv6() to match routes in the RIB by their gateway as
423 well as by destination.
425 2005-09-21 Paul Jakma <paul.jakma@sun.com>
427 * zebra_rib.c: (static_uninstall_ipv{4,6}) Fix regression wrt
428 removal of static routes with multiple-hops introduced with
429 the workqueue conversion. We should free the relevant
430 nexthop and then get rib_process to run, otherwise we just
431 get same static route back again (with no way to unconfigure
432 it, because its already deleted from configuration).
434 2005-09-12 Paul Jakma <paul.jakma@sun.com>
436 * (general) RTM_CHANGE and implicit withdraw on RTM_NEWADDR
438 * connected.c: (connected_withdraw) new function. withdraw a
439 connected subnet address set from zebra, and pass information
441 (connected_announce) similar, but to announce a new connected
443 (connected_check_ipv4) renamed to connected_check, as its
445 (connected_add_ipv{4,6}) Remove the connected address announce
446 stuff, use connected_announce instead.
447 If connected_check indicates address is already present,
448 treat it as an implicit withdraw of the existing address, ie
449 remove the old address details and replace with the new
451 (connected_delete_ipv{4,6}) Use connected_withdraw.
452 (connected_check_ipv6) deleted in favour of connected_check.
453 * connected.h: Rename connected_check_ipv4 to connected_check.
454 delete connected_check_ipv6.
455 * interface.c: Use connected_check rather than the AFI specific
457 * kernel_socket.c: (rtm_read) RTM_CHANGE support. Create a
458 rib delete event for the existing route, before adding route
460 (kernel_read) we can handle RTM_CHANGE now.
462 2005-08-27 Hasso Tepper <hasso at quagga.net>
464 * zebra_rib.c, rib.h: Add distance and metric arguments to the
465 rib_add_ipv6() function so that IPv6 routes in RIB can have correct
466 metric. No IPv6 routing daemon uses distance yet though.
467 * zserv.c, connected.c, kernel_socket.c, rt_netlink.c,
468 rtread_proc.c,zserv.c: Pass metric and distance info to the
471 2005-07-29 Paul Jakma <paul.jakma@sun.com>
473 * interface.c: (if_delete_update) should always be available, not
474 just on RTM_IFANNOUNCE/NETLINK systems.
475 * kernel_socket.c: (ifan_read) only call if_delete_update when
476 interface departs, dont if_delete, because we wish to retain
477 interface configuration state even when interfaces are removed.
478 (ifm_read) If we dont have RTM_IFANNOUNCE, then transitioning
479 to down state is only chance we have to clean up interface in case
480 it is deleted (eg Solaris down -> unplumb -> plumb up).
481 * redistribute.c: (zebra_interface_delete_update) should always be
482 available, we /will/ call it now on all systems, via
484 * zserv.c: (zsend_interface_delete) ditto
485 (zsend_interface_address) Update the call-flow diagramme, to
486 reflect that if_delete_update /is/ now called on all systems,
488 * zserv.h: (zsend_interface_delete) unconditionally exported, as
491 2005-06-28 Paul Jakma <paul.jakma@sun.com>
493 * (global) Extern and static'ification, with related fixups
494 of declarations, ensuring files include their own headers, etc.
495 * if_ioctl.c: (interface_info_ioctl) fix obvious arg mis-order in
497 * kernel_socket.c: (RTA_{ADDR,ATTR}_GET) fix mistake, NULL check
498 should be on DEST argument
500 2005-06-14 Paul Jakma <paul.jakma@sun.com>
502 * kernel_socket.c: consolidate the IFAM{ADDR,MASK}GET and
503 RTM{ADDR,MASK}GET macros into generic rta_addrs macros,
505 (af_check) could use 'inline' attribute
506 (ifam_read_mesg) remove IFAM{ADDR,MASK}GET macro, change to
508 (rtm_read_mesg) similar
510 2005-06-12 Hasso Tepper <hasso at quagga.net>
512 * rt_netlink.c: Remove netlink-addr socket declaration, it's not used.
513 * rt_netlink.c (netlink_parse_info): Fix debug messages - nlmsg_pid is
514 unsigned and one zlog call had swapped arguments.
515 * rt_netlink.c (netlink_route_multipath): Fix compile with disabled
518 2005-05-31 Paul Jakma <paul.jakma@sun.com>
520 * zserv.c: (zsend_route_multipath) Fix bug if route is sent
521 with no NEXTHOP_FLAG_FIB nexthops. As ZAPI_MESSAGE_IFINDEX
522 and ZAPI_MESSAGE_NEXTHOP are always set, clients would try
523 read non-existent nexthop information and hit stream assert.
524 Zserv is still broken for multi-nexthop messages, but it always was.
526 2005-05-06 Paul Jakma <paul.jakma@sun.com>
528 * zserv.h: Remove ZEBRA_PORT definition, its in lib/zebra.h now
530 2005-04-28 Paul Jakma <paul.jakma@sun.com>
532 * rib.h: (struct rib) Add lock field for refcounting.
533 * zserv.h: (struct zebra_t) Add a ribq workqueue to the zebra
535 * zserv.c: (zread_ipv4_add) XMALLOC then memset should be XCALLOC.
536 * zebra_rib.c: Clean up refcounting of route_node, make struct rib
537 refcounted and convert rib_process to work-queue. In general,
538 rib's should be rib_addnode'd and delnode'd to route_nodes, and
539 these symmetrical functions will manage the locking of referenced
540 route_node and freeing of struct rib - rather than having users
541 manage each seperately - with much scope for bugs..
542 (newrib_free) removed and replaced with rib_lock
543 (rib_lock) new function, check state of lock and increment.
544 (rib_unlock) new function, check lock state and decrement. Free
545 struct rib if refcount hits 0, freeing struct nexthop's, as
547 (rib_addnode) Add RIB to route_node, locking both.
548 (rib_delnode) Delete RIB from route_node, unlocking each.
549 (rib_process) Converted to a work-queue work function.
550 Functional changes are minimal, just arguments, comments and
552 (rib_queue_add_qnode) Helper function to setup a ribq item.
553 (rib_queue_add) Helper function, same arguments as old
554 rib_process, to replace in callers of rib_process.
555 (rib_queue_qnode_del) ribq deconstructor.
556 (rib_queue_init) Create the ribq.
557 (rib_init) call rib_queue_init.
558 (remainder) Sanitise refcounting of route_node's. Convert to
559 rib_queue_add, rib_addnode and rib_delnode. Change XMALLOC/memset
560 to XCALLOC. Remove calls to nexthop_delete and nexthop_free.
562 2005-04-10 Paul Jakma <paul@dishone.st>
564 * if_ioctl_solaris.c: (if_lookup_linklocal) fix order of args
565 in ALL_LIST_ELEMENTS_RO macro.
567 2005-04-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
569 * zserv.c (zebra_client_read): Fix bug: first read attempt should
570 read ZEBRA_HEADER_SIZE minus the number of bytes already read.
571 Improve efficiency by maintaining a calculation of the number
572 of bytes read instead of calling stream_get_endp multiple times.
573 If message length is too small, issue a warning message (not debug)
574 before closing the connection. And also check that message length
577 2005-04-09 Hasso Tepper <hasso at quagga.net>
579 * rt_netlink.c: One tiny missing comma caused pointless debug messages
582 2005-04-09 Hasso Tepper <hasso at quagga.net>
584 * rt_netlink.c (netlink_parse_info): Fix warning. It's safe to cast
585 status to unsigned here, because we already checked that it isn't
587 * rt_netlink.c (netlink_interface_addr): Prefix length belongs to the
588 address, not to the interface.
589 * rt_netlink.c (netlink_route_multipath): Fix debug. No useless info
590 is printed out now and IPv6 info is handeled.
592 2005-04-05 Paul Jakma <paul@dishone.st>
594 * zserv.c: print more helpful errors when we fail to successfully
595 bind and listen on zserv socket. Closes bugzilla #163.
597 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
599 * if_ioctl.c: (interface_list_ioctl) Use if_get_by_name_len.
600 * if_proc.c: (ifaddr_proc_ipv6) Increase size of ifname buffer to
602 * kernel_socket.c: (ifan_read) Use if_get_by_name_len.
604 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
606 * kernel_socket.c: (ifm_read) Use new if_lookup_by_name_len function
608 * if_ioctl_solaris.c: (interface_list_ioctl) Fix subtle bug with new
609 if_get_by_name_len function.
611 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
613 * interface.c: (if_new_intern_ifindex) Remove obsolete function.
614 (if_delete_update) After distributing the interface deletion message,
615 set ifp->ifindex to IFINDEX_INTERNAL.
616 (if_dump_vty) Detect pseudo interface by checking if ifp->ifindex is
618 (zebra_interface) Check return code from interface_cmd.func.
619 Do not set internal ifindex values to if_new_intern_ifindex(),
620 since we now use IFINDEX_INTERNAL for all pseudo interfaces.
621 * kernel_socket.c: (ifm_read) Fix code and comments to reflect that
622 all internal interfaces now have ifp->ifindex set to IFINDEX_INTERNAL.
623 * rt_netlink.c: (set_ifindex) New function used to update ifp->ifindex.
624 Detects interface rename events by checking if that ifindex is already
625 being used. If it is, delete the old interface before assigning
626 the ifindex to the new interface.
627 (netlink_interface, netlink_link_change) Call set_ifindex to update
630 2005-03-31 Hasso Tepper <hasso at quagga.net>
632 * rt_netlink.c (netlink_talk_filter): Show always warning message,
634 * rt_netlink.c (netlink_talk): Don't assume we use netlink_cmd
635 although we do now actually.
636 * rt_netlink.c (netlink_route, netlink_route_multipath): Always use
637 netlink_cmd to send messages to the kernel.
639 2005-03-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
641 * irdp.h: Add prototype for irdp_sock_init, and fix protos for
642 other irdp_* functions.
643 * irdp_interface.c: (irdp_if_start) If irdp_sock is negative,
644 call irdp_sock_init to create the IRDP socket.
645 (irdp_if_init) Rename to irdp_init().
646 (get_iflist_ifp) Remove function that is a duplicate of
648 (*) Make many functions static. And remove superfluous "\n" from
649 several zlog messages.
650 * irdp_main.c: (irdp_init) Remove function that used to call
651 irdp_if_init() and irdp_sock_init(), since we will now create
652 the socket only upon first use.
653 (irdp_sock_init) Do not update global irdp_sock variable, just
654 return the fd and assume that the caller will do so. If setsockopt
655 calls fail, close the socket before returning -1.
656 (*) Make many functions static.
657 * irdp_packet.c: Initialize irdp_sock to -1.
658 (irdp_read_raw) Call standard library function if_lookup_by_index
659 instead of get_iflist_ifp.
660 (irdp_recvmsg) Should be static, not global.
662 2005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
664 * rt_netlink.c: (netlink_link_change) If the status of an
665 operative interface changes (e.g. MTU changes), the client
666 daemons should be notified by calling zebra_interface_up_update.
667 Previously, the information was being updated in zebra's
668 interface structure, but the clients were not notified of
669 changes to an operative interface.
671 2005-03-25 Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
672 * interface.c, interface.h, rtadv.c, rtadv.h: modifications to
673 IPv6 Neighbor Discovery according to RFC3775, section 7:
674 o 1-bit Home Agent flag management in Router Advertisement (7.1).
675 o 1-bit Router Address flag management in Prefix Information
677 o Advertisement Interval Option (7.3)
678 o Home Agent Information Option (7.4)
679 o Changes to Sending Router Advertisements more frequently (7.5)
681 2005-03-13 Hasso Tepper <hasso at quagga.net>
683 * zebra/interaface.c: "show interface description" command
686 2005-03-12 Paul Jakma <paul@dishone.st>
688 * rt_netlink.c: (netlink_route_multipath) dont set equalise flag.
689 No stock Linux kernel has ever supported it, and even if it had
690 it's not generally a good idea.
692 2005-03-07 Michael Sandee <voidptr@voidptr.sboost.org>
694 * if_proc.c, ipforward_proc.c, rtread_proc.c: Fix fd leaks.
696 2005-03-06 Hasso Tepper <hasso at quagga.net>
698 * interface.c: Fix CRC and frame errors statistics in Linux.
700 2005-02-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
702 * zserv.c: Must include network.h and buffer.h for non-blocking I/O.
703 Remove global message_queue and t_write (need separate buffering for
705 (zebra_server_dequeue,zebra_server_enqueue) Remove functions
706 related to old buggy buffering code.
707 (zserv_delayed_close) New thread callback function to delete a client.
708 (zserv_flush_data) New thread callback function to flush buffered
710 (zebra_server_send_message) Rewritten to use buffer_write (so
711 buffering of writes and non-blocking I/O work properly).
712 (zsend_interface_add,zsend_interface_delete,zsend_interface_address,
713 zsend_interface_update) Return 0 instead of -1 if !client->ifinfo
714 (this is not really an error). Return value from
715 zebra_server_send_message.
716 (zsend_route_multipath,zsend_ipv4_nexthop_lookup,
717 zsend_ipv4_import_lookup) Return value from zebra_server_send_message.
718 (zsend_ipv6_nexthop_lookup) Fix scope to static, and return value
719 from zebra_server_send_message.
720 (zsend_router_id_update) Must use zebra_server_send_message instead
721 of deprecated writen function. Return 0 instead of -1 if this client
722 is not subscribed to router-id updates (since this is not really
724 (zread_interface_add) Change type to static int. If
725 zsend_interface_add fails or zsend_interface_address fails, return -1
726 immediately (since the client has had an I/O error).
727 (zread_interface_delete,zread_ipv4_add,zread_ipv4_delete,
728 zread_ipv6_add,zread_ipv6_delete,zread_router_id_delete) Return 0
730 (zread_ipv4_nexthop_lookup) Return value from
731 zsend_ipv4_nexthop_lookup.
732 (zread_ipv4_import_lookup) Return value from zsend_ipv4_import_lookup.
733 (zebra_read_ipv6) Remove unused function.
734 (zread_ipv6_nexthop_lookup) Return value from
735 zsend_ipv6_nexthop_lookup.
736 (zread_router_id_add) Return value from zsend_router_id_update.
737 (zebra_client_close) Call buffer_free(client->wb) and
738 thread_cancel(client->t_suicide).
739 (zebra_client_create) Allocate client->wb using buffer_new.
740 (zebra_client_read) Support non-blocking I/O by using stream_read_try.
741 Use ZEBRA_HEADER_SIZE instead of 3.
742 (zebra_accept) Fix bug: reset accept thread at top. Make client
743 socket non-blocking using the set_nonblocking function.
744 (config_write_forwarding) Fix scope to static.
745 (zebra_init) Remove initialization code for old buggy write buffering.
746 * zserv.h: Add 2 new fields to struct zserv: struct buffer *wb
747 (to enable buffered writes with non-blocking I/), and
748 struct thread *t_suicide to support delayed close on I/O
750 * router-id.h: Remove prototypes for zread_router_id_add and
751 zread_router_id_delete (their scope should be static to zserv.c).
753 2005-02-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
755 * redistribute.c: (zebra_check_addr,is_default,
756 zebra_redistribute_default,zebra_redistribute) Fix scope to be static.
758 2005-02-20 Hasso Tepper <hasso at quagga.net>
760 * rt_netlink.c: Don't show messages "ignoring message type 0x001[89]"
761 if we are not debugging.
763 2005-02-19 Paul Jakma <paul@dishone.st>
765 * zserv.c: (zebra_read_ipv6) replace the char * arithmetic with
768 2005-02-14 Paul Jakma <paul@dishone.st>
770 * Not all Linux netlink systems have IFLA_WIRELESS
772 2005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
774 * ioctl.c: (if_ioctl,if_ioctl_ipv6,if_get_flags) Replace perror with
776 * ioctl_solaris.c: (if_ioctl,if_ioctl_ipv6) Replace perror with
779 2005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
781 * if_ioctl_solaris.c: (interface_list_ioctl) Save errno before calling
783 * ioctl{,_solaris}.c: (if_ioctl,if_ioctl_ipv6) Save errno before calling
785 * ipforward_solaris.c: (solaris_nd) Save errno before calling
787 * irdp_main.c: (irdp_sock_init) Save errno before calling
790 2005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
792 * rt_netlink.c: (netlink_socket,netlink_request,netlink_parse_info,
793 netlink_talk) Save errno before calling zserv_privs.change.
795 2005-01-24 Martin Pot <mpot at martybugs.net>
797 * zebra/rt_netlink.c: ignore wireless newlink netlink messages.
799 2005-01-18 Hasso Tepper <hasso at quagga.net>
801 * interface.c: Better statistics output in "show interface" command in
802 case of /proc being used.
804 2005-01-17 Hasso Tepper <hasso at quagga.net>
806 * main.c: With --nl-bufsize argument is required.
808 2005-01-05 Paul Jakma <paul@dishone.st>
810 * zserv.c: (zebra_accept) Comment out setting of socket to NONBLOCK
811 for now, as we dont actually deal with with resending.... See
812 bugzilla #122, fix from wawa@yandex-team.ru (Vladimir Ivanov).
813 * kernel_socket.c: (routing_socket) ditto.
815 2005-01-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
817 * rtadv.c: (rtadv_recv_packet,rtadv_send_packet) Use ZCMSG_FIRSTHDR
818 instead of CMSG_FIRSTHDR.
820 2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
822 * connected.c: (connected_add_ipv4) Limit warning about /32 addresses
823 with no peer specified to PtP interfaces only.
825 2004-12-18 Hasso Tepper <hasso at quagga.net>
827 * zebra_vty.c: Fix "show ipv6 route <proto>" command help and make it
828 work for isis routes.
830 2004-12-09 Greg Troxel <gdt@fnord.ir.bbn.com>
832 * kernel_socket.c (rtmsg_debug): char * => const char *
834 2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
836 * *.c: Change level of debug messages to LOG_DEBUG.
838 2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
840 * main.c: (main) The 2nd argument to openzlog has been removed.
841 So stdout logging will no longer be enabled by default.
842 * irdp_main.c: (irdp_finish) Reduce severity of shutdown message
843 from LOG_WARNING to LOG_INFO.
845 2004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
847 * main.c: (sigint) Use zlog_notice for termination message.
848 (main) Add a startup announcement using zlog_notice.
850 2004-11-25 Hasso Tepper <hasso at quagga.net>
852 * irdp_interface.c: Remove comment from DEFUN, it breaks vtysh because
853 it confuses extract.pl.
854 * main.c: Make group to run as configurable.
856 2004-10-28 Hasso Tepper <hasso at quagga.net>
858 * interface.c: Remove dead "ip tunnel" command.
860 2004-10-22 Paul Jakma <paul@dishone.st>
862 * irdp_main.c: change setsockopt_pktinfo to setsockopt_ifindex
864 2004-10-19 Andrew J. Schorr <aschorr@telemetry-investments.com>
866 * rt_netlink.c: (netlink_interface_addr) For PtP interfaces, ignore
867 tb[IFA_ADDRESS] if it's the same as tb[IFA_LOCAL].
868 * interface.c: (ip_address_install) Use new ipv4_broadcast_addr
870 * connected.c: (connected_up_ipv4) Use CONNECTED_POINTOPOINT_HOST
872 (connected_down_ipv4) ditto.
873 (connected_add_ipv4) Validate destination address, print warnings
874 if it does not make sense.
876 2004-10-19 Hasso Tepper <hasso at quagga.net>
878 * zserv.c: Fix regression introduced with zserv cleanup.
880 2004-10-13 Hasso Tepper <hasso at quagga.net>
882 * zebra_snmp.c: Remove defaults used to initialize smux connection to
883 snmpd. Connection is initialized only if smux peer is configured.
884 * zserv.c: Remove useless warnings "forwarding is already on".
886 2004-10-12 Hasso Tepper <hasso at quagga.net>
888 * zebra_vty.c: Unbreak "show ip route" command help and make it work
890 * interface.c(if_dump_vty): Show IPv6 addresses in "show interface"
891 output. Fixes Bugzilla #119.
892 * *.c: Make some strings const and some (unsigned) casts to fix
895 2004-10-07 Hasso Tepper <hasso at quagga.net>
897 * connected.c, main.c, rt_netlink.c, rtadv.c, zebra_rib.c, zserv.c:
898 Fix warnings: make strings const, signed -> unsigned.
900 2004-10-05 Paul Jakma <paul@dishone.st>
902 * irdp_packet.c: (parse_irdp_packet) style issues.
903 Use sockopt_iphdrincl_swab_systoh.
904 Try unbork the code. Checksum the ICMP data and actually
905 compare it to received checksum. Check data length against
906 claimed length in header.
907 Always use ntoh.. when accessing addresses, even when the
908 comparison happens to be endian-safe.
909 (send_packet) minor style isues. Use
910 sockopt_iphdrincl_swab_htosys.
911 (irdp_iph_hton/ntoh) IP header to/from network/host order.
913 2004-10-03 Gilad Arnold <gilad.arnold at terayon.com>
915 * interface.c, interface.h: A new prefix tree of connected subnets is
916 associated with each interface structure in zebra, in which each
917 live (ie, non-synthetic) node holds a list of installed addresses
918 that belong to that prefix. Remove secondary address logic from cli.
919 See [quagga-dev 872] for detailed explanation.
920 * connected.c: Use if_subnet_add() and if_subnet_delete().
922 2004-10-03 James R. Leu <jleu at mindspring.com>
924 * router-id.c, router-id.h: New files. Router id selection process. If
925 there is non 127.x.x.x address in loopack interface, lowest of them
926 is chosen. If there isn't, lowest from other interfaces addresses
927 are chosen. "router-id x.x.x.x" vty command to manual override.
928 * Makefile.am: Compile new files.
929 * main.c: Initialize router id.
930 * redistribute.c: Add interface addresses into router id selection
931 lists as they (dis)appear.
932 * zserv.c, zserv.h: Sending router id related messages to daemons.
934 2004-09-26 Hasso Tepper <hasso at quagga.net>
936 * irdp_interface.c, irdp_main.c, irdp_packet.c, rt_netlink.c,
937 rtadv.c, zebra_vty.c: Fix compiler warnings.
939 2004-09-24 Paul Jakma <paul@dishone.st>
941 * irdp_interface.c: (no_ip_irdp_address_preference_cmd)
942 add missing listnode declaration.
944 2004-09-24 Paul Jakma <paul@dishone.st>
946 * irdp_{interface,main}.c: lists typedef removal cleanup.
947 update some list loops to LIST_LOOP. some miscellaneous style
949 (no_ip_irdp_address_preference_cmd) Fix delete of referenced node
951 * irdp_packet.c: (irdp_recvmsg) Fix buggy assignment of integer
953 * if_ioctl{,_solaris}.c: lists typedef removal cleanup.
954 update some list loops to LIST_LOOP.
956 2004-09-23 Hasso Tepper <hasso at quagga.net>
958 * *.[c|h]: list -> struct list *, listnode -> struct listnode *.
960 2004-09-22 Paul Jakma <paul.jakma@sun.com>
962 * zserv.c: (zsend_route_multipath) fix nasty bad memset of struct
963 in_addr to sizeof(struct in6_addr), causing odd and hard to debug
966 2004-08-31 Hasso Tepper <hasso at quagga.net>
968 * main.c, rt_netlink.c: Added -s command line switch for tuning
969 netlink receive buffer size in Linux to avoid buffer overruns.
971 2004-08-26 Miles Nordin <carton@Ivy.NET>
973 * ipforward_sysctl.c (mib_ipv6): Use size_t for len, per
974 sysctl(3), rather than int. (Needed on NetBSD/alpha to display
975 forwarding status correctly.)
977 2004-08-23 Paul Jakma <paul@dishone.st>
979 * zserv.c: (zebra_init) remove implicit ip forward enabling
981 2004-08-19 Paul Jakma <paul@dishone.st>
983 * irdp_main.c: update to match sockopt renames.
984 * irdp_packet.c: include sockopt.h and update to match sockopt
987 2004-08-11 Greg Troxel <gdt@fnord.ir.bbn.com>
989 * rtadv.c (rtadv_send_packet): Allocate space for control messages
990 more carefully; it was wrong on NetBSD/sparc where CMSG alignment
991 is to 8 bytes instead of 4, and overwriting the address. Use the
992 provided macros for determining lengths.
994 2004-07-23 Sowmini Varadhan <Sowmini.Varadhan@Sun.COM>
996 * if_ioctl_solaris.c: HAVE_IPV6 ifdef fixups
998 * ioctl_solaris.c: ditto.
999 * interface.c: cast for LLADDR
1000 * interface.h: Add guards, include redistribute.h and remove
1001 extraneous definitions of zebra_interface_{up,down}_update
1002 * ioctl.h: Add AF_IOCTL define for non SOLARIS_IPV6
1003 * redistribute.h: include dependent header, zserv.h
1004 * zserv.h: include dependent header, rib.h
1006 2004-07-23 Paul Jakma <paul@dishone.st>
1008 * irdp_main.c: use setsockopt_pktinfo_ipv4
1009 * irdp_packet.c: use SOPT_SIZE_CMSG_PKTINFO_IPV4 and
1010 getsockopt_pktinfo_ifindex()
1012 2004-07-13 David Wiggins <dwiggins@bbn.com
1014 * kernel_socket.c (rtm_flag_dump): terminate buffer with '\0', not '0'.
1016 2004-07-13 Hasso Tepper <hasso@estpak.ee>
1018 * irdp_main.c: Add privilege change.
1020 2004-07-12 Hasso Tepper <hasso@estpak.ee>
1022 * irdp_interface.c: follow common style while naming vty command
1023 functions. Avoids confusion in extract.pl.
1025 2004-06-30 Greg Troxel <gdt@poblano.ir.bbn.com>
1027 * main.c: define thread_master variable so that linking with
1028 libzebra.so doesn't fail. Arguably zclient.o should be in a
1029 separate library, but this is far less disruptive.
1031 2004-06-12 Robert Olsson <Robert.Olsson at data.slu.se>
1033 * Added IRDP support.
1035 2004-05-18 Hasso Tepper <hasso@estpak.ee>
1037 * rtadv.c: Removed "[no] ipv6 nd send-ra" command. Replaced "ipv6 nd
1038 prefix-advertisement" with "ipv6 nd prefix". Rewrite syntax of
1039 "ipv6 nd prefix" command to allow various combinations of parameters
1040 and flags. No defaults in configuration. Replaced on-link and
1041 autoconfig with off-link and no-autoconfig flags in command syntax.
1042 Cosmetic fixes in all commands. Documentation to reflect all changes.
1044 2004-05-11 Paul Jakma <paul@dishone.st>
1046 * Makefile.am: support for IOCTL_METHOD, as per Sowmini's patch.
1047 * if_ioctl_solaris.c: Fixup some erroneous privilege changes and
1049 * ioctl_solaris.c: ditto
1050 * ioctl.h: Add if_ioctl_ipv6 prototype and AF_IOCTL for SOLARIS_IPV6
1051 * kernel_socket.c: Fix SAROUNDUP, compiler doesnt like do..while
1052 RHS in assignments :)
1053 * redistribute.c: (zebra_interface_delete_update) only used
1054 if RTM_IFANNOUNCE and NETLINK is available.
1056 2004-05-09 Paul Jakma <paul@dishone.st>
1058 * zserv.c: (zsend_route_multipath) Set the nexthop_num
1059 field correctly. Add NEXTHOP_TYPE_IPV6_IFNAME for v6.
1060 Conditionally set ZAPI_MESSAGE_METRIC flag - only for adds.
1061 (zsend_ipv4_add) cruft, deleted.
1062 (zsend_ipv4_delete) ditto.
1063 (zsend_ipv6_add) ditto.
1064 (zsend_ipv6_delete) ditto.
1065 * ioctl.c: (if_get_mtu) set mtu6 to mtu
1066 * mtu_kvm.c: (if_kvm_get_mtu) set mtu6 to mtu
1067 * rt_netlink.c: (netlink_interface) set mtu6 to mtu
1068 (netlink_link_change) ditto
1069 * ipforward_solaris.c: fix typo of ND variable.
1070 * if_ioctl_solaris.c: Add zprivs support.
1071 * ioctl_solaris.c: ditto.
1073 2004-05-09 Sowmini Varadhan <sowmini.varadhan@sun.com>
1075 * zserv.c: (zsend_ipv{4,6}_{add,delete}_multipath) collapsed
1076 into single zsend_route_multipath function.
1077 (zsend_interface_{up,down}) collapsed into zsend_interface_update.
1078 (zsend_interface_address_{add,delete}) collapsed into
1079 zsend_interface_address.
1080 (zsend_interface_add) send mtu6.
1081 (zsend_interface_delete) ditto.
1082 (zebra_write) remove unused function.
1083 (various) Apply static qualifier. Add comments.
1084 * zserv.h: Definitions changed as per above.
1085 * redistribute.c: Changes as per zserv.c.
1086 * interface.c: (if_delete_update) only used with HAVE_NETLINK
1088 (if_flag_dump_vty) Solaris IFF_IPV4 and IFF_IPV6 if flags
1089 (if_dump_vty) print mtu6 if not same as mtu
1090 * if_ioctl_solaris.c: New file, Solaris interface ioctl methods.
1091 * ioctl_solaris.c: New file, Common solaris ioctl methods.
1093 2004-04-06 Krzysztof Oledzki <oleq@ans.pl>
1095 * rt_netlink.c: Do not ignore metric when reading kernel routing
1096 table on Linux with rt_netlink interface.
1098 2004-03-18 Hasso Tepper <hasso@estpak.ee>
1100 * interface.c: Temporary fix for handling secondary addresses
1103 2004-02-12 Hasso Tepper <hasso@estpak.ee>
1105 * zserv.c: Added "ipv6 forwarding" command.
1107 2004-01-08 Greg Troxel <gdt@fnord.ir.bbn.com>
1109 * kernel_socket.c (kernel_read): Use sockaddr_storage in buffer
1110 for reading kernel messages to ensure enough space (necessary on
1111 Solaris due to sockaddr_dl being large). Thanks to Sowmini
1112 Varadhan for help with this change.
1114 2004-01-06 Greg Troxel <gdt@t1.ir.bbn.com>
1116 * rtadv.c (rtadv_send_packet): Change perror to zlog_err.
1118 2004-01-05 Greg Troxel <gdt@fnord.ir.bbn.com>
1119 * kernel_socket.c (ifm_read): Major cleanup. Use Sowmini's code
1120 to find the sockaddr_dl in all cases, narrowing the Solaris ifdef
1121 to just the accomodation of broken kernels. Check sockaddr_dl
1122 carefully up front, and later assume any non-NULL sdl pointer is
1123 valid. Clean up types and variable declarations, and rename
1124 WRAPUP to SAROUNDUP to make the name fit the behavior.
1126 2004-01-05 Greg Troxel <gdt@fnord.ir.bbn.com>
1128 * kernel_socket.c (kernel_read): Add a sockaddr_dl to the ifmsg
1129 structure, because on Solaris sockaddr_dl is far larger than the
1130 base sockaddr structure. (The code had previously been failing to
1133 2004-01-05 Greg Troxel <gdt@ahi.ir.bbn.com>
1135 * kernel_socket.c (kernel_read): Look up interfaces by index
1136 first, so that state changes which do not include a sockaddr_dl
1137 now work. Add many sanity checks. In
1138 particular, do not assume that a sockaddr_dl follows a message
1139 without checking the ifm_addrs flags, and do not trust the length
1140 in a sockaddr_dl. Add/clarify many comments.
1142 2003-12-03 Greg Troxel <gdt@poblano.ir.bbn.com>
1144 * rtadv.c: reorder includes to avoid compiler warning (define
1145 structs before using them in prototypes)
1147 2003-05-25 Jim Crumpler <Jim.Crumpler@edion.com>
1149 * zserv.c: Add "ip forwarding" command.
1151 2003-05-16 Gilad Arnold <gilad.arnold@terayon.com>
1153 * zebra_rib.c: Fix memory leaks for ifname nexthops
1155 2003-04-19 Israel Keys <ikeys@agile.tv>
1157 * rt_netlink.c: BLOCK on netlink while initialising
1159 2003-02-06 Francois Deppierraz <francois@ctrlaltdel.ch>
1161 * rt_netlink.c (netlink_route_multipath): Set RTM_F_EQUALIZE when
1164 2002-09-28 Akihiro Mizutani <mizutani@net-chef.net>
1166 * zebra_rib.c (static_add_ipv4): Null0 static route is added.
1168 2002-09-10 Jochen Friedrich <chris+zebra@scram.de>
1170 * rt_netlink.c: Add check for EAGAIN.
1171 * kernel_socket.c: Likewise
1173 2002-06-12 Israel Keys <ikeys@oz.agile.tv>
1175 * rt_netlink.c: Setting the NLM_F_ACK flag on the netlink command
1176 message so that we get an ACK for successful netlink commands.
1177 Change the netlink socket to BLOCKING while we wait for a
1178 response; be it an ACK or an NLMSG_ERROR. Change
1179 netlink_parse_info to deal with ACK messages.
1181 2001-11-01 Jun-ichiro itojun Hagino <itojun@iijlab.net>
1183 * rtadv.c (rtadv_make_socket): setsockopt(IPV6_CHECKSUM) does not
1184 work for ICMPv6 socket.
1186 2001-10-24 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1188 * rib.c (rib_process): Select connected route any case.
1190 2001-10-23 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1192 * interface.c (no_ip_address_secondary): Add "no" to command.
1194 2001-10-18 NOGUCHI Kay <kay@v6.access.co.jp>
1196 * ioctl.c (if_prefix_add_ipv6): Set the prefered and valid lifetime
1197 to infinity as the freebsd4.4 workaroud.
1199 2001-08-26 mihail.balikov@interbgc.com
1201 * zebra_snmp.c: Fix snmpwalk problem such as IPv4 address
1204 2001-08-22 NOGUCHI Kay <kay@v6.access.co.jp>
1206 * rtadv.c: Do not send RA to loopback interface.
1208 2001-08-20 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1210 * ioctl.c (if_set_prefix): Remove Linux 2.0 specific connected
1213 2001-08-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1215 * zebra-0.92a released.
1217 2001-08-17 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1219 * rib.c: Kernel route is treated as EGP routes in nexthop active
1222 2001-08-15 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1224 * zebra-0.92 released.
1226 2001-08-08 "Akihiro Mizutani" <mizutani@dml.com>
1228 * rib.c (show_ip_route_prefix_longer): Add longer-prefix option to
1229 show route commands.
1231 2001-07-29 Yon Uriarte <havanna_moon@gmx.net>
1233 * zserv.c (zsend_ipv4_add_multipath): Add
1234 NEXTHOP_TYPE_IPV4_IFINDEX check.
1236 2001-07-29 NOGUCHI Kay <kay@v6.access.co.jp>
1238 * rtadv.c: Apply valid lifetime, preferred lifetime, onilnk flag,
1239 autonomous address-configuration flag patch.
1240 (no_ipv6_nd_suppress_ra): Change "ipv6 nd send-ra" to "no ipv6 nd
1243 2001-07-24 NOGUCHI Kay <kay@v6.access.co.jp>
1245 * rtadv.c (ipv6_nd_ra_interval): Add "ipv6 nd ra-interval SECONDS"
1248 2001-07-24 Jun-ichiro itojun Hagino <itojun@iijlab.net>
1250 * rt_socket.c (kernel_rtm_ipv4): Add KAME/NetBSD151 equal cost
1251 multicast FIB support both IPv4 and IPv6.
1253 2001-07-24 Hal Snyder <hal@vailsys.com>
1255 * if_ioctl.c (interface_list_ioctl): Fix bug of failing to get the
1256 full list of interfaces on some configurations of OpenBSD.
1258 2001-07-23 NOGUCHI Kay <kay@v6.access.co.jp>
1260 * rtadv.c (ipv6_nd_send_ra): Apply [zebra 9320] to fix "ipv6 nd
1262 (ipv6_nd_ra_lifetime): "ipv6 nd ra-lifetime 0" for default router
1264 (ipv6_nd_managed_config_flag): "ipv6 nd managed-config-flag" is
1266 (ipv6_nd_other_config_flag): "ipv6 nd other-config-flag" is added.
1268 2001-07-23 Jun-ichiro itojun Hagino <itojun@iijlab.net>
1270 * ioctl.c (if_ioctl): Change ioctl argument from int to u_long.
1272 * rt_ioctl.c: Likewise.
1274 2001-07-23 Jun-ichiro itojun Hagino <itojun@iijlab.net>
1276 * kernel_socket.c (rtm_write): Only set RTF_CLONING when the
1277 interface is not p2p.
1279 2001-04-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1281 * ioctl.c (if_prefix_add_ipv6): Fix argument type.
1283 2001-04-06 Toshiaki Takada <takada@zebra.org>
1285 * zserv.c (zsend_interface_delete): Use client->obuf instead of
1286 allocating new stream.
1288 2001-03-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1290 * rt_netlink.c: Revert RTPROT_BOOT change.
1292 2001-03-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1294 * rt_netlink.c (netlink_route_change): Skip RTPROT_BOOT route.
1295 (netlink_routing_table): Likewise.
1297 2001-03-07 "Akihiro Mizutani" <mizutani@dml.com>
1299 * zserv.c (zsend_ipv4_add_multipath): Send metric value to
1302 2001-02-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1304 * rt_netlink.c (netlink_routing_table): Do not return
1305 tb[RTA_GATEWAY] is NULL. Reported by: "Michael O'Keefe"
1306 <mokeefe@qualcomm.com>.
1308 2001-02-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1310 * if_ioctl.c (interface_list_ioctl): Call if_add_update().
1311 Suggested by: Chris Dunlop <chris@onthe.net.au>.
1313 2001-02-01 Kunihiro Ishiguro <kunihiro@zebra.org>
1315 * rib.c (nexthop_active_ipv4): When nexthop type is
1316 NEXTHOP_TYPE_IPV4_IFINDEX, propery set the ifindex to rifindex.
1318 * zserv.c: Initialize rtm_table_default with 0.
1320 * zebra-0.91 is released.
1322 2001-01-31 Kunihiro Ishiguro <kunihiro@zebra.org>
1324 * kernel_socket.c (rtm_read): Filter cloned route. Suggested by:
1325 Jun-ichiro itojun Hagino <itojun@iijlab.net>
1327 2001-01-30 Kunihiro Ishiguro <kunihiro@zebra.org>
1329 * connected.c (connected_up_ipv6): When point-to-point destination
1330 address is ::, use local address for connected network.
1331 (connected_down_ipv6): Likewise.
1333 2001-01-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1335 * zserv.c (zebra_serv): Add missing close() call. Reported by:
1336 David Waitzman <djw@vineyard.net>.
1338 2001-01-24 Kunihiro Ishiguro <kunihiro@zebra.org>
1340 * rib.c (rib_lookup_ipv4): New function for checking exact match
1343 2001-01-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1345 * rib.c (show_ipv6_route_protocol): Fix bug of "show ip route
1348 2001-01-22 Kunihiro Ishiguro <kunihiro@zebra.org>
1350 * interface.c (zebra_interface): Do not call
1351 zebra_interface_add_update for inactive interface.
1353 * zserv.c (zsend_interface_address_add): Send interface address
1355 (zsend_interface_address_delete): Likewise.
1357 2001-01-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1359 * interface.c (if_addr_add): Add flags.
1361 * connected.c (ifa_add_ipv4): Add new function for interface
1363 (ifa_delete_ipv4): Likewise.
1365 2001-01-16 Kunihiro Ishiguro <kunihiro@zebra.org>
1367 * rib.c (rib_update): Update IPv6 RIB.
1369 * kernel_socket.c (ifam_read): Call if_refresh() for update
1370 interface flag status. This is for implicit interface up on *BSD.
1372 * interface.c (if_refresh): Add interface flag refresh function.
1374 * kernel_socket.c (rtm_read): Fetch link-local address interface
1376 (ifan_read): We need to fetch interface information. Suggested
1377 by: Yasuhiro Ohara <yasu@sfc.wide.ad.jp>.
1379 * rib.c (static_ipv6_nexthop_same): Add check for
1380 NEXTHOP_TYPE_IPV6_IFNAME.
1382 2001-01-15 Kunihiro Ishiguro <kunihiro@zebra.org>
1384 * rib.h (NEW_RIB): Turn on NEW_RIB flag. IPv6 new RIB code are
1387 2001-01-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1389 * rib.c (static_ipv6_write): Display STATIC_IPV6_GATEWAY_IFNAME
1391 (rib_delete_ipv6): Handle same route conter for IPv6 connected
1393 (show_ipv6_route_protocol): New command.
1394 (show_ipv6_route_addr): Likewise.
1395 (show_ipv6_route_prefix): Likewise.
1396 (rib_update): Sweep kernel route when it is cleaned up.
1398 * rt_socket.c (kernel_add_ipv6): Add NEXTHOP_IPV6_IFNAME
1401 * rt_netlink.c (kernel_init): Likewise.
1403 * rt_ioctl.c (kernel_ioctl_ipv6_multipath): Likewise.
1405 * rib.c (rib_add_ipv4): Cope with same connected route on a
1406 interface. Suggested by: Matthew Grant <grantma@anathoth.gen.nz>.
1407 (nexthop_ipv6_ifname_add): Add NEXTHOP_IPV6_IFNAME treatmenet.
1409 * rib.h (struct new_rib): Add refcnt to keep track on the
1410 reference of same connected route.
1412 * ioctl.c (if_set_prefix): Add check for GNU_LINUX.
1414 2001-01-13 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1416 * kernel_socket.c (ifan_read, rtm_type_str): Add RTM_OIFINFO check.
1417 (rtm_type_str): Add RTM_IFANNOUNCE check.
1418 (ifan_read): New function.
1419 (kernel_read): Add case for RTM_IFANNOUNCE.
1421 2001-01-13 Kunihiro Ishiguro <kunihiro@zebra.org>
1423 * rt_ioctl.c (kernel_ioctl_ipv6_multipath): New function.
1425 * rt_netlink.c (netlink_route_multipath): IPv6 address ifindex
1428 * connected.c (connected_up_ipv6): Add dest value check.
1430 * rib.c (nexthop_active_ipv6): Do not touch IPv6 nexthop's
1432 (rib_add_ipv4): Import rib_add_ipv6() same route check code.
1433 (nexthop_active_check): NEXTHOP_TYPE_IPV6_IFINDEX activity is only
1436 * rt_socket.c (kernel_rtm_ipv6_multipath): New function.
1438 * redistribute.c (redistribute_add): Use
1439 zsend_ipv6_add_multipath().
1440 (redistribute_delete_multipath): Use
1441 zsend_ipv6_delete_multipath().
1443 * interface.c (ip_address): Check current IP address to avoid
1446 * rib.c (rib_delete_ipv4): When deleted route is connected route,
1448 (rib_add_ipv4): When connected route is added do not perform
1450 (rib_delete_ipv4): Check ifindex for connected route.
1452 * kernel_socket.c (rtm_read): When route has RTF_STATIC, set
1453 ZEBRA_FLAG_STATIC for indicate as persistent route.
1454 (ifam_read): Unset interface index from link-local address when
1457 * rib.c (rib_update): Do not delete persistent kernel route.
1459 * rib.h (struct new_rib): Integrate RIB_FLAG_* to ZEBRA_FLAG_*.
1461 * rt_socket.c (kernel_add_ipv6_multipath): Add placeholder.
1462 (kernel_delete_ipv6_multipath): Likewise.
1464 * rt_netlink.c (netlink_talk): Give struct nlsock to netlink_talk.
1466 2001-01-12 Kunihiro Ishiguro <kunihiro@zebra.org>
1468 * rib.c (rib_update): Revert Matthew Grant's patch
1469 zebra_cvs_newribfix.patch. Use struct rib->ifindex for kernel
1470 interface index. Introduce NEXTHOP_TYPE_IPV4_IFINDEX to support
1471 that. Add support for address deletion situation.
1473 2001-01-11 Kunihiro Ishiguro <kunihiro@zebra.org>
1475 * interface.c: Remove HAVE_IF_PSEUDO part.
1479 * rt_netlink.c (netlink_link_change): Likewise.
1481 2001-01-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1483 * zserv.c: Remove OLD_RIB codes.
1485 2001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1487 * zebra-0.90 is released.
1489 2001-01-09 Matthew Grant <grantma@anathoth.gen.nz>
1491 * interface.c (if_new_intern_ifindex): Allocate a new internal
1493 (if_addr_refresh): Fix up ip addresses configured via zebra.
1494 (if_add_update): Handle an interface addition.
1495 (if_delete_update): Handle an interface delete event.
1497 * rib.c (nexthop_ipv4_add): Add kernel route deletion process when
1498 interface goes down.
1500 2001-01-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1502 * interface.c (if_dump_vty): When HAVE_NET_RT_IFLIST is defined,
1503 NetBSD also use this function. Suggested by Jasper Wallace
1504 <jasper@ivision.co.uk>.
1506 2001-01-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1508 * rib.c (nexthop_active_ipv4): Move back to set methodo to old
1511 2001-01-05 Kunihiro Ishiguro <kunihiro@zebra.org>
1513 * rib.c (rib_add_ipv4): EBGP multihop set ZEBRA_FLAG_INTERNAL
1516 2001-01-04 Kunihiro Ishiguro <kunihiro@zebra.org>
1518 * rt_netlink.c (netlink_talk_ipv6): When IPv6 route message is
1519 sent from netlink_cmd, the same message comes from netlink. To
1520 avoid confusion, temporary netlink_talk_ipv6 use netlink.sock
1521 instead of netlink_cmd.sock.
1523 2001-01-01 Kunihiro Ishiguro <kunihiro@zebra.org>
1525 * zserv.h (ZEBRA_SERV_PATH): Change "/tmp/zebra" to "/tmp/.zebra".
1526 Change "/tmp/zserv" to "/tmp/.zserv".
1528 2000-12-29 Frank van Maarseveen <F.vanMaarseveen@inter.NL.net>
1530 * rt_netlink.c (struct nlsock): Divide kernel message into listen
1531 socket and command socket.
1532 (netlink_talk): Remove socket listen code. Use netlink_parse_info
1533 for read kernel response.
1535 2000-12-29 Kunihiro Ishiguro <kunihiro@zebra.org>
1537 * rib.c (vty_show_ip_route): Show uptime of the RIP,OSPF,BGP
1540 2000-12-27 Kunihiro Ishiguro <kunihiro@zebra.org>
1542 * rt_netlink.c (netlink_route_multipath): Metric value is
1543 reflected to kernel routing table.
1545 * rt_ioctl.c (kernel_ioctl_ipv4_multipath): Likewise.
1547 * kernel_socket.c (rtm_write): Likewise.
1549 * rib.c (nexthop_active_ipv4): Only iBGP route perform recursive
1552 * rt_ioctl.c (kernel_ioctl_ipv4_multipath): Add ioctl version of
1553 new RIB implementation.
1555 2000-12-26 Kunihiro Ishiguro <kunihiro@zebra.org>
1557 * rib.h: Remove MULTIPATH_NUM. It is defined by configure script.
1559 2000-12-25 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
1561 * rib.c (rib_if_up): Call rib_fib_set instead of RIB_FIB_SET for
1562 proper redistribution.
1564 2000-12-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1566 * rib.c (nexthop_active_ipv4): Add self lookup nexthop check.
1567 (show_ip_route_protocol): Support new RIB.
1569 * rt_netlink.c (netlink_route_change): Do not return when gate is
1572 2000-12-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1574 * rib.c (rib_lookup_ipv4_nexthop): IBGP nexthop check function is
1576 (rib_add_ipv4): Free implicit withdraw route's RIB.
1578 2000-12-15 Kunihiro Ishiguro <kunihiro@zebra.org>
1580 * rib.c (nexthop_active_ipv4): Check indirect nexthop.
1582 * redistribute.c (redistribute_add_multipath): Redistribution
1583 works with new rib code.
1585 2000-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1587 * rt_netlink.c (netlink_route_multipath): Check useful nexthop
1589 (netlink_route_multipath): Clear rtnh_flags and rtnh_hops.
1591 * rib.c (nexthop_active_update): Set flag for the rib's nexthop
1592 activity is changed.
1593 (nexthop_active_check): Before checking interface is up, make it
1594 sure the interface exist.
1596 2000-11-20 Kunihiro Ishiguro <kunihiro@zebra.org>
1598 * rib.c (ip_route): New RIB prototype.
1600 2000-11-16 Yon Uriarte <ukl2@rz.uni-karlsruhe.de>
1602 * zserv.c (zsend_interface_add): Send hardware address when
1603 hw_addr_len is greater than 0.
1605 2000-11-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1607 * connected.c (connected_up_ipv4): Fix ptop bug. The destination
1608 network should be installed into routing table.
1609 (connected_down_ipv4): Likewise.
1610 (connected_add_ipv4): Change to use connected_up_ipv4.
1611 (connected_delete_ipv4): Likewise.
1613 2000-11-06 Kunihiro Ishiguro <kunihiro@zebra.org>
1615 * rt_netlink.c (netlink_interface_addr): Revert Harald Welte
1616 <laforge@gnumonks.org>'s ptop patch then back to original code to
1617 avoid duplicated connected route problem. Suggested by Frank van
1618 Maarseveen <F.vanMaarseveen@inter.NL.net>.
1620 * kernel_socket.c (rtm_read): Make behavior consistent even #ifdef
1621 DEBUG is defined. Reported by Jun-ichiro itojun Hagino
1622 <itojun@iijlab.net>.
1624 2000-10-23 Jochen Friedrich <jochen@scram.de>
1626 * main.c (main): Call zebra_snmp_init() when it is enabled.
1628 2000-10-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1630 * zserv.c (zebra_serv_un): UNIX domain socket server of zebra
1633 2000-10-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1635 * rib.c (rib_add_ipv4): Same check bug is fixed.
1637 2000-10-03 Kunihiro Ishiguro <kunihiro@zebra.org>
1639 * rib.c (rib_if_down): Remove kernel route when the interface goes
1642 * debug.c: New command "debug zebra kernel" is added.
1644 2000-10-02 Kunihiro Ishiguro <kunihiro@zebra.org>
1646 * zebra-0.89 is released.
1648 2000-09-24 Harald Welte <laforge@gnumonks.org>
1650 * rt_netlink.c (netlink_interface_addr): Fix point-to-point address
1651 treatment in netlink interface.
1653 2000-09-21 David Lipovkov <dlipovkov@OpticalAccess.com>
1655 * rib.c (rib_if_down): Pull static route only. Protocol daemon
1656 must withdraw routes when interface goes down.
1657 (rib_add_ipv4): Check nexthop when replace route.
1659 2000-09-21 Kunihiro Ishiguro <kunihiro@zebra.org>
1661 * if_ioctl.c (if_getaddrs): New function for looking up
1662 interface's address by getifaddrs().
1664 2000-09-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1666 * connected.c (connected_delete_ipv4): Add check for connected
1667 address is found or not.
1668 (connected_add_ipv6): Reflect IPv6 connected address change to
1670 (connected_delete_ipv6): Likewise.
1672 2000-09-07 David Lipovkov <davidl@nbase.co.il>
1674 * rib.c (rib_delete_ipv4): Reverted the change from pseudo
1675 interface patch to original. Because ospfd deletes routes using
1678 2000-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
1680 * zebra-0.88 is released.
1682 2000-08-15 "Akihiro Mizutani" <mizutani@dml.com>
1684 * rib.c (show_ip_route_protocol): Help string correction.
1685 (show_ip_route_prefix): Check prefix mask.
1686 (show_ip_route_vty_detail): Display distance and metric.
1688 2000-08-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1690 * zserv.c (zsend_interface_add): Change ifindex store size from
1692 (zsend_interface_delete): Likewise.
1693 (zsend_interface_address_add): Likewise.
1694 (zsend_interface_address_delete): Likewise.
1695 (zsend_interface_up): Likewise.
1696 (zsend_interface_down): Likewise.
1698 2000-08-13 Kunihiro Ishiguro <kunihiro@zebra.org>
1700 * rib.c (rib_add_ipv4): Do not install distance 255 route.
1702 2000-08-10 Toshiaki Takada <takada@zebra.org>
1704 * interface.c (bandwidth_if), (no_bandwidth_if): Call
1705 zebra_interface_up_update () instead of using if_up() and if_down().
1707 2000-08-07 "Akihiro Mizutani" <mizutani@dml.com>
1709 * interface.c (bandwidth_if): Fix help string.
1711 2000-08-07 Matthew Grant <grantma@anathoth.gen.nz>
1713 * interface.c (if_dump_vty): Display bandwidth value.
1714 (bandwidth_if): New command "bandwidth <1-10000000>" is added.
1715 When interface is up, force protocol daemons to recalculate routes
1717 (no_bandwidth_if): Likewise.
1718 (if_config_write): Output bandwidth configuration.
1720 * zserv.c (zsend_interface_add): Send bandwidth value.
1721 (zsend_interface_up): Likewise.
1722 (zsend_interface_down): Likewise.
1725 2000-08-07 Michael Rozhavsky <mike@nbase.co.il>
1727 * rib.c (show_ip_route_protocol): "show ip route
1728 (bgp|connected|kernel|ospf|rip|static)" is added.
1730 2000-08-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1732 * rib.c (rib_lookup_ipv4_nexthop): Check parent node until IGP
1734 (rib_add_ipv4_internal): Set fib ifindex to rib ifindex.
1736 2000-08-06 Kunihiro Ishiguro <kunihiro@zebra.org>
1738 * redistribute.c (redistribute_delete): Fix bug of default route
1739 redistribute treatment.
1741 2000-08-05 Kunihiro Ishiguro <kunihiro@zebra.org>
1743 * rib.c (rib_init): Install ip_node in rib.c instead of zserv.c.
1744 Change default distance value.
1747 ------------------------------------------
1756 bgp 70 200(iBGP) 20(eBGP)
1757 ------------------------------------------
1759 * zserv.c (client_lookup): Function removed.
1760 (zsend_interface_add): Use client's output buffer. Check ifinfo
1762 (zsend_interface_delete): Likewise.
1763 Delete ipv4_static_radix and ipv6_static_radix.
1765 2000-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
1767 * zserv.h (struct zebra_client): When client request interface
1768 information, ifinfo is set.
1770 * rib.c: Temporary Revert changes for pseudo interface.
1774 * zserv.c: Likewise.
1776 * interface.c: Likewise.
1778 2000-08-02 David Lipovkov <davidl@nbase.co.il>
1780 * interface.c (zebra_if_init): Install interface "pseudo"
1783 * rib.c (rib_create): ifname argument is added.
1784 (rib_add_ipv4_pseudo): New function is added.
1785 (rib_delete_ipv4_pseudo): Likewise.
1787 * rib.h : Delete INTERFACE_UNKNOWN definition. Add prototype for
1788 pseudo interface functions.
1790 * rt_netlink.c (netlink_link_change): Check for pseudo interface.
1792 * zserv.c (ip_route): When destination is pseudo interface, call
1793 rib_add_ipv4_pseudo().
1795 * zserv.c (no_ip_route): Trim "unknown" argument.
1797 2000-07-26 kunitake@dti.ad.jp
1799 * if_ioctl.c (if_get_hwaddr): Fix hardware address length from 8
1802 * rtadv.c (rtadv_send_packet): Fix shift bug for hardware address.
1804 2000-07-24 Akihiro Mizutani <mizutani@dml.com>
1806 * interface.c: Use install_default() for common VTY commands.
1808 2000-07-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1810 * if_ioctl.c (interface_list_ioctl): A interface list size is
1811 calculated from ifreq->if_addr.sa_len. This is for OpenBSD.
1813 * ioctl.c (if_get_mtu): Remove codes for SIOCGIFDATA.
1815 2000-07-09 Chris Dunlop <chris@onthe.net.au>
1817 * if_ioctl.c (if_get_index): Add check for HAVE_BROKEN_ALIASES.
1819 2000-07-04 Kunihiro Ishiguro <kunihiro@zebra.org>
1821 * zserv.c (zebra_client_read): Add ZEBRA_REDISTRIBUTE_{ADD,DELETE}
1824 2000-07-02 David Lipovkov <davidl@nbase.co.il>
1826 * zserv.c: "ip route A.B.C.D/M unknown" command is added.
1828 2000-06-28 Michael Rozhavsky <mike@nbase.co.il>
1830 * rib.c: Remove old kernel route when new route comes in.
1832 2000-06-13 David Lipovkov <davidl@nbase.co.il>
1834 * rib.c (rib_if_up): Add check for unknown interface.
1836 2000-06-13 Kunihiro Ishiguro <kunihiro@zebra.org>
1838 * rib.h: Define INTERFACE_UNKNOWN.
1840 2000-06-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1842 * Makefile.am (EXTRA_DIST): Move irdp.c until implementation is
1845 2000-06-05 David Lipovkov <davidl@nbase.co.il>
1847 * interface.c (if_zebra_delete_hook): Call rib_if_delete().
1849 * redistribute.c (zebra_interface_delete_update): New function.
1851 * redistribute.h (zebra_interface_delete_update): New function
1854 * rib.c (rib_if_delete): New function. Walk down all routes and
1855 delete all on the interface.
1857 * rib.h: New function prototype.
1859 * rt_netlink.c (netlink_link_change): Call
1860 zebra_interface_delete_update ().
1862 2000-05-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1864 * if_ioctl.c (interface_info_ioctl): Check interface's flag before
1865 checking interface's address.
1867 2000-04-26 Jochen Friedrich <jochen@nwe.de>
1869 * GNOME-PRODUCT-ZEBRA-MIB: New file.
1871 * GNOME-SMI: New file.
1873 2000-04-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1875 * irdp.c: New file from 1997 development code.
1878 2000-04-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1880 * rtadv.c (rtadv_send_packet): Enclose router advertisement
1881 logging with IS_ZEBRA_DEBUG_PACKET.
1883 2000-04-17 Kunihiro Ishiguro <kunihiro@zebra.org>
1885 * zserv.c (zebra_client_close): Remove client structure from
1886 client_list when connection is terminated.
1888 2000-03-21 David Lipovkov <davidl@nbase.co.il>
1890 * connected.c (connected_add_ipv4): Allows all necessary structure
1891 updates for connected route, but doesn't insert it into rib if
1892 it's interface is down.
1894 2000-01-21 Hideto Yamakawa <hideto.yamakawa@soliton.co.jp>
1896 * rtread_getmsg.c: Set some definition for Solaris 2.5 and Solaris
1899 2000-01-21 Kunihiro Ishiguro <kunihiro@zebra.org>
1901 * rib.c (no_ipv6_route_ifname): Fix buf of cheking return value
1902 from str2prefix_ipv6().
1904 2000-01-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1906 * rt_socket.c: Revert to use RTF_HOST for IPv4 with /32 route and
1907 IPv6 with /128 routes.
1908 (kernel_rtm_ipv4): In case of /32 route's gateway is interface. It
1909 should have mask for cloning.
1911 1999-12-26 Jochen.Friedrich@genorz.de
1913 * interface.c (if_dump_vty): Fix a bug of missing VTY_NEWLINE.
1915 1999-12-23 Alex Zinin <zinin@amt.ru>
1916 * interface.*: dynamic int up/down support
1918 1999-12-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1920 * ipforward_proc.c (dropline): Move dropline() from lib/dropline.c
1922 * rtread_proc.c (proc_route_read): Don't use dropline().
1924 1999-12-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1926 * kernel_socket.c (rtm_read): When message is RTM_GET, it has own
1929 1999-12-04 Kunihiro Ishiguro <kunihiro@zebra.org>
1931 * main.c (main): Change to default log output to ZLOG_STDOUT.
1933 * zserv.c (zebra_serv): More detailed error print.
1935 1999-11-30 Kunihiro Ishiguro <kunihiro@zebra.org>
1937 * kernel_socket.c (rtm_read): Check old pid for static route
1940 1999-11-30 Kunihiro Ishiguro <kunihiro@zebra.org>
1942 * interface.c (if_dump_vty): BSDI/OS uses 64bit for interface
1945 * mtu_kvm.c: New file added.
1947 1999-11-27 Vladimir B. Grebenschikov <vova@express.ru>
1949 * kernel_socket.c (rtm_write): Set RTF_CLONING flag for
1950 route to the directly connected interface.
1952 1999-11-27 Kunihiro Ishiguro <kunihiro@zebra.org>
1954 * rt_socket.c: Delete USE_HOST_BIT definition.
1956 1999-11-21 Michael Handler <handler@sub-rosa.com>
1958 * rtread_getmsg.c: Undef some definition to resolve conflict.
1960 1999-11-27 Kunihiro Ishiguro <kunihiro@zebra.org>
1962 * kernel_socket.c (rtm_write): Change to use pre stored struct_dl
1963 value for gateway specification.
1965 1999-11-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1967 * rt_socket.c (kernel_rtm_ipv4): Even mask is 32 under IPv4 or
1968 128 under IPv6, don't use RTF_HOST.
1970 1999-11-21 Kunihiro Ishiguro <kunihiro@zebra.org>
1972 * Makefile.am (EXTRA_DIST): Add rtread_getmsg.c.
1974 1999-11-21 Michael Handler <handler@sub-rosa.com>
1976 * rtread_getmsg.c: Added for Solaris 2.6 support.
1978 1999-11-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1980 * rtread_sysctl.c (rtm_read_route): RTM_DELETE handling added.
1982 * rt_socket.c (kernel_read): Better BSD routing socket support.
1984 1999-10-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1986 * client_main.c: Disable making obsolete zebra test `client'
1989 1999-10-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1991 * zebra.c: Renamed to zserv.c.
1993 * zebra.h: Global definitions are moved to lib/zebra.h. Then
1996 1999-10-15 Jordan Mendelson <jordy@wserv.com>
1998 * if_ioctl.c: Add Linux 2.2.X's alias support and dynamic
1999 interface. Remove ugly MAX_INTERFACE handling codes.
2001 1999-09-17 Satosi KOBAYASI <kobayasi@north.ad.jp>
2003 * Fix serious bug of IPv6 route deletion.
2005 1999-09-11 Kunihiro Ishiguro <kunihiro@zebra.org>
2007 * ioctl.c (if_set_prefix): Properly set broadcast address.
2009 1999-09-04 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2011 * rib.c (rib_add_ipv6, rib_delete_ipv6): now protocol daemons
2012 can install connected route to kernel via zebra
2014 1999-08-24 VOP <vop@unity.net>
2016 * rib.c: Include "sockunion.h"
2018 1999-08-22 Kunihiro Ishiguro <kunihiro@zebra.org>
2020 * ipforward.h: New file.
2022 * zebra.h: Obsolete message ZEBRA_GET_ALL_INTERFACE,
2023 ZEBRA_GET_ONE_INTERFACE, ZEBRA_GET_HOSTINFO are deleted.
2025 1999-08-18 Kunihiro Ishiguro <kunihiro@zebra.org>
2027 * zebra.h (ZEBRA_INTERFACE_ADDRESS_ADD):
2028 ZEBRA_INTERFACE_{ADD,DELETE} added.
2030 1999-08-15 Kunihiro Ishiguro <kunihiro@zebra.org>
2032 * rib.c: show ip route A.B.C.D works.
2034 * zebra.c (zebra_read_ipv4): Add ifindex to zebra messages.
2036 1999-08-12 Kunihiro Ishiguro <kunihiro@zebra.org>
2038 * zebra.h: New Zebra message ZEBRA_INTERFACE_{ADD,DELETE} added.
2040 1999-08-09 Kunihiro Ishiguro <kunihiro@zebra.org>
2042 * interface.h: New file.
2043 * Makefile.am: Add interface.h
2045 1999-08-04 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2047 * redistribute.c (zebra_redistribute): give ifindex to client.
2049 1999-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2051 * main.c (longopts): -k, --keep_kernel option added.
2053 1999-07-18 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2055 * rt_socket.c (rtm_write): forgot closing socket bug fixed.
2057 1999-07-17 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2059 * rib.c (show_ipv6_cmd): if rib is link show interface name.
2061 1999-07-17 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2063 * rt_socket.c (rtm_write): use sockaddr_dl when null gateway.
2065 1999-07-16 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2067 * rt_socket.c (rtm_write): ipv6 route table bug fixed.
2069 1999-07-15 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2071 * zebra.c (zebra_read_ipv6): read link prefix from ospf6 support
2073 1999-07-15 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2075 * rt_socket.c (kernel_rtm_ipv6): gate treatment bug fixed.
2077 1999-07-15 Kunihiro Ishiguro <kunihiro@zebra.org>
2079 * if_sysctl.c (ifm_read): Clear sockunion argument before fetching
2080 data. Suggested by "Chris P. Ross" <cross@eng.us.uu.net>
2082 1999-07-08 HEO SeonMeyong <seirios@Matrix.IRI.Co.Jp>
2084 * interface.c (if_tun_add): Add KAME's gif tunnel setting codes.
2086 1999-06-26 Kunihiro Ishiguro <kunihiro@zebra.org>
2088 * zebra.c (zebra_serv): Only accept loopback address connection.
2090 1999-06-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2092 * zebra.h (ZEBRA_ROUTE_EXTERNAL): Add zebra messages flags
2094 1999-06-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2096 * ipforward_proc.c: ipforward_on () and ipforward_off () added.
2098 1999-06-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2100 * ipforward_proc.c (ipforward_ipv6): Check for IPv6 forwarding
2101 using /proc file system is added.
2103 1999-06-06 Kunihiro Ishiguro <kunihiro@zebra.org>
2105 * if_ioctl.c (if_get_index): Interface index set bug is fixed by
2106 adding #else at the middle of function. Suggested by David Luyer
2107 <luyer@ucs.uwa.edu.au>.
2109 1999-05-29 <kunihiro@zebra.org>
2111 * rt_ioctl.c: Comment out #include <linux/ipv6_route.h>.
2113 1999-05-26 Kunihiro Ishiguro <kunihiro@zebra.org>
2115 * zebra.h (ZEBRA_ROUTE_MAX): Add new define for the max value of
2118 1999-05-25 Patrick Koppen <koppen@rhrk.uni-kl.de>
2120 * rt_netlink.c (netlink_socket): Make netlink socket non-blocking.
2121 (netlink_parse_info): If errno is EWOULDBLOCK then continue to
2123 (netlink_talk): Likewise
2125 1999-05-17 <kunihiro@zebra.org>
2127 * redistribute.c (zebra_check_addr): Added for loopback address
2130 1999-05-15 Kunihiro Ishiguro <kunihiro@zebra.org>
2132 * rt_netlink.c (netlink_route_change): Tempolary bypass ipv6 route
2135 * Makefile.am (noinst_HEADERS): redistribute.h added.
2137 * redistribute.h: New file.
2139 1999-05-14 Stephen R. van den Berg <srb@cuci.nl>
2141 * zebra.c (show_table): Show all table configuration DEFUN.
2142 (config_table): Config table number DEFUN.
2144 * rt_netlink.c: Add support for multiple routing table.
2146 * rib.c (rib_weed_table): New function added for delete all
2147 routes from specified routing table.
2149 * main.c (signal_init): SIGTERM call sigint.
2150 (sigint): Loggging more better message.
2152 1999-05-09 Kunihiro Ishiguro <kunihiro@zebra.org>
2154 * rt_netlink.c: Change log () to zlog ().
2156 1999-05-07 <kunihiro@zebra.org>
2158 * zebra.h (ZEBRA_ROUTE_OSPF6): Added for ospf6d route.
2160 1999-04-20 Kunihiro Ishiguro <kunihiro@zebra.org>
2162 * interface.c: Add `no ip address' command.
2164 1999-04-10 Kunihiro Ishiguro <kunihiro@zebra.org>
2166 * rt_netlink.c (kernel_read): Function added for asynchronous
2167 zebra between kernel communication.
2169 1999-03-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2171 * rtread_sysctl.c (rtm_read): Fix address memcopy overrun bug.
2172 Reported by Achim Patzner <ap@bnc.net>.
2174 1999-03-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2176 * Makefile.am: Install configuration sample with 600 permission.
2178 1999-03-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2180 * Makefile.am: Add -I.. to INCLUDES.
2182 1999-02-18 Peter Galbavy <Peter.Galbavy@knowledge.com>
2184 * syslog support added
2186 1999-02-17 Peter Galbavy <Peter.Galbavy@knowledge.com>
2188 * if_sysctl.c (interface_list): allocated memory free when unknown
2189 ifm_type is returned.
2191 * ioctl.c (if_get_mtu): added SIOCGIFDATA treatment.
2193 1998-12-15 Magnus Ahltorp <map@stacken.kth.se>
2195 * interface.c: Header include added.
2197 1998-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2199 * rt.h (kernel_delete_ipv6): change int index to unsigned int index.
2201 1998-12-13 Kunihiro Ishiguro <kunihiro@zebra.org>
2203 * if_ioctl.c (interface_list_ioctl): interface flag must be
2204 checked before check addresses of the interface.
2206 1998-12-07 Kunihiro Ishiguro <kunihiro@zebra.org>
2208 * Makefile.am (INCLUDES): add @INCLUDES@ for Linux IPv6.
2210 1998-10-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2212 * ioctl.c: Linux version before 2.1.0 need interface route setup.
2214 1998-09-15 HEO SeonMeyong <seirios@matrix.iri.co.jp>
2216 * change HYDRANGEA to KAME
2218 1998-09-01 Kunihiro Ishiguro <kunihiro@zebra.org>
2220 * if_ioctl.c (if_addr_ioctl): set address family for getting
2221 interface's address.
2222 (if_get_index): silently return when can't get interface's index.
2224 1998-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2226 * main.c (main): batch mode option '-b' added.
2228 1998-08-16 Kunihiro Ishiguro <kunihiro@zebra.org>
2230 * ioctl.c (if_set_prefix): add `ip address IPV4ADDR' command.
2231 * interface.c (shutdown_if): add interface shutdown and no
2234 1998-08-12 Kunihiro Ishiguro <kunihiro@zebra.org>
2236 * rib.c (rib_add_ipv6): delete rib_add_in6.
2238 1998-07-27 Kunihiro Ishiguro <kunihiro@zebra.org>
2240 * main.c: retain flag is added.
2242 1998-07-08 Kunihiro Ishiguro <kunihiro@zebra.org>
2244 * rtable.[ch]: merged with rib.[ch]
2246 1998-07-07 Kunihiro Ishiguro <kunihiro@zebra.org>
2248 * connected.h: renamed from ifa.h.
2250 1998-06-09 Kunihiro Ishiguro <kunihiro@zebra.org>
2252 * rename if.c to interface.c
2253 * rename ifa.c to connected.c
2255 * Porting to Debian GNU/Linux 2.0 (hamm).
2257 1998-06-08 Kunihiro Ishiguro <kunihiro@zebra.org>
2259 * rt_netlink.c: renamed from krt_netlink.c
2262 * rt_kvm.c: deleted.
2263 * rtread_getmsg.c: deleted.
2265 1998-06-07 Kunihiro Ishiguro <kunihiro@zebra.org>
2267 * if.c (multicast): add multicast flag [un]set fucntion.
2269 1998-05-19 Yamshita TAKAO <jargon@lares.dti.ne.jp>
2271 * rt_socket.c: Modify for compile on Solaris, but dont't work it.
2272 rt_socket.c have some undefined function, so add directive "IMPLEMENT"
2274 1998-05-18 Yamshita TAKAO <jargon@lares.dti.ne.jp>
2276 * zebra.c: Modify for compile on Solaris.
2278 1998-05-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2280 * main.c: change CONFDIR to SYSCONFDIR.
2282 1998-05-01 Kunihiro Ishiguro <kunihiro@zebra.org>
2284 * .cvsignore: added.
2286 1998-04-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2288 * client.c: moves to ../lib.
2290 1998-03-30 Kunihiro Ishiguro <kunihiro@zebra.org>
2292 * if_ioctl.c (if_get_addr): Change address copy from memcopy() to
2293 structure assignment.
2295 1998-03-30 URA Hiroshi <ura@yamato.ibm.co.jp>
2297 * if_sysctl.c (ifm_interface_add): sdl->sdl_data copy bug fixed.
2299 1998-02-23 "Hannes R. Boehm" <hannes@boehm.org>
2301 * if.c (if_init): add config_exit_cmd and config_help_cmd.
2303 1998-01-24 Kunihiro Ishiguro <kunihiro@zebra.org>
2305 * rt_ioctl.c (route_ioctl): EPERM treatment added.
2307 1998-01-05 Kunihiro Ishiguro <kunihiro@zebra.org>
2309 * rt_socket.c (kernel_read): communication port zebra between
2310 kernel is now handled by kernel_read.
2312 1998-01-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2314 * main.c (main): zebra [-P port] can specify vty port number.
2316 1997-12-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2318 * zebra.c: change select will be block.
2320 1997-12-04 Kunihiro Ishiguro <kunihiro@zebra.org>
2322 * add static route treatment.
2324 1997-11-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2326 * rt_netlink.c: add netlink support over GNU/Linux system.
2328 1997-11-23 Kunihiro Ishiguro <kunihiro@zebra.org>
2330 * all inet_addr is changed to inet_aton.
2332 * zebra.c (ip_route): add ip route command for static routes.
2334 1997-11-20 Kunihiro Ishiguro <kunihiro@zebra.org>
2336 * if.c (if_flag_dump): Linux port of if_flag_dump and _vty.
2338 1997-11-19 Kunihiro Ishiguro <kunihiro@zebra.org>
2340 * if.c: add interface command.
2342 1997-11-18 Kunihiro Ishiguro <kunihiro@zebra.org>
2344 * ipforward_proc.c : Now works on Linux.
2346 1997-10-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2348 * command.c : add completion feature.
2350 1997-10-18 Kunihiro Ishiguro <kunihiro@zebra.org>
2352 * vty.c (vty_command): add vty interface.
2354 1997-10-13 Kunihiro Ishiguro <kunihiro@zebra.org>
2356 * zebra.c: add verbose mode.
2358 1997-10-12 SonMyong Ho <s-ho@Matrix.IRI.Co.Jp>
2360 * Hydrangea for FreeBSD supported
2361 * in.h: add some prototype.
2363 1997-10-11 Kunihiro Ishiguro <kunihiro@zebra.org>
2365 * rt_socket.c and rtread.c completely rewritten.
2367 1997-10-05 Kunihiro Ishiguro <kunihiro@zebra.org>
2369 * rt_socket.c: rename kernel_sock to routing_socket
2371 1997-10-04 Kunihiro Ishiguro <kunihiro@zebra.org>
2373 * if.c (if_new): interface structure change from linklist to vector.
2375 1997-10-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2377 * vector.c (vector_init): create vector related function
2379 1997-09-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2381 * Makefile.in: add tags target
2383 * start IPv6 support for INRIA FreeBSD.