1 2005-04-05 Paul Jakma <paul@dishone.st>
3 * zserv.c: print more helpful errors when we fail to successfully
4 bind and listen on zserv socket. Closes bugzilla #163.
6 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
8 * if_ioctl.c: (interface_list_ioctl) Use if_get_by_name_len.
9 * if_proc.c: (ifaddr_proc_ipv6) Increase size of ifname buffer to
11 * kernel_socket.c: (ifan_read) Use if_get_by_name_len.
13 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
15 * kernel_socket.c: (ifm_read) Use new if_lookup_by_name_len function
17 * if_ioctl_solaris.c: (interface_list_ioctl) Fix subtle bug with new
18 if_get_by_name_len function.
20 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
22 * interface.c: (if_new_intern_ifindex) Remove obsolete function.
23 (if_delete_update) After distributing the interface deletion message,
24 set ifp->ifindex to IFINDEX_INTERNAL.
25 (if_dump_vty) Detect pseudo interface by checking if ifp->ifindex is
27 (zebra_interface) Check return code from interface_cmd.func.
28 Do not set internal ifindex values to if_new_intern_ifindex(),
29 since we now use IFINDEX_INTERNAL for all pseudo interfaces.
30 * kernel_socket.c: (ifm_read) Fix code and comments to reflect that
31 all internal interfaces now have ifp->ifindex set to IFINDEX_INTERNAL.
32 * rt_netlink.c: (set_ifindex) New function used to update ifp->ifindex.
33 Detects interface rename events by checking if that ifindex is already
34 being used. If it is, delete the old interface before assigning
35 the ifindex to the new interface.
36 (netlink_interface, netlink_link_change) Call set_ifindex to update
39 2005-03-31 Hasso Tepper <hasso at quagga.net>
41 * rt_netlink.c (netlink_talk_filter): Show always warning message,
43 * rt_netlink.c (netlink_talk): Don't assume we use netlink_cmd
44 although we do now actually.
45 * rt_netlink.c (netlink_route, netlink_route_multipath): Always use
46 netlink_cmd to send messages to the kernel.
48 2005-03-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
50 * irdp.h: Add prototype for irdp_sock_init, and fix protos for
51 other irdp_* functions.
52 * irdp_interface.c: (irdp_if_start) If irdp_sock is negative,
53 call irdp_sock_init to create the IRDP socket.
54 (irdp_if_init) Rename to irdp_init().
55 (get_iflist_ifp) Remove function that is a duplicate of
57 (*) Make many functions static. And remove superfluous "\n" from
58 several zlog messages.
59 * irdp_main.c: (irdp_init) Remove function that used to call
60 irdp_if_init() and irdp_sock_init(), since we will now create
61 the socket only upon first use.
62 (irdp_sock_init) Do not update global irdp_sock variable, just
63 return the fd and assume that the caller will do so. If setsockopt
64 calls fail, close the socket before returning -1.
65 (*) Make many functions static.
66 * irdp_packet.c: Initialize irdp_sock to -1.
67 (irdp_read_raw) Call standard library function if_lookup_by_index
68 instead of get_iflist_ifp.
69 (irdp_recvmsg) Should be static, not global.
71 2005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
73 * rt_netlink.c: (netlink_link_change) If the status of an
74 operative interface changes (e.g. MTU changes), the client
75 daemons should be notified by calling zebra_interface_up_update.
76 Previously, the information was being updated in zebra's
77 interface structure, but the clients were not notified of
78 changes to an operative interface.
80 2005-03-25 Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
81 * interface.c, interface.h, rtadv.c, rtadv.h: modifications to
82 IPv6 Neighbor Discovery according to RFC3775, section 7:
83 o 1-bit Home Agent flag management in Router Advertisement (7.1).
84 o 1-bit Router Address flag management in Prefix Information
86 o Advertisement Interval Option (7.3)
87 o Home Agent Information Option (7.4)
88 o Changes to Sending Router Advertisements more frequently (7.5)
90 2005-03-13 Hasso Tepper <hasso at quagga.net>
92 * zebra/interaface.c: "show interface description" command
95 2005-03-12 Paul Jakma <paul@dishone.st>
97 * rt_netlink.c: (netlink_route_multipath) dont set equalise flag.
98 No stock Linux kernel has ever supported it, and even if it had
99 it's not generally a good idea.
101 2005-03-07 Michael Sandee <voidptr@voidptr.sboost.org>
103 * if_proc.c, ipforward_proc.c, rtread_proc.c: Fix fd leaks.
105 2005-03-06 Hasso Tepper <hasso at quagga.net>
107 * interface.c: Fix CRC and frame errors statistics in Linux.
109 2005-02-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
111 * zserv.c: Must include network.h and buffer.h for non-blocking I/O.
112 Remove global message_queue and t_write (need separate buffering for
114 (zebra_server_dequeue,zebra_server_enqueue) Remove functions
115 related to old buggy buffering code.
116 (zserv_delayed_close) New thread callback function to delete a client.
117 (zserv_flush_data) New thread callback function to flush buffered
119 (zebra_server_send_message) Rewritten to use buffer_write (so
120 buffering of writes and non-blocking I/O work properly).
121 (zsend_interface_add,zsend_interface_delete,zsend_interface_address,
122 zsend_interface_update) Return 0 instead of -1 if !client->ifinfo
123 (this is not really an error). Return value from
124 zebra_server_send_message.
125 (zsend_route_multipath,zsend_ipv4_nexthop_lookup,
126 zsend_ipv4_import_lookup) Return value from zebra_server_send_message.
127 (zsend_ipv6_nexthop_lookup) Fix scope to static, and return value
128 from zebra_server_send_message.
129 (zsend_router_id_update) Must use zebra_server_send_message instead
130 of deprecated writen function. Return 0 instead of -1 if this client
131 is not subscribed to router-id updates (since this is not really
133 (zread_interface_add) Change type to static int. If
134 zsend_interface_add fails or zsend_interface_address fails, return -1
135 immediately (since the client has had an I/O error).
136 (zread_interface_delete,zread_ipv4_add,zread_ipv4_delete,
137 zread_ipv6_add,zread_ipv6_delete,zread_router_id_delete) Return 0
139 (zread_ipv4_nexthop_lookup) Return value from
140 zsend_ipv4_nexthop_lookup.
141 (zread_ipv4_import_lookup) Return value from zsend_ipv4_import_lookup.
142 (zebra_read_ipv6) Remove unused function.
143 (zread_ipv6_nexthop_lookup) Return value from
144 zsend_ipv6_nexthop_lookup.
145 (zread_router_id_add) Return value from zsend_router_id_update.
146 (zebra_client_close) Call buffer_free(client->wb) and
147 thread_cancel(client->t_suicide).
148 (zebra_client_create) Allocate client->wb using buffer_new.
149 (zebra_client_read) Support non-blocking I/O by using stream_read_try.
150 Use ZEBRA_HEADER_SIZE instead of 3.
151 (zebra_accept) Fix bug: reset accept thread at top. Make client
152 socket non-blocking using the set_nonblocking function.
153 (config_write_forwarding) Fix scope to static.
154 (zebra_init) Remove initialization code for old buggy write buffering.
155 * zserv.h: Add 2 new fields to struct zserv: struct buffer *wb
156 (to enable buffered writes with non-blocking I/), and
157 struct thread *t_suicide to support delayed close on I/O
159 * router-id.h: Remove prototypes for zread_router_id_add and
160 zread_router_id_delete (their scope should be static to zserv.c).
162 2005-02-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
164 * redistribute.c: (zebra_check_addr,is_default,
165 zebra_redistribute_default,zebra_redistribute) Fix scope to be static.
167 2005-02-20 Hasso Tepper <hasso at quagga.net>
169 * rt_netlink.c: Don't show messages "ignoring message type 0x001[89]"
170 if we are not debugging.
172 2005-02-19 Paul Jakma <paul@dishone.st>
174 * zserv.c: (zebra_read_ipv6) replace the char * arithmetic with
177 2005-02-14 Paul Jakma <paul@dishone.st>
179 * Not all Linux netlink systems have IFLA_WIRELESS
181 2005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
183 * ioctl.c: (if_ioctl,if_ioctl_ipv6,if_get_flags) Replace perror with
185 * ioctl_solaris.c: (if_ioctl,if_ioctl_ipv6) Replace perror with
188 2005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
190 * if_ioctl_solaris.c: (interface_list_ioctl) Save errno before calling
192 * ioctl{,_solaris}.c: (if_ioctl,if_ioctl_ipv6) Save errno before calling
194 * ipforward_solaris.c: (solaris_nd) Save errno before calling
196 * irdp_main.c: (irdp_sock_init) Save errno before calling
199 2005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
201 * rt_netlink.c: (netlink_socket,netlink_request,netlink_parse_info,
202 netlink_talk) Save errno before calling zserv_privs.change.
204 2005-01-24 Martin Pot <mpot at martybugs.net>
206 * zebra/rt_netlink.c: ignore wireless newlink netlink messages.
208 2005-01-18 Hasso Tepper <hasso at quagga.net>
210 * interface.c: Better statistics output in "show interface" command in
211 case of /proc being used.
213 2005-01-17 Hasso Tepper <hasso at quagga.net>
215 * main.c: With --nl-bufsize argument is required.
217 2005-01-05 Paul Jakma <paul@dishone.st>
219 * zserv.c: (zebra_accept) Comment out setting of socket to NONBLOCK
220 for now, as we dont actually deal with with resending.... See
221 bugzilla #122, fix from wawa@yandex-team.ru (Vladimir Ivanov).
222 * kernel_socket.c: (routing_socket) ditto.
224 2005-01-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
226 * rtadv.c: (rtadv_recv_packet,rtadv_send_packet) Use ZCMSG_FIRSTHDR
227 instead of CMSG_FIRSTHDR.
229 2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
231 * connected.c: (connected_add_ipv4) Limit warning about /32 addresses
232 with no peer specified to PtP interfaces only.
234 2004-12-18 Hasso Tepper <hasso at quagga.net>
236 * zebra_vty.c: Fix "show ipv6 route <proto>" command help and make it
237 work for isis routes.
239 2004-12-09 Greg Troxel <gdt@fnord.ir.bbn.com>
241 * kernel_socket.c (rtmsg_debug): char * => const char *
243 2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
245 * *.c: Change level of debug messages to LOG_DEBUG.
247 2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
249 * main.c: (main) The 2nd argument to openzlog has been removed.
250 So stdout logging will no longer be enabled by default.
251 * irdp_main.c: (irdp_finish) Reduce severity of shutdown message
252 from LOG_WARNING to LOG_INFO.
254 2004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
256 * main.c: (sigint) Use zlog_notice for termination message.
257 (main) Add a startup announcement using zlog_notice.
259 2004-11-25 Hasso Tepper <hasso at quagga.net>
261 * irdp_interface.c: Remove comment from DEFUN, it breaks vtysh because
262 it confuses extract.pl.
263 * main.c: Make group to run as configurable.
265 2004-10-28 Hasso Tepper <hasso at quagga.net>
267 * interface.c: Remove dead "ip tunnel" command.
269 2004-10-22 Paul Jakma <paul@dishone.st>
271 * irdp_main.c: change setsockopt_pktinfo to setsockopt_ifindex
273 2004-10-19 Andrew J. Schorr <aschorr@telemetry-investments.com>
275 * rt_netlink.c: (netlink_interface_addr) For PtP interfaces, ignore
276 tb[IFA_ADDRESS] if it's the same as tb[IFA_LOCAL].
277 * interface.c: (ip_address_install) Use new ipv4_broadcast_addr
279 * connected.c: (connected_up_ipv4) Use CONNECTED_POINTOPOINT_HOST
281 (connected_down_ipv4) ditto.
282 (connected_add_ipv4) Validate destination address, print warnings
283 if it does not make sense.
285 2004-10-19 Hasso Tepper <hasso at quagga.net>
287 * zserv.c: Fix regression introduced with zserv cleanup.
289 2004-10-13 Hasso Tepper <hasso at quagga.net>
291 * zebra_snmp.c: Remove defaults used to initialize smux connection to
292 snmpd. Connection is initialized only if smux peer is configured.
293 * zserv.c: Remove useless warnings "forwarding is already on".
295 2004-10-12 Hasso Tepper <hasso at quagga.net>
297 * zebra_vty.c: Unbreak "show ip route" command help and make it work
299 * interface.c(if_dump_vty): Show IPv6 addresses in "show interface"
300 output. Fixes Bugzilla #119.
301 * *.c: Make some strings const and some (unsigned) casts to fix
304 2004-10-07 Hasso Tepper <hasso at quagga.net>
306 * connected.c, main.c, rt_netlink.c, rtadv.c, zebra_rib.c, zserv.c:
307 Fix warnings: make strings const, signed -> unsigned.
309 2004-10-05 Paul Jakma <paul@dishone.st>
311 * irdp_packet.c: (parse_irdp_packet) style issues.
312 Use sockopt_iphdrincl_swab_systoh.
313 Try unbork the code. Checksum the ICMP data and actually
314 compare it to received checksum. Check data length against
315 claimed length in header.
316 Always use ntoh.. when accessing addresses, even when the
317 comparison happens to be endian-safe.
318 (send_packet) minor style isues. Use
319 sockopt_iphdrincl_swab_htosys.
320 (irdp_iph_hton/ntoh) IP header to/from network/host order.
322 2004-10-03 Gilad Arnold <gilad.arnold at terayon.com>
324 * interface.c, interface.h: A new prefix tree of connected subnets is
325 associated with each interface structure in zebra, in which each
326 live (ie, non-synthetic) node holds a list of installed addresses
327 that belong to that prefix. Remove secondary address logic from cli.
328 See [quagga-dev 872] for detailed explanation.
329 * connected.c: Use if_subnet_add() and if_subnet_delete().
331 2004-10-03 James R. Leu <jleu at mindspring.com>
333 * router-id.c, router-id.h: New files. Router id selection process. If
334 there is non 127.x.x.x address in loopack interface, lowest of them
335 is chosen. If there isn't, lowest from other interfaces addresses
336 are chosen. "router-id x.x.x.x" vty command to manual override.
337 * Makefile.am: Compile new files.
338 * main.c: Initialize router id.
339 * redistribute.c: Add interface addresses into router id selection
340 lists as they (dis)appear.
341 * zserv.c, zserv.h: Sending router id related messages to daemons.
343 2004-09-26 Hasso Tepper <hasso at quagga.net>
345 * irdp_interface.c, irdp_main.c, irdp_packet.c, rt_netlink.c,
346 rtadv.c, zebra_vty.c: Fix compiler warnings.
348 2004-09-24 Paul Jakma <paul@dishone.st>
350 * irdp_interface.c: (no_ip_irdp_address_preference_cmd)
351 add missing listnode declaration.
353 2004-09-24 Paul Jakma <paul@dishone.st>
355 * irdp_{interface,main}.c: lists typedef removal cleanup.
356 update some list loops to LIST_LOOP. some miscellaneous style
358 (no_ip_irdp_address_preference_cmd) Fix delete of referenced node
360 * irdp_packet.c: (irdp_recvmsg) Fix buggy assignment of integer
362 * if_ioctl{,_solaris}.c: lists typedef removal cleanup.
363 update some list loops to LIST_LOOP.
365 2004-09-23 Hasso Tepper <hasso at quagga.net>
367 * *.[c|h]: list -> struct list *, listnode -> struct listnode *.
369 2004-09-22 Paul Jakma <paul.jakma@sun.com>
371 * zserv.c: (zsend_route_multipath) fix nasty bad memset of struct
372 in_addr to sizeof(struct in6_addr), causing odd and hard to debug
375 2004-08-31 Hasso Tepper <hasso at quagga.net>
377 * main.c, rt_netlink.c: Added -s command line switch for tuning
378 netlink receive buffer size in Linux to avoid buffer overruns.
380 2004-08-26 Miles Nordin <carton@Ivy.NET>
382 * ipforward_sysctl.c (mib_ipv6): Use size_t for len, per
383 sysctl(3), rather than int. (Needed on NetBSD/alpha to display
384 forwarding status correctly.)
386 2004-08-23 Paul Jakma <paul@dishone.st>
388 * zserv.c: (zebra_init) remove implicit ip forward enabling
390 2004-08-19 Paul Jakma <paul@dishone.st>
392 * irdp_main.c: update to match sockopt renames.
393 * irdp_packet.c: include sockopt.h and update to match sockopt
396 2004-08-11 Greg Troxel <gdt@fnord.ir.bbn.com>
398 * rtadv.c (rtadv_send_packet): Allocate space for control messages
399 more carefully; it was wrong on NetBSD/sparc where CMSG alignment
400 is to 8 bytes instead of 4, and overwriting the address. Use the
401 provided macros for determining lengths.
403 2004-07-23 Sowmini Varadhan <Sowmini.Varadhan@Sun.COM>
405 * if_ioctl_solaris.c: HAVE_IPV6 ifdef fixups
407 * ioctl_solaris.c: ditto.
408 * interface.c: cast for LLADDR
409 * interface.h: Add guards, include redistribute.h and remove
410 extraneous definitions of zebra_interface_{up,down}_update
411 * ioctl.h: Add AF_IOCTL define for non SOLARIS_IPV6
412 * redistribute.h: include dependent header, zserv.h
413 * zserv.h: include dependent header, rib.h
415 2004-07-23 Paul Jakma <paul@dishone.st>
417 * irdp_main.c: use setsockopt_pktinfo_ipv4
418 * irdp_packet.c: use SOPT_SIZE_CMSG_PKTINFO_IPV4 and
419 getsockopt_pktinfo_ifindex()
421 2004-07-13 David Wiggins <dwiggins@bbn.com
423 * kernel_socket.c (rtm_flag_dump): terminate buffer with '\0', not '0'.
425 2004-07-13 Hasso Tepper <hasso@estpak.ee>
427 * irdp_main.c: Add privilege change.
429 2004-07-12 Hasso Tepper <hasso@estpak.ee>
431 * irdp_interface.c: follow common style while naming vty command
432 functions. Avoids confusion in extract.pl.
434 2004-06-30 Greg Troxel <gdt@poblano.ir.bbn.com>
436 * main.c: define thread_master variable so that linking with
437 libzebra.so doesn't fail. Arguably zclient.o should be in a
438 separate library, but this is far less disruptive.
440 2004-06-12 Robert Olsson <Robert.Olsson at data.slu.se>
442 * Added IRDP support.
444 2004-05-18 Hasso Tepper <hasso@estpak.ee>
446 * rtadv.c: Removed "[no] ipv6 nd send-ra" command. Replaced "ipv6 nd
447 prefix-advertisement" with "ipv6 nd prefix". Rewrite syntax of
448 "ipv6 nd prefix" command to allow various combinations of parameters
449 and flags. No defaults in configuration. Replaced on-link and
450 autoconfig with off-link and no-autoconfig flags in command syntax.
451 Cosmetic fixes in all commands. Documentation to reflect all changes.
453 2004-05-11 Paul Jakma <paul@dishone.st>
455 * Makefile.am: support for IOCTL_METHOD, as per Sowmini's patch.
456 * if_ioctl_solaris.c: Fixup some erroneous privilege changes and
458 * ioctl_solaris.c: ditto
459 * ioctl.h: Add if_ioctl_ipv6 prototype and AF_IOCTL for SOLARIS_IPV6
460 * kernel_socket.c: Fix SAROUNDUP, compiler doesnt like do..while
461 RHS in assignments :)
462 * redistribute.c: (zebra_interface_delete_update) only used
463 if RTM_IFANNOUNCE and NETLINK is available.
465 2004-05-09 Paul Jakma <paul@dishone.st>
467 * zserv.c: (zsend_route_multipath) Set the nexthop_num
468 field correctly. Add NEXTHOP_TYPE_IPV6_IFNAME for v6.
469 Conditionally set ZAPI_MESSAGE_METRIC flag - only for adds.
470 (zsend_ipv4_add) cruft, deleted.
471 (zsend_ipv4_delete) ditto.
472 (zsend_ipv6_add) ditto.
473 (zsend_ipv6_delete) ditto.
474 * ioctl.c: (if_get_mtu) set mtu6 to mtu
475 * mtu_kvm.c: (if_kvm_get_mtu) set mtu6 to mtu
476 * rt_netlink.c: (netlink_interface) set mtu6 to mtu
477 (netlink_link_change) ditto
478 * ipforward_solaris.c: fix typo of ND variable.
479 * if_ioctl_solaris.c: Add zprivs support.
480 * ioctl_solaris.c: ditto.
482 2004-05-09 Sowmini Varadhan <sowmini.varadhan@sun.com>
484 * zserv.c: (zsend_ipv{4,6}_{add,delete}_multipath) collapsed
485 into single zsend_route_multipath function.
486 (zsend_interface_{up,down}) collapsed into zsend_interface_update.
487 (zsend_interface_address_{add,delete}) collapsed into
488 zsend_interface_address.
489 (zsend_interface_add) send mtu6.
490 (zsend_interface_delete) ditto.
491 (zebra_write) remove unused function.
492 (various) Apply static qualifier. Add comments.
493 * zserv.h: Definitions changed as per above.
494 * redistribute.c: Changes as per zserv.c.
495 * interface.c: (if_delete_update) only used with HAVE_NETLINK
497 (if_flag_dump_vty) Solaris IFF_IPV4 and IFF_IPV6 if flags
498 (if_dump_vty) print mtu6 if not same as mtu
499 * if_ioctl_solaris.c: New file, Solaris interface ioctl methods.
500 * ioctl_solaris.c: New file, Common solaris ioctl methods.
502 2004-04-06 Krzysztof Oledzki <oleq@ans.pl>
504 * rt_netlink.c: Do not ignore metric when reading kernel routing
505 table on Linux with rt_netlink interface.
507 2004-03-18 Hasso Tepper <hasso@estpak.ee>
509 * interface.c: Temporary fix for handling secondary addresses
512 2004-02-12 Hasso Tepper <hasso@estpak.ee>
514 * zserv.c: Added "ipv6 forwarding" command.
516 2004-01-08 Greg Troxel <gdt@fnord.ir.bbn.com>
518 * kernel_socket.c (kernel_read): Use sockaddr_storage in buffer
519 for reading kernel messages to ensure enough space (necessary on
520 Solaris due to sockaddr_dl being large). Thanks to Sowmini
521 Varadhan for help with this change.
523 2004-01-06 Greg Troxel <gdt@t1.ir.bbn.com>
525 * rtadv.c (rtadv_send_packet): Change perror to zlog_err.
527 2004-01-05 Greg Troxel <gdt@fnord.ir.bbn.com>
528 * kernel_socket.c (ifm_read): Major cleanup. Use Sowmini's code
529 to find the sockaddr_dl in all cases, narrowing the Solaris ifdef
530 to just the accomodation of broken kernels. Check sockaddr_dl
531 carefully up front, and later assume any non-NULL sdl pointer is
532 valid. Clean up types and variable declarations, and rename
533 WRAPUP to SAROUNDUP to make the name fit the behavior.
535 2004-01-05 Greg Troxel <gdt@fnord.ir.bbn.com>
537 * kernel_socket.c (kernel_read): Add a sockaddr_dl to the ifmsg
538 structure, because on Solaris sockaddr_dl is far larger than the
539 base sockaddr structure. (The code had previously been failing to
542 2004-01-05 Greg Troxel <gdt@ahi.ir.bbn.com>
544 * kernel_socket.c (kernel_read): Look up interfaces by index
545 first, so that state changes which do not include a sockaddr_dl
546 now work. Add many sanity checks. In
547 particular, do not assume that a sockaddr_dl follows a message
548 without checking the ifm_addrs flags, and do not trust the length
549 in a sockaddr_dl. Add/clarify many comments.
551 2003-12-03 Greg Troxel <gdt@poblano.ir.bbn.com>
553 * rtadv.c: reorder includes to avoid compiler warning (define
554 structs before using them in prototypes)
556 2003-05-25 Jim Crumpler <Jim.Crumpler@edion.com>
558 * zserv.c: Add "ip forwarding" command.
560 2003-05-16 Gilad Arnold <gilad.arnold@terayon.com>
562 * zebra_rib.c: Fix memory leaks for ifname nexthops
564 2003-04-19 Israel Keys <ikeys@agile.tv>
566 * rt_netlink.c: BLOCK on netlink while initialising
568 2003-02-06 Francois Deppierraz <francois@ctrlaltdel.ch>
570 * rt_netlink.c (netlink_route_multipath): Set RTM_F_EQUALIZE when
573 2002-09-28 Akihiro Mizutani <mizutani@net-chef.net>
575 * zebra_rib.c (static_add_ipv4): Null0 static route is added.
577 2002-09-10 Jochen Friedrich <chris+zebra@scram.de>
579 * rt_netlink.c: Add check for EAGAIN.
580 * kernel_socket.c: Likewise
582 2002-06-12 Israel Keys <ikeys@oz.agile.tv>
584 * rt_netlink.c: Setting the NLM_F_ACK flag on the netlink command
585 message so that we get an ACK for successful netlink commands.
586 Change the netlink socket to BLOCKING while we wait for a
587 response; be it an ACK or an NLMSG_ERROR. Change
588 netlink_parse_info to deal with ACK messages.
590 2001-11-01 Jun-ichiro itojun Hagino <itojun@iijlab.net>
592 * rtadv.c (rtadv_make_socket): setsockopt(IPV6_CHECKSUM) does not
593 work for ICMPv6 socket.
595 2001-10-24 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
597 * rib.c (rib_process): Select connected route any case.
599 2001-10-23 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
601 * interface.c (no_ip_address_secondary): Add "no" to command.
603 2001-10-18 NOGUCHI Kay <kay@v6.access.co.jp>
605 * ioctl.c (if_prefix_add_ipv6): Set the prefered and valid lifetime
606 to infinity as the freebsd4.4 workaroud.
608 2001-08-26 mihail.balikov@interbgc.com
610 * zebra_snmp.c: Fix snmpwalk problem such as IPv4 address
613 2001-08-22 NOGUCHI Kay <kay@v6.access.co.jp>
615 * rtadv.c: Do not send RA to loopback interface.
617 2001-08-20 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
619 * ioctl.c (if_set_prefix): Remove Linux 2.0 specific connected
622 2001-08-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
624 * zebra-0.92a released.
626 2001-08-17 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
628 * rib.c: Kernel route is treated as EGP routes in nexthop active
631 2001-08-15 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
633 * zebra-0.92 released.
635 2001-08-08 "Akihiro Mizutani" <mizutani@dml.com>
637 * rib.c (show_ip_route_prefix_longer): Add longer-prefix option to
640 2001-07-29 Yon Uriarte <havanna_moon@gmx.net>
642 * zserv.c (zsend_ipv4_add_multipath): Add
643 NEXTHOP_TYPE_IPV4_IFINDEX check.
645 2001-07-29 NOGUCHI Kay <kay@v6.access.co.jp>
647 * rtadv.c: Apply valid lifetime, preferred lifetime, onilnk flag,
648 autonomous address-configuration flag patch.
649 (no_ipv6_nd_suppress_ra): Change "ipv6 nd send-ra" to "no ipv6 nd
652 2001-07-24 NOGUCHI Kay <kay@v6.access.co.jp>
654 * rtadv.c (ipv6_nd_ra_interval): Add "ipv6 nd ra-interval SECONDS"
657 2001-07-24 Jun-ichiro itojun Hagino <itojun@iijlab.net>
659 * rt_socket.c (kernel_rtm_ipv4): Add KAME/NetBSD151 equal cost
660 multicast FIB support both IPv4 and IPv6.
662 2001-07-24 Hal Snyder <hal@vailsys.com>
664 * if_ioctl.c (interface_list_ioctl): Fix bug of failing to get the
665 full list of interfaces on some configurations of OpenBSD.
667 2001-07-23 NOGUCHI Kay <kay@v6.access.co.jp>
669 * rtadv.c (ipv6_nd_send_ra): Apply [zebra 9320] to fix "ipv6 nd
671 (ipv6_nd_ra_lifetime): "ipv6 nd ra-lifetime 0" for default router
673 (ipv6_nd_managed_config_flag): "ipv6 nd managed-config-flag" is
675 (ipv6_nd_other_config_flag): "ipv6 nd other-config-flag" is added.
677 2001-07-23 Jun-ichiro itojun Hagino <itojun@iijlab.net>
679 * ioctl.c (if_ioctl): Change ioctl argument from int to u_long.
681 * rt_ioctl.c: Likewise.
683 2001-07-23 Jun-ichiro itojun Hagino <itojun@iijlab.net>
685 * kernel_socket.c (rtm_write): Only set RTF_CLONING when the
686 interface is not p2p.
688 2001-04-23 Kunihiro Ishiguro <kunihiro@zebra.org>
690 * ioctl.c (if_prefix_add_ipv6): Fix argument type.
692 2001-04-06 Toshiaki Takada <takada@zebra.org>
694 * zserv.c (zsend_interface_delete): Use client->obuf instead of
695 allocating new stream.
697 2001-03-10 Kunihiro Ishiguro <kunihiro@zebra.org>
699 * rt_netlink.c: Revert RTPROT_BOOT change.
701 2001-03-08 Kunihiro Ishiguro <kunihiro@zebra.org>
703 * rt_netlink.c (netlink_route_change): Skip RTPROT_BOOT route.
704 (netlink_routing_table): Likewise.
706 2001-03-07 "Akihiro Mizutani" <mizutani@dml.com>
708 * zserv.c (zsend_ipv4_add_multipath): Send metric value to
711 2001-02-18 Kunihiro Ishiguro <kunihiro@zebra.org>
713 * rt_netlink.c (netlink_routing_table): Do not return
714 tb[RTA_GATEWAY] is NULL. Reported by: "Michael O'Keefe"
715 <mokeefe@qualcomm.com>.
717 2001-02-08 Kunihiro Ishiguro <kunihiro@zebra.org>
719 * if_ioctl.c (interface_list_ioctl): Call if_add_update().
720 Suggested by: Chris Dunlop <chris@onthe.net.au>.
722 2001-02-01 Kunihiro Ishiguro <kunihiro@zebra.org>
724 * rib.c (nexthop_active_ipv4): When nexthop type is
725 NEXTHOP_TYPE_IPV4_IFINDEX, propery set the ifindex to rifindex.
727 * zserv.c: Initialize rtm_table_default with 0.
729 * zebra-0.91 is released.
731 2001-01-31 Kunihiro Ishiguro <kunihiro@zebra.org>
733 * kernel_socket.c (rtm_read): Filter cloned route. Suggested by:
734 Jun-ichiro itojun Hagino <itojun@iijlab.net>
736 2001-01-30 Kunihiro Ishiguro <kunihiro@zebra.org>
738 * connected.c (connected_up_ipv6): When point-to-point destination
739 address is ::, use local address for connected network.
740 (connected_down_ipv6): Likewise.
742 2001-01-25 Kunihiro Ishiguro <kunihiro@zebra.org>
744 * zserv.c (zebra_serv): Add missing close() call. Reported by:
745 David Waitzman <djw@vineyard.net>.
747 2001-01-24 Kunihiro Ishiguro <kunihiro@zebra.org>
749 * rib.c (rib_lookup_ipv4): New function for checking exact match
752 2001-01-23 Kunihiro Ishiguro <kunihiro@zebra.org>
754 * rib.c (show_ipv6_route_protocol): Fix bug of "show ip route
757 2001-01-22 Kunihiro Ishiguro <kunihiro@zebra.org>
759 * interface.c (zebra_interface): Do not call
760 zebra_interface_add_update for inactive interface.
762 * zserv.c (zsend_interface_address_add): Send interface address
764 (zsend_interface_address_delete): Likewise.
766 2001-01-19 Kunihiro Ishiguro <kunihiro@zebra.org>
768 * interface.c (if_addr_add): Add flags.
770 * connected.c (ifa_add_ipv4): Add new function for interface
772 (ifa_delete_ipv4): Likewise.
774 2001-01-16 Kunihiro Ishiguro <kunihiro@zebra.org>
776 * rib.c (rib_update): Update IPv6 RIB.
778 * kernel_socket.c (ifam_read): Call if_refresh() for update
779 interface flag status. This is for implicit interface up on *BSD.
781 * interface.c (if_refresh): Add interface flag refresh function.
783 * kernel_socket.c (rtm_read): Fetch link-local address interface
785 (ifan_read): We need to fetch interface information. Suggested
786 by: Yasuhiro Ohara <yasu@sfc.wide.ad.jp>.
788 * rib.c (static_ipv6_nexthop_same): Add check for
789 NEXTHOP_TYPE_IPV6_IFNAME.
791 2001-01-15 Kunihiro Ishiguro <kunihiro@zebra.org>
793 * rib.h (NEW_RIB): Turn on NEW_RIB flag. IPv6 new RIB code are
796 2001-01-14 Kunihiro Ishiguro <kunihiro@zebra.org>
798 * rib.c (static_ipv6_write): Display STATIC_IPV6_GATEWAY_IFNAME
800 (rib_delete_ipv6): Handle same route conter for IPv6 connected
802 (show_ipv6_route_protocol): New command.
803 (show_ipv6_route_addr): Likewise.
804 (show_ipv6_route_prefix): Likewise.
805 (rib_update): Sweep kernel route when it is cleaned up.
807 * rt_socket.c (kernel_add_ipv6): Add NEXTHOP_IPV6_IFNAME
810 * rt_netlink.c (kernel_init): Likewise.
812 * rt_ioctl.c (kernel_ioctl_ipv6_multipath): Likewise.
814 * rib.c (rib_add_ipv4): Cope with same connected route on a
815 interface. Suggested by: Matthew Grant <grantma@anathoth.gen.nz>.
816 (nexthop_ipv6_ifname_add): Add NEXTHOP_IPV6_IFNAME treatmenet.
818 * rib.h (struct new_rib): Add refcnt to keep track on the
819 reference of same connected route.
821 * ioctl.c (if_set_prefix): Add check for GNU_LINUX.
823 2001-01-13 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
825 * kernel_socket.c (ifan_read, rtm_type_str): Add RTM_OIFINFO check.
826 (rtm_type_str): Add RTM_IFANNOUNCE check.
827 (ifan_read): New function.
828 (kernel_read): Add case for RTM_IFANNOUNCE.
830 2001-01-13 Kunihiro Ishiguro <kunihiro@zebra.org>
832 * rt_ioctl.c (kernel_ioctl_ipv6_multipath): New function.
834 * rt_netlink.c (netlink_route_multipath): IPv6 address ifindex
837 * connected.c (connected_up_ipv6): Add dest value check.
839 * rib.c (nexthop_active_ipv6): Do not touch IPv6 nexthop's
841 (rib_add_ipv4): Import rib_add_ipv6() same route check code.
842 (nexthop_active_check): NEXTHOP_TYPE_IPV6_IFINDEX activity is only
845 * rt_socket.c (kernel_rtm_ipv6_multipath): New function.
847 * redistribute.c (redistribute_add): Use
848 zsend_ipv6_add_multipath().
849 (redistribute_delete_multipath): Use
850 zsend_ipv6_delete_multipath().
852 * interface.c (ip_address): Check current IP address to avoid
855 * rib.c (rib_delete_ipv4): When deleted route is connected route,
857 (rib_add_ipv4): When connected route is added do not perform
859 (rib_delete_ipv4): Check ifindex for connected route.
861 * kernel_socket.c (rtm_read): When route has RTF_STATIC, set
862 ZEBRA_FLAG_STATIC for indicate as persistent route.
863 (ifam_read): Unset interface index from link-local address when
866 * rib.c (rib_update): Do not delete persistent kernel route.
868 * rib.h (struct new_rib): Integrate RIB_FLAG_* to ZEBRA_FLAG_*.
870 * rt_socket.c (kernel_add_ipv6_multipath): Add placeholder.
871 (kernel_delete_ipv6_multipath): Likewise.
873 * rt_netlink.c (netlink_talk): Give struct nlsock to netlink_talk.
875 2001-01-12 Kunihiro Ishiguro <kunihiro@zebra.org>
877 * rib.c (rib_update): Revert Matthew Grant's patch
878 zebra_cvs_newribfix.patch. Use struct rib->ifindex for kernel
879 interface index. Introduce NEXTHOP_TYPE_IPV4_IFINDEX to support
880 that. Add support for address deletion situation.
882 2001-01-11 Kunihiro Ishiguro <kunihiro@zebra.org>
884 * interface.c: Remove HAVE_IF_PSEUDO part.
888 * rt_netlink.c (netlink_link_change): Likewise.
890 2001-01-10 Kunihiro Ishiguro <kunihiro@zebra.org>
892 * zserv.c: Remove OLD_RIB codes.
894 2001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
896 * zebra-0.90 is released.
898 2001-01-09 Matthew Grant <grantma@anathoth.gen.nz>
900 * interface.c (if_new_intern_ifindex): Allocate a new internal
902 (if_addr_refresh): Fix up ip addresses configured via zebra.
903 (if_add_update): Handle an interface addition.
904 (if_delete_update): Handle an interface delete event.
906 * rib.c (nexthop_ipv4_add): Add kernel route deletion process when
909 2001-01-08 Kunihiro Ishiguro <kunihiro@zebra.org>
911 * interface.c (if_dump_vty): When HAVE_NET_RT_IFLIST is defined,
912 NetBSD also use this function. Suggested by Jasper Wallace
913 <jasper@ivision.co.uk>.
915 2001-01-07 Kunihiro Ishiguro <kunihiro@zebra.org>
917 * rib.c (nexthop_active_ipv4): Move back to set methodo to old
920 2001-01-05 Kunihiro Ishiguro <kunihiro@zebra.org>
922 * rib.c (rib_add_ipv4): EBGP multihop set ZEBRA_FLAG_INTERNAL
925 2001-01-04 Kunihiro Ishiguro <kunihiro@zebra.org>
927 * rt_netlink.c (netlink_talk_ipv6): When IPv6 route message is
928 sent from netlink_cmd, the same message comes from netlink. To
929 avoid confusion, temporary netlink_talk_ipv6 use netlink.sock
930 instead of netlink_cmd.sock.
932 2001-01-01 Kunihiro Ishiguro <kunihiro@zebra.org>
934 * zserv.h (ZEBRA_SERV_PATH): Change "/tmp/zebra" to "/tmp/.zebra".
935 Change "/tmp/zserv" to "/tmp/.zserv".
937 2000-12-29 Frank van Maarseveen <F.vanMaarseveen@inter.NL.net>
939 * rt_netlink.c (struct nlsock): Divide kernel message into listen
940 socket and command socket.
941 (netlink_talk): Remove socket listen code. Use netlink_parse_info
942 for read kernel response.
944 2000-12-29 Kunihiro Ishiguro <kunihiro@zebra.org>
946 * rib.c (vty_show_ip_route): Show uptime of the RIP,OSPF,BGP
949 2000-12-27 Kunihiro Ishiguro <kunihiro@zebra.org>
951 * rt_netlink.c (netlink_route_multipath): Metric value is
952 reflected to kernel routing table.
954 * rt_ioctl.c (kernel_ioctl_ipv4_multipath): Likewise.
956 * kernel_socket.c (rtm_write): Likewise.
958 * rib.c (nexthop_active_ipv4): Only iBGP route perform recursive
961 * rt_ioctl.c (kernel_ioctl_ipv4_multipath): Add ioctl version of
962 new RIB implementation.
964 2000-12-26 Kunihiro Ishiguro <kunihiro@zebra.org>
966 * rib.h: Remove MULTIPATH_NUM. It is defined by configure script.
968 2000-12-25 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
970 * rib.c (rib_if_up): Call rib_fib_set instead of RIB_FIB_SET for
971 proper redistribution.
973 2000-12-19 Kunihiro Ishiguro <kunihiro@zebra.org>
975 * rib.c (nexthop_active_ipv4): Add self lookup nexthop check.
976 (show_ip_route_protocol): Support new RIB.
978 * rt_netlink.c (netlink_route_change): Do not return when gate is
981 2000-12-18 Kunihiro Ishiguro <kunihiro@zebra.org>
983 * rib.c (rib_lookup_ipv4_nexthop): IBGP nexthop check function is
985 (rib_add_ipv4): Free implicit withdraw route's RIB.
987 2000-12-15 Kunihiro Ishiguro <kunihiro@zebra.org>
989 * rib.c (nexthop_active_ipv4): Check indirect nexthop.
991 * redistribute.c (redistribute_add_multipath): Redistribution
992 works with new rib code.
994 2000-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
996 * rt_netlink.c (netlink_route_multipath): Check useful nexthop
998 (netlink_route_multipath): Clear rtnh_flags and rtnh_hops.
1000 * rib.c (nexthop_active_update): Set flag for the rib's nexthop
1001 activity is changed.
1002 (nexthop_active_check): Before checking interface is up, make it
1003 sure the interface exist.
1005 2000-11-20 Kunihiro Ishiguro <kunihiro@zebra.org>
1007 * rib.c (ip_route): New RIB prototype.
1009 2000-11-16 Yon Uriarte <ukl2@rz.uni-karlsruhe.de>
1011 * zserv.c (zsend_interface_add): Send hardware address when
1012 hw_addr_len is greater than 0.
1014 2000-11-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1016 * connected.c (connected_up_ipv4): Fix ptop bug. The destination
1017 network should be installed into routing table.
1018 (connected_down_ipv4): Likewise.
1019 (connected_add_ipv4): Change to use connected_up_ipv4.
1020 (connected_delete_ipv4): Likewise.
1022 2000-11-06 Kunihiro Ishiguro <kunihiro@zebra.org>
1024 * rt_netlink.c (netlink_interface_addr): Revert Harald Welte
1025 <laforge@gnumonks.org>'s ptop patch then back to original code to
1026 avoid duplicated connected route problem. Suggested by Frank van
1027 Maarseveen <F.vanMaarseveen@inter.NL.net>.
1029 * kernel_socket.c (rtm_read): Make behavior consistent even #ifdef
1030 DEBUG is defined. Reported by Jun-ichiro itojun Hagino
1031 <itojun@iijlab.net>.
1033 2000-10-23 Jochen Friedrich <jochen@scram.de>
1035 * main.c (main): Call zebra_snmp_init() when it is enabled.
1037 2000-10-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1039 * zserv.c (zebra_serv_un): UNIX domain socket server of zebra
1042 2000-10-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1044 * rib.c (rib_add_ipv4): Same check bug is fixed.
1046 2000-10-03 Kunihiro Ishiguro <kunihiro@zebra.org>
1048 * rib.c (rib_if_down): Remove kernel route when the interface goes
1051 * debug.c: New command "debug zebra kernel" is added.
1053 2000-10-02 Kunihiro Ishiguro <kunihiro@zebra.org>
1055 * zebra-0.89 is released.
1057 2000-09-24 Harald Welte <laforge@gnumonks.org>
1059 * rt_netlink.c (netlink_interface_addr): Fix point-to-point address
1060 treatment in netlink interface.
1062 2000-09-21 David Lipovkov <dlipovkov@OpticalAccess.com>
1064 * rib.c (rib_if_down): Pull static route only. Protocol daemon
1065 must withdraw routes when interface goes down.
1066 (rib_add_ipv4): Check nexthop when replace route.
1068 2000-09-21 Kunihiro Ishiguro <kunihiro@zebra.org>
1070 * if_ioctl.c (if_getaddrs): New function for looking up
1071 interface's address by getifaddrs().
1073 2000-09-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1075 * connected.c (connected_delete_ipv4): Add check for connected
1076 address is found or not.
1077 (connected_add_ipv6): Reflect IPv6 connected address change to
1079 (connected_delete_ipv6): Likewise.
1081 2000-09-07 David Lipovkov <davidl@nbase.co.il>
1083 * rib.c (rib_delete_ipv4): Reverted the change from pseudo
1084 interface patch to original. Because ospfd deletes routes using
1087 2000-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
1089 * zebra-0.88 is released.
1091 2000-08-15 "Akihiro Mizutani" <mizutani@dml.com>
1093 * rib.c (show_ip_route_protocol): Help string correction.
1094 (show_ip_route_prefix): Check prefix mask.
1095 (show_ip_route_vty_detail): Display distance and metric.
1097 2000-08-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1099 * zserv.c (zsend_interface_add): Change ifindex store size from
1101 (zsend_interface_delete): Likewise.
1102 (zsend_interface_address_add): Likewise.
1103 (zsend_interface_address_delete): Likewise.
1104 (zsend_interface_up): Likewise.
1105 (zsend_interface_down): Likewise.
1107 2000-08-13 Kunihiro Ishiguro <kunihiro@zebra.org>
1109 * rib.c (rib_add_ipv4): Do not install distance 255 route.
1111 2000-08-10 Toshiaki Takada <takada@zebra.org>
1113 * interface.c (bandwidth_if), (no_bandwidth_if): Call
1114 zebra_interface_up_update () instead of using if_up() and if_down().
1116 2000-08-07 "Akihiro Mizutani" <mizutani@dml.com>
1118 * interface.c (bandwidth_if): Fix help string.
1120 2000-08-07 Matthew Grant <grantma@anathoth.gen.nz>
1122 * interface.c (if_dump_vty): Display bandwidth value.
1123 (bandwidth_if): New command "bandwidth <1-10000000>" is added.
1124 When interface is up, force protocol daemons to recalculate routes
1126 (no_bandwidth_if): Likewise.
1127 (if_config_write): Output bandwidth configuration.
1129 * zserv.c (zsend_interface_add): Send bandwidth value.
1130 (zsend_interface_up): Likewise.
1131 (zsend_interface_down): Likewise.
1134 2000-08-07 Michael Rozhavsky <mike@nbase.co.il>
1136 * rib.c (show_ip_route_protocol): "show ip route
1137 (bgp|connected|kernel|ospf|rip|static)" is added.
1139 2000-08-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1141 * rib.c (rib_lookup_ipv4_nexthop): Check parent node until IGP
1143 (rib_add_ipv4_internal): Set fib ifindex to rib ifindex.
1145 2000-08-06 Kunihiro Ishiguro <kunihiro@zebra.org>
1147 * redistribute.c (redistribute_delete): Fix bug of default route
1148 redistribute treatment.
1150 2000-08-05 Kunihiro Ishiguro <kunihiro@zebra.org>
1152 * rib.c (rib_init): Install ip_node in rib.c instead of zserv.c.
1153 Change default distance value.
1156 ------------------------------------------
1165 bgp 70 200(iBGP) 20(eBGP)
1166 ------------------------------------------
1168 * zserv.c (client_lookup): Function removed.
1169 (zsend_interface_add): Use client's output buffer. Check ifinfo
1171 (zsend_interface_delete): Likewise.
1172 Delete ipv4_static_radix and ipv6_static_radix.
1174 2000-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
1176 * zserv.h (struct zebra_client): When client request interface
1177 information, ifinfo is set.
1179 * rib.c: Temporary Revert changes for pseudo interface.
1183 * zserv.c: Likewise.
1185 * interface.c: Likewise.
1187 2000-08-02 David Lipovkov <davidl@nbase.co.il>
1189 * interface.c (zebra_if_init): Install interface "pseudo"
1192 * rib.c (rib_create): ifname argument is added.
1193 (rib_add_ipv4_pseudo): New function is added.
1194 (rib_delete_ipv4_pseudo): Likewise.
1196 * rib.h : Delete INTERFACE_UNKNOWN definition. Add prototype for
1197 pseudo interface functions.
1199 * rt_netlink.c (netlink_link_change): Check for pseudo interface.
1201 * zserv.c (ip_route): When destination is pseudo interface, call
1202 rib_add_ipv4_pseudo().
1204 * zserv.c (no_ip_route): Trim "unknown" argument.
1206 2000-07-26 kunitake@dti.ad.jp
1208 * if_ioctl.c (if_get_hwaddr): Fix hardware address length from 8
1211 * rtadv.c (rtadv_send_packet): Fix shift bug for hardware address.
1213 2000-07-24 Akihiro Mizutani <mizutani@dml.com>
1215 * interface.c: Use install_default() for common VTY commands.
1217 2000-07-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1219 * if_ioctl.c (interface_list_ioctl): A interface list size is
1220 calculated from ifreq->if_addr.sa_len. This is for OpenBSD.
1222 * ioctl.c (if_get_mtu): Remove codes for SIOCGIFDATA.
1224 2000-07-09 Chris Dunlop <chris@onthe.net.au>
1226 * if_ioctl.c (if_get_index): Add check for HAVE_BROKEN_ALIASES.
1228 2000-07-04 Kunihiro Ishiguro <kunihiro@zebra.org>
1230 * zserv.c (zebra_client_read): Add ZEBRA_REDISTRIBUTE_{ADD,DELETE}
1233 2000-07-02 David Lipovkov <davidl@nbase.co.il>
1235 * zserv.c: "ip route A.B.C.D/M unknown" command is added.
1237 2000-06-28 Michael Rozhavsky <mike@nbase.co.il>
1239 * rib.c: Remove old kernel route when new route comes in.
1241 2000-06-13 David Lipovkov <davidl@nbase.co.il>
1243 * rib.c (rib_if_up): Add check for unknown interface.
1245 2000-06-13 Kunihiro Ishiguro <kunihiro@zebra.org>
1247 * rib.h: Define INTERFACE_UNKNOWN.
1249 2000-06-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1251 * Makefile.am (EXTRA_DIST): Move irdp.c until implementation is
1254 2000-06-05 David Lipovkov <davidl@nbase.co.il>
1256 * interface.c (if_zebra_delete_hook): Call rib_if_delete().
1258 * redistribute.c (zebra_interface_delete_update): New function.
1260 * redistribute.h (zebra_interface_delete_update): New function
1263 * rib.c (rib_if_delete): New function. Walk down all routes and
1264 delete all on the interface.
1266 * rib.h: New function prototype.
1268 * rt_netlink.c (netlink_link_change): Call
1269 zebra_interface_delete_update ().
1271 2000-05-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1273 * if_ioctl.c (interface_info_ioctl): Check interface's flag before
1274 checking interface's address.
1276 2000-04-26 Jochen Friedrich <jochen@nwe.de>
1278 * GNOME-PRODUCT-ZEBRA-MIB: New file.
1280 * GNOME-SMI: New file.
1282 2000-04-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1284 * irdp.c: New file from 1997 development code.
1287 2000-04-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1289 * rtadv.c (rtadv_send_packet): Enclose router advertisement
1290 logging with IS_ZEBRA_DEBUG_PACKET.
1292 2000-04-17 Kunihiro Ishiguro <kunihiro@zebra.org>
1294 * zserv.c (zebra_client_close): Remove client structure from
1295 client_list when connection is terminated.
1297 2000-03-21 David Lipovkov <davidl@nbase.co.il>
1299 * connected.c (connected_add_ipv4): Allows all necessary structure
1300 updates for connected route, but doesn't insert it into rib if
1301 it's interface is down.
1303 2000-01-21 Hideto Yamakawa <hideto.yamakawa@soliton.co.jp>
1305 * rtread_getmsg.c: Set some definition for Solaris 2.5 and Solaris
1308 2000-01-21 Kunihiro Ishiguro <kunihiro@zebra.org>
1310 * rib.c (no_ipv6_route_ifname): Fix buf of cheking return value
1311 from str2prefix_ipv6().
1313 2000-01-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1315 * rt_socket.c: Revert to use RTF_HOST for IPv4 with /32 route and
1316 IPv6 with /128 routes.
1317 (kernel_rtm_ipv4): In case of /32 route's gateway is interface. It
1318 should have mask for cloning.
1320 1999-12-26 Jochen.Friedrich@genorz.de
1322 * interface.c (if_dump_vty): Fix a bug of missing VTY_NEWLINE.
1324 1999-12-23 Alex Zinin <zinin@amt.ru>
1325 * interface.*: dynamic int up/down support
1327 1999-12-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1329 * ipforward_proc.c (dropline): Move dropline() from lib/dropline.c
1331 * rtread_proc.c (proc_route_read): Don't use dropline().
1333 1999-12-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1335 * kernel_socket.c (rtm_read): When message is RTM_GET, it has own
1338 1999-12-04 Kunihiro Ishiguro <kunihiro@zebra.org>
1340 * main.c (main): Change to default log output to ZLOG_STDOUT.
1342 * zserv.c (zebra_serv): More detailed error print.
1344 1999-11-30 Kunihiro Ishiguro <kunihiro@zebra.org>
1346 * kernel_socket.c (rtm_read): Check old pid for static route
1349 1999-11-30 Kunihiro Ishiguro <kunihiro@zebra.org>
1351 * interface.c (if_dump_vty): BSDI/OS uses 64bit for interface
1354 * mtu_kvm.c: New file added.
1356 1999-11-27 Vladimir B. Grebenschikov <vova@express.ru>
1358 * kernel_socket.c (rtm_write): Set RTF_CLONING flag for
1359 route to the directly connected interface.
1361 1999-11-27 Kunihiro Ishiguro <kunihiro@zebra.org>
1363 * rt_socket.c: Delete USE_HOST_BIT definition.
1365 1999-11-21 Michael Handler <handler@sub-rosa.com>
1367 * rtread_getmsg.c: Undef some definition to resolve conflict.
1369 1999-11-27 Kunihiro Ishiguro <kunihiro@zebra.org>
1371 * kernel_socket.c (rtm_write): Change to use pre stored struct_dl
1372 value for gateway specification.
1374 1999-11-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1376 * rt_socket.c (kernel_rtm_ipv4): Even mask is 32 under IPv4 or
1377 128 under IPv6, don't use RTF_HOST.
1379 1999-11-21 Kunihiro Ishiguro <kunihiro@zebra.org>
1381 * Makefile.am (EXTRA_DIST): Add rtread_getmsg.c.
1383 1999-11-21 Michael Handler <handler@sub-rosa.com>
1385 * rtread_getmsg.c: Added for Solaris 2.6 support.
1387 1999-11-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1389 * rtread_sysctl.c (rtm_read_route): RTM_DELETE handling added.
1391 * rt_socket.c (kernel_read): Better BSD routing socket support.
1393 1999-10-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1395 * client_main.c: Disable making obsolete zebra test `client'
1398 1999-10-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1400 * zebra.c: Renamed to zserv.c.
1402 * zebra.h: Global definitions are moved to lib/zebra.h. Then
1405 1999-10-15 Jordan Mendelson <jordy@wserv.com>
1407 * if_ioctl.c: Add Linux 2.2.X's alias support and dynamic
1408 interface. Remove ugly MAX_INTERFACE handling codes.
1410 1999-09-17 Satosi KOBAYASI <kobayasi@north.ad.jp>
1412 * Fix serious bug of IPv6 route deletion.
1414 1999-09-11 Kunihiro Ishiguro <kunihiro@zebra.org>
1416 * ioctl.c (if_set_prefix): Properly set broadcast address.
1418 1999-09-04 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1420 * rib.c (rib_add_ipv6, rib_delete_ipv6): now protocol daemons
1421 can install connected route to kernel via zebra
1423 1999-08-24 VOP <vop@unity.net>
1425 * rib.c: Include "sockunion.h"
1427 1999-08-22 Kunihiro Ishiguro <kunihiro@zebra.org>
1429 * ipforward.h: New file.
1431 * zebra.h: Obsolete message ZEBRA_GET_ALL_INTERFACE,
1432 ZEBRA_GET_ONE_INTERFACE, ZEBRA_GET_HOSTINFO are deleted.
1434 1999-08-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1436 * zebra.h (ZEBRA_INTERFACE_ADDRESS_ADD):
1437 ZEBRA_INTERFACE_{ADD,DELETE} added.
1439 1999-08-15 Kunihiro Ishiguro <kunihiro@zebra.org>
1441 * rib.c: show ip route A.B.C.D works.
1443 * zebra.c (zebra_read_ipv4): Add ifindex to zebra messages.
1445 1999-08-12 Kunihiro Ishiguro <kunihiro@zebra.org>
1447 * zebra.h: New Zebra message ZEBRA_INTERFACE_{ADD,DELETE} added.
1449 1999-08-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1451 * interface.h: New file.
1452 * Makefile.am: Add interface.h
1454 1999-08-04 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1456 * redistribute.c (zebra_redistribute): give ifindex to client.
1458 1999-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
1460 * main.c (longopts): -k, --keep_kernel option added.
1462 1999-07-18 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1464 * rt_socket.c (rtm_write): forgot closing socket bug fixed.
1466 1999-07-17 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1468 * rib.c (show_ipv6_cmd): if rib is link show interface name.
1470 1999-07-17 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1472 * rt_socket.c (rtm_write): use sockaddr_dl when null gateway.
1474 1999-07-16 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1476 * rt_socket.c (rtm_write): ipv6 route table bug fixed.
1478 1999-07-15 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1480 * zebra.c (zebra_read_ipv6): read link prefix from ospf6 support
1482 1999-07-15 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1484 * rt_socket.c (kernel_rtm_ipv6): gate treatment bug fixed.
1486 1999-07-15 Kunihiro Ishiguro <kunihiro@zebra.org>
1488 * if_sysctl.c (ifm_read): Clear sockunion argument before fetching
1489 data. Suggested by "Chris P. Ross" <cross@eng.us.uu.net>
1491 1999-07-08 HEO SeonMeyong <seirios@Matrix.IRI.Co.Jp>
1493 * interface.c (if_tun_add): Add KAME's gif tunnel setting codes.
1495 1999-06-26 Kunihiro Ishiguro <kunihiro@zebra.org>
1497 * zebra.c (zebra_serv): Only accept loopback address connection.
1499 1999-06-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1501 * zebra.h (ZEBRA_ROUTE_EXTERNAL): Add zebra messages flags
1503 1999-06-17 Kunihiro Ishiguro <kunihiro@zebra.org>
1505 * ipforward_proc.c: ipforward_on () and ipforward_off () added.
1507 1999-06-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1509 * ipforward_proc.c (ipforward_ipv6): Check for IPv6 forwarding
1510 using /proc file system is added.
1512 1999-06-06 Kunihiro Ishiguro <kunihiro@zebra.org>
1514 * if_ioctl.c (if_get_index): Interface index set bug is fixed by
1515 adding #else at the middle of function. Suggested by David Luyer
1516 <luyer@ucs.uwa.edu.au>.
1518 1999-05-29 <kunihiro@zebra.org>
1520 * rt_ioctl.c: Comment out #include <linux/ipv6_route.h>.
1522 1999-05-26 Kunihiro Ishiguro <kunihiro@zebra.org>
1524 * zebra.h (ZEBRA_ROUTE_MAX): Add new define for the max value of
1527 1999-05-25 Patrick Koppen <koppen@rhrk.uni-kl.de>
1529 * rt_netlink.c (netlink_socket): Make netlink socket non-blocking.
1530 (netlink_parse_info): If errno is EWOULDBLOCK then continue to
1532 (netlink_talk): Likewise
1534 1999-05-17 <kunihiro@zebra.org>
1536 * redistribute.c (zebra_check_addr): Added for loopback address
1539 1999-05-15 Kunihiro Ishiguro <kunihiro@zebra.org>
1541 * rt_netlink.c (netlink_route_change): Tempolary bypass ipv6 route
1544 * Makefile.am (noinst_HEADERS): redistribute.h added.
1546 * redistribute.h: New file.
1548 1999-05-14 Stephen R. van den Berg <srb@cuci.nl>
1550 * zebra.c (show_table): Show all table configuration DEFUN.
1551 (config_table): Config table number DEFUN.
1553 * rt_netlink.c: Add support for multiple routing table.
1555 * rib.c (rib_weed_table): New function added for delete all
1556 routes from specified routing table.
1558 * main.c (signal_init): SIGTERM call sigint.
1559 (sigint): Loggging more better message.
1561 1999-05-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1563 * rt_netlink.c: Change log () to zlog ().
1565 1999-05-07 <kunihiro@zebra.org>
1567 * zebra.h (ZEBRA_ROUTE_OSPF6): Added for ospf6d route.
1569 1999-04-20 Kunihiro Ishiguro <kunihiro@zebra.org>
1571 * interface.c: Add `no ip address' command.
1573 1999-04-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1575 * rt_netlink.c (kernel_read): Function added for asynchronous
1576 zebra between kernel communication.
1578 1999-03-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1580 * rtread_sysctl.c (rtm_read): Fix address memcopy overrun bug.
1581 Reported by Achim Patzner <ap@bnc.net>.
1583 1999-03-03 Kunihiro Ishiguro <kunihiro@zebra.org>
1585 * Makefile.am: Install configuration sample with 600 permission.
1587 1999-03-02 Kunihiro Ishiguro <kunihiro@zebra.org>
1589 * Makefile.am: Add -I.. to INCLUDES.
1591 1999-02-18 Peter Galbavy <Peter.Galbavy@knowledge.com>
1593 * syslog support added
1595 1999-02-17 Peter Galbavy <Peter.Galbavy@knowledge.com>
1597 * if_sysctl.c (interface_list): allocated memory free when unknown
1598 ifm_type is returned.
1600 * ioctl.c (if_get_mtu): added SIOCGIFDATA treatment.
1602 1998-12-15 Magnus Ahltorp <map@stacken.kth.se>
1604 * interface.c: Header include added.
1606 1998-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1608 * rt.h (kernel_delete_ipv6): change int index to unsigned int index.
1610 1998-12-13 Kunihiro Ishiguro <kunihiro@zebra.org>
1612 * if_ioctl.c (interface_list_ioctl): interface flag must be
1613 checked before check addresses of the interface.
1615 1998-12-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1617 * Makefile.am (INCLUDES): add @INCLUDES@ for Linux IPv6.
1619 1998-10-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1621 * ioctl.c: Linux version before 2.1.0 need interface route setup.
1623 1998-09-15 HEO SeonMeyong <seirios@matrix.iri.co.jp>
1625 * change HYDRANGEA to KAME
1627 1998-09-01 Kunihiro Ishiguro <kunihiro@zebra.org>
1629 * if_ioctl.c (if_addr_ioctl): set address family for getting
1630 interface's address.
1631 (if_get_index): silently return when can't get interface's index.
1633 1998-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
1635 * main.c (main): batch mode option '-b' added.
1637 1998-08-16 Kunihiro Ishiguro <kunihiro@zebra.org>
1639 * ioctl.c (if_set_prefix): add `ip address IPV4ADDR' command.
1640 * interface.c (shutdown_if): add interface shutdown and no
1643 1998-08-12 Kunihiro Ishiguro <kunihiro@zebra.org>
1645 * rib.c (rib_add_ipv6): delete rib_add_in6.
1647 1998-07-27 Kunihiro Ishiguro <kunihiro@zebra.org>
1649 * main.c: retain flag is added.
1651 1998-07-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1653 * rtable.[ch]: merged with rib.[ch]
1655 1998-07-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1657 * connected.h: renamed from ifa.h.
1659 1998-06-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1661 * rename if.c to interface.c
1662 * rename ifa.c to connected.c
1664 * Porting to Debian GNU/Linux 2.0 (hamm).
1666 1998-06-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1668 * rt_netlink.c: renamed from krt_netlink.c
1671 * rt_kvm.c: deleted.
1672 * rtread_getmsg.c: deleted.
1674 1998-06-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1676 * if.c (multicast): add multicast flag [un]set fucntion.
1678 1998-05-19 Yamshita TAKAO <jargon@lares.dti.ne.jp>
1680 * rt_socket.c: Modify for compile on Solaris, but dont't work it.
1681 rt_socket.c have some undefined function, so add directive "IMPLEMENT"
1683 1998-05-18 Yamshita TAKAO <jargon@lares.dti.ne.jp>
1685 * zebra.c: Modify for compile on Solaris.
1687 1998-05-03 Kunihiro Ishiguro <kunihiro@zebra.org>
1689 * main.c: change CONFDIR to SYSCONFDIR.
1691 1998-05-01 Kunihiro Ishiguro <kunihiro@zebra.org>
1693 * .cvsignore: added.
1695 1998-04-02 Kunihiro Ishiguro <kunihiro@zebra.org>
1697 * client.c: moves to ../lib.
1699 1998-03-30 Kunihiro Ishiguro <kunihiro@zebra.org>
1701 * if_ioctl.c (if_get_addr): Change address copy from memcopy() to
1702 structure assignment.
1704 1998-03-30 URA Hiroshi <ura@yamato.ibm.co.jp>
1706 * if_sysctl.c (ifm_interface_add): sdl->sdl_data copy bug fixed.
1708 1998-02-23 "Hannes R. Boehm" <hannes@boehm.org>
1710 * if.c (if_init): add config_exit_cmd and config_help_cmd.
1712 1998-01-24 Kunihiro Ishiguro <kunihiro@zebra.org>
1714 * rt_ioctl.c (route_ioctl): EPERM treatment added.
1716 1998-01-05 Kunihiro Ishiguro <kunihiro@zebra.org>
1718 * rt_socket.c (kernel_read): communication port zebra between
1719 kernel is now handled by kernel_read.
1721 1998-01-02 Kunihiro Ishiguro <kunihiro@zebra.org>
1723 * main.c (main): zebra [-P port] can specify vty port number.
1725 1997-12-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1727 * zebra.c: change select will be block.
1729 1997-12-04 Kunihiro Ishiguro <kunihiro@zebra.org>
1731 * add static route treatment.
1733 1997-11-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1735 * rt_netlink.c: add netlink support over GNU/Linux system.
1737 1997-11-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1739 * all inet_addr is changed to inet_aton.
1741 * zebra.c (ip_route): add ip route command for static routes.
1743 1997-11-20 Kunihiro Ishiguro <kunihiro@zebra.org>
1745 * if.c (if_flag_dump): Linux port of if_flag_dump and _vty.
1747 1997-11-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1749 * if.c: add interface command.
1751 1997-11-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1753 * ipforward_proc.c : Now works on Linux.
1755 1997-10-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1757 * command.c : add completion feature.
1759 1997-10-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1761 * vty.c (vty_command): add vty interface.
1763 1997-10-13 Kunihiro Ishiguro <kunihiro@zebra.org>
1765 * zebra.c: add verbose mode.
1767 1997-10-12 SonMyong Ho <s-ho@Matrix.IRI.Co.Jp>
1769 * Hydrangea for FreeBSD supported
1770 * in.h: add some prototype.
1772 1997-10-11 Kunihiro Ishiguro <kunihiro@zebra.org>
1774 * rt_socket.c and rtread.c completely rewritten.
1776 1997-10-05 Kunihiro Ishiguro <kunihiro@zebra.org>
1778 * rt_socket.c: rename kernel_sock to routing_socket
1780 1997-10-04 Kunihiro Ishiguro <kunihiro@zebra.org>
1782 * if.c (if_new): interface structure change from linklist to vector.
1784 1997-10-03 Kunihiro Ishiguro <kunihiro@zebra.org>
1786 * vector.c (vector_init): create vector related function
1788 1997-09-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1790 * Makefile.in: add tags target
1792 * start IPv6 support for INRIA FreeBSD.