1 2005-04-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
3 * zserv.c (zebra_client_read): Fix bug: first read attempt should
4 read ZEBRA_HEADER_SIZE minus the number of bytes already read.
5 Improve efficiency by maintaining a calculation of the number
6 of bytes read instead of calling stream_get_endp multiple times.
7 If message length is too small, issue a warning message (not debug)
8 before closing the connection. And also check that message length
11 2005-04-09 Hasso Tepper <hasso at quagga.net>
13 * rt_netlink.c: One tiny missing comma caused pointless debug messages
16 2005-04-09 Hasso Tepper <hasso at quagga.net>
18 * rt_netlink.c (netlink_parse_info): Fix warning. It's safe to cast
19 status to unsigned here, because we already checked that it isn't
21 * rt_netlink.c (netlink_interface_addr): Prefix length belongs to the
22 address, not to the interface.
23 * rt_netlink.c (netlink_route_multipath): Fix debug. No useless info
24 is printed out now and IPv6 info is handeled.
26 2005-04-05 Paul Jakma <paul@dishone.st>
28 * zserv.c: print more helpful errors when we fail to successfully
29 bind and listen on zserv socket. Closes bugzilla #163.
31 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
33 * if_ioctl.c: (interface_list_ioctl) Use if_get_by_name_len.
34 * if_proc.c: (ifaddr_proc_ipv6) Increase size of ifname buffer to
36 * kernel_socket.c: (ifan_read) Use if_get_by_name_len.
38 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
40 * kernel_socket.c: (ifm_read) Use new if_lookup_by_name_len function
42 * if_ioctl_solaris.c: (interface_list_ioctl) Fix subtle bug with new
43 if_get_by_name_len function.
45 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
47 * interface.c: (if_new_intern_ifindex) Remove obsolete function.
48 (if_delete_update) After distributing the interface deletion message,
49 set ifp->ifindex to IFINDEX_INTERNAL.
50 (if_dump_vty) Detect pseudo interface by checking if ifp->ifindex is
52 (zebra_interface) Check return code from interface_cmd.func.
53 Do not set internal ifindex values to if_new_intern_ifindex(),
54 since we now use IFINDEX_INTERNAL for all pseudo interfaces.
55 * kernel_socket.c: (ifm_read) Fix code and comments to reflect that
56 all internal interfaces now have ifp->ifindex set to IFINDEX_INTERNAL.
57 * rt_netlink.c: (set_ifindex) New function used to update ifp->ifindex.
58 Detects interface rename events by checking if that ifindex is already
59 being used. If it is, delete the old interface before assigning
60 the ifindex to the new interface.
61 (netlink_interface, netlink_link_change) Call set_ifindex to update
64 2005-03-31 Hasso Tepper <hasso at quagga.net>
66 * rt_netlink.c (netlink_talk_filter): Show always warning message,
68 * rt_netlink.c (netlink_talk): Don't assume we use netlink_cmd
69 although we do now actually.
70 * rt_netlink.c (netlink_route, netlink_route_multipath): Always use
71 netlink_cmd to send messages to the kernel.
73 2005-03-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
75 * irdp.h: Add prototype for irdp_sock_init, and fix protos for
76 other irdp_* functions.
77 * irdp_interface.c: (irdp_if_start) If irdp_sock is negative,
78 call irdp_sock_init to create the IRDP socket.
79 (irdp_if_init) Rename to irdp_init().
80 (get_iflist_ifp) Remove function that is a duplicate of
82 (*) Make many functions static. And remove superfluous "\n" from
83 several zlog messages.
84 * irdp_main.c: (irdp_init) Remove function that used to call
85 irdp_if_init() and irdp_sock_init(), since we will now create
86 the socket only upon first use.
87 (irdp_sock_init) Do not update global irdp_sock variable, just
88 return the fd and assume that the caller will do so. If setsockopt
89 calls fail, close the socket before returning -1.
90 (*) Make many functions static.
91 * irdp_packet.c: Initialize irdp_sock to -1.
92 (irdp_read_raw) Call standard library function if_lookup_by_index
93 instead of get_iflist_ifp.
94 (irdp_recvmsg) Should be static, not global.
96 2005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
98 * rt_netlink.c: (netlink_link_change) If the status of an
99 operative interface changes (e.g. MTU changes), the client
100 daemons should be notified by calling zebra_interface_up_update.
101 Previously, the information was being updated in zebra's
102 interface structure, but the clients were not notified of
103 changes to an operative interface.
105 2005-03-25 Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
106 * interface.c, interface.h, rtadv.c, rtadv.h: modifications to
107 IPv6 Neighbor Discovery according to RFC3775, section 7:
108 o 1-bit Home Agent flag management in Router Advertisement (7.1).
109 o 1-bit Router Address flag management in Prefix Information
111 o Advertisement Interval Option (7.3)
112 o Home Agent Information Option (7.4)
113 o Changes to Sending Router Advertisements more frequently (7.5)
115 2005-03-13 Hasso Tepper <hasso at quagga.net>
117 * zebra/interaface.c: "show interface description" command
120 2005-03-12 Paul Jakma <paul@dishone.st>
122 * rt_netlink.c: (netlink_route_multipath) dont set equalise flag.
123 No stock Linux kernel has ever supported it, and even if it had
124 it's not generally a good idea.
126 2005-03-07 Michael Sandee <voidptr@voidptr.sboost.org>
128 * if_proc.c, ipforward_proc.c, rtread_proc.c: Fix fd leaks.
130 2005-03-06 Hasso Tepper <hasso at quagga.net>
132 * interface.c: Fix CRC and frame errors statistics in Linux.
134 2005-02-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
136 * zserv.c: Must include network.h and buffer.h for non-blocking I/O.
137 Remove global message_queue and t_write (need separate buffering for
139 (zebra_server_dequeue,zebra_server_enqueue) Remove functions
140 related to old buggy buffering code.
141 (zserv_delayed_close) New thread callback function to delete a client.
142 (zserv_flush_data) New thread callback function to flush buffered
144 (zebra_server_send_message) Rewritten to use buffer_write (so
145 buffering of writes and non-blocking I/O work properly).
146 (zsend_interface_add,zsend_interface_delete,zsend_interface_address,
147 zsend_interface_update) Return 0 instead of -1 if !client->ifinfo
148 (this is not really an error). Return value from
149 zebra_server_send_message.
150 (zsend_route_multipath,zsend_ipv4_nexthop_lookup,
151 zsend_ipv4_import_lookup) Return value from zebra_server_send_message.
152 (zsend_ipv6_nexthop_lookup) Fix scope to static, and return value
153 from zebra_server_send_message.
154 (zsend_router_id_update) Must use zebra_server_send_message instead
155 of deprecated writen function. Return 0 instead of -1 if this client
156 is not subscribed to router-id updates (since this is not really
158 (zread_interface_add) Change type to static int. If
159 zsend_interface_add fails or zsend_interface_address fails, return -1
160 immediately (since the client has had an I/O error).
161 (zread_interface_delete,zread_ipv4_add,zread_ipv4_delete,
162 zread_ipv6_add,zread_ipv6_delete,zread_router_id_delete) Return 0
164 (zread_ipv4_nexthop_lookup) Return value from
165 zsend_ipv4_nexthop_lookup.
166 (zread_ipv4_import_lookup) Return value from zsend_ipv4_import_lookup.
167 (zebra_read_ipv6) Remove unused function.
168 (zread_ipv6_nexthop_lookup) Return value from
169 zsend_ipv6_nexthop_lookup.
170 (zread_router_id_add) Return value from zsend_router_id_update.
171 (zebra_client_close) Call buffer_free(client->wb) and
172 thread_cancel(client->t_suicide).
173 (zebra_client_create) Allocate client->wb using buffer_new.
174 (zebra_client_read) Support non-blocking I/O by using stream_read_try.
175 Use ZEBRA_HEADER_SIZE instead of 3.
176 (zebra_accept) Fix bug: reset accept thread at top. Make client
177 socket non-blocking using the set_nonblocking function.
178 (config_write_forwarding) Fix scope to static.
179 (zebra_init) Remove initialization code for old buggy write buffering.
180 * zserv.h: Add 2 new fields to struct zserv: struct buffer *wb
181 (to enable buffered writes with non-blocking I/), and
182 struct thread *t_suicide to support delayed close on I/O
184 * router-id.h: Remove prototypes for zread_router_id_add and
185 zread_router_id_delete (their scope should be static to zserv.c).
187 2005-02-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
189 * redistribute.c: (zebra_check_addr,is_default,
190 zebra_redistribute_default,zebra_redistribute) Fix scope to be static.
192 2005-02-20 Hasso Tepper <hasso at quagga.net>
194 * rt_netlink.c: Don't show messages "ignoring message type 0x001[89]"
195 if we are not debugging.
197 2005-02-19 Paul Jakma <paul@dishone.st>
199 * zserv.c: (zebra_read_ipv6) replace the char * arithmetic with
202 2005-02-14 Paul Jakma <paul@dishone.st>
204 * Not all Linux netlink systems have IFLA_WIRELESS
206 2005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
208 * ioctl.c: (if_ioctl,if_ioctl_ipv6,if_get_flags) Replace perror with
210 * ioctl_solaris.c: (if_ioctl,if_ioctl_ipv6) Replace perror with
213 2005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
215 * if_ioctl_solaris.c: (interface_list_ioctl) Save errno before calling
217 * ioctl{,_solaris}.c: (if_ioctl,if_ioctl_ipv6) Save errno before calling
219 * ipforward_solaris.c: (solaris_nd) Save errno before calling
221 * irdp_main.c: (irdp_sock_init) Save errno before calling
224 2005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
226 * rt_netlink.c: (netlink_socket,netlink_request,netlink_parse_info,
227 netlink_talk) Save errno before calling zserv_privs.change.
229 2005-01-24 Martin Pot <mpot at martybugs.net>
231 * zebra/rt_netlink.c: ignore wireless newlink netlink messages.
233 2005-01-18 Hasso Tepper <hasso at quagga.net>
235 * interface.c: Better statistics output in "show interface" command in
236 case of /proc being used.
238 2005-01-17 Hasso Tepper <hasso at quagga.net>
240 * main.c: With --nl-bufsize argument is required.
242 2005-01-05 Paul Jakma <paul@dishone.st>
244 * zserv.c: (zebra_accept) Comment out setting of socket to NONBLOCK
245 for now, as we dont actually deal with with resending.... See
246 bugzilla #122, fix from wawa@yandex-team.ru (Vladimir Ivanov).
247 * kernel_socket.c: (routing_socket) ditto.
249 2005-01-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
251 * rtadv.c: (rtadv_recv_packet,rtadv_send_packet) Use ZCMSG_FIRSTHDR
252 instead of CMSG_FIRSTHDR.
254 2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
256 * connected.c: (connected_add_ipv4) Limit warning about /32 addresses
257 with no peer specified to PtP interfaces only.
259 2004-12-18 Hasso Tepper <hasso at quagga.net>
261 * zebra_vty.c: Fix "show ipv6 route <proto>" command help and make it
262 work for isis routes.
264 2004-12-09 Greg Troxel <gdt@fnord.ir.bbn.com>
266 * kernel_socket.c (rtmsg_debug): char * => const char *
268 2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
270 * *.c: Change level of debug messages to LOG_DEBUG.
272 2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
274 * main.c: (main) The 2nd argument to openzlog has been removed.
275 So stdout logging will no longer be enabled by default.
276 * irdp_main.c: (irdp_finish) Reduce severity of shutdown message
277 from LOG_WARNING to LOG_INFO.
279 2004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
281 * main.c: (sigint) Use zlog_notice for termination message.
282 (main) Add a startup announcement using zlog_notice.
284 2004-11-25 Hasso Tepper <hasso at quagga.net>
286 * irdp_interface.c: Remove comment from DEFUN, it breaks vtysh because
287 it confuses extract.pl.
288 * main.c: Make group to run as configurable.
290 2004-10-28 Hasso Tepper <hasso at quagga.net>
292 * interface.c: Remove dead "ip tunnel" command.
294 2004-10-22 Paul Jakma <paul@dishone.st>
296 * irdp_main.c: change setsockopt_pktinfo to setsockopt_ifindex
298 2004-10-19 Andrew J. Schorr <aschorr@telemetry-investments.com>
300 * rt_netlink.c: (netlink_interface_addr) For PtP interfaces, ignore
301 tb[IFA_ADDRESS] if it's the same as tb[IFA_LOCAL].
302 * interface.c: (ip_address_install) Use new ipv4_broadcast_addr
304 * connected.c: (connected_up_ipv4) Use CONNECTED_POINTOPOINT_HOST
306 (connected_down_ipv4) ditto.
307 (connected_add_ipv4) Validate destination address, print warnings
308 if it does not make sense.
310 2004-10-19 Hasso Tepper <hasso at quagga.net>
312 * zserv.c: Fix regression introduced with zserv cleanup.
314 2004-10-13 Hasso Tepper <hasso at quagga.net>
316 * zebra_snmp.c: Remove defaults used to initialize smux connection to
317 snmpd. Connection is initialized only if smux peer is configured.
318 * zserv.c: Remove useless warnings "forwarding is already on".
320 2004-10-12 Hasso Tepper <hasso at quagga.net>
322 * zebra_vty.c: Unbreak "show ip route" command help and make it work
324 * interface.c(if_dump_vty): Show IPv6 addresses in "show interface"
325 output. Fixes Bugzilla #119.
326 * *.c: Make some strings const and some (unsigned) casts to fix
329 2004-10-07 Hasso Tepper <hasso at quagga.net>
331 * connected.c, main.c, rt_netlink.c, rtadv.c, zebra_rib.c, zserv.c:
332 Fix warnings: make strings const, signed -> unsigned.
334 2004-10-05 Paul Jakma <paul@dishone.st>
336 * irdp_packet.c: (parse_irdp_packet) style issues.
337 Use sockopt_iphdrincl_swab_systoh.
338 Try unbork the code. Checksum the ICMP data and actually
339 compare it to received checksum. Check data length against
340 claimed length in header.
341 Always use ntoh.. when accessing addresses, even when the
342 comparison happens to be endian-safe.
343 (send_packet) minor style isues. Use
344 sockopt_iphdrincl_swab_htosys.
345 (irdp_iph_hton/ntoh) IP header to/from network/host order.
347 2004-10-03 Gilad Arnold <gilad.arnold at terayon.com>
349 * interface.c, interface.h: A new prefix tree of connected subnets is
350 associated with each interface structure in zebra, in which each
351 live (ie, non-synthetic) node holds a list of installed addresses
352 that belong to that prefix. Remove secondary address logic from cli.
353 See [quagga-dev 872] for detailed explanation.
354 * connected.c: Use if_subnet_add() and if_subnet_delete().
356 2004-10-03 James R. Leu <jleu at mindspring.com>
358 * router-id.c, router-id.h: New files. Router id selection process. If
359 there is non 127.x.x.x address in loopack interface, lowest of them
360 is chosen. If there isn't, lowest from other interfaces addresses
361 are chosen. "router-id x.x.x.x" vty command to manual override.
362 * Makefile.am: Compile new files.
363 * main.c: Initialize router id.
364 * redistribute.c: Add interface addresses into router id selection
365 lists as they (dis)appear.
366 * zserv.c, zserv.h: Sending router id related messages to daemons.
368 2004-09-26 Hasso Tepper <hasso at quagga.net>
370 * irdp_interface.c, irdp_main.c, irdp_packet.c, rt_netlink.c,
371 rtadv.c, zebra_vty.c: Fix compiler warnings.
373 2004-09-24 Paul Jakma <paul@dishone.st>
375 * irdp_interface.c: (no_ip_irdp_address_preference_cmd)
376 add missing listnode declaration.
378 2004-09-24 Paul Jakma <paul@dishone.st>
380 * irdp_{interface,main}.c: lists typedef removal cleanup.
381 update some list loops to LIST_LOOP. some miscellaneous style
383 (no_ip_irdp_address_preference_cmd) Fix delete of referenced node
385 * irdp_packet.c: (irdp_recvmsg) Fix buggy assignment of integer
387 * if_ioctl{,_solaris}.c: lists typedef removal cleanup.
388 update some list loops to LIST_LOOP.
390 2004-09-23 Hasso Tepper <hasso at quagga.net>
392 * *.[c|h]: list -> struct list *, listnode -> struct listnode *.
394 2004-09-22 Paul Jakma <paul.jakma@sun.com>
396 * zserv.c: (zsend_route_multipath) fix nasty bad memset of struct
397 in_addr to sizeof(struct in6_addr), causing odd and hard to debug
400 2004-08-31 Hasso Tepper <hasso at quagga.net>
402 * main.c, rt_netlink.c: Added -s command line switch for tuning
403 netlink receive buffer size in Linux to avoid buffer overruns.
405 2004-08-26 Miles Nordin <carton@Ivy.NET>
407 * ipforward_sysctl.c (mib_ipv6): Use size_t for len, per
408 sysctl(3), rather than int. (Needed on NetBSD/alpha to display
409 forwarding status correctly.)
411 2004-08-23 Paul Jakma <paul@dishone.st>
413 * zserv.c: (zebra_init) remove implicit ip forward enabling
415 2004-08-19 Paul Jakma <paul@dishone.st>
417 * irdp_main.c: update to match sockopt renames.
418 * irdp_packet.c: include sockopt.h and update to match sockopt
421 2004-08-11 Greg Troxel <gdt@fnord.ir.bbn.com>
423 * rtadv.c (rtadv_send_packet): Allocate space for control messages
424 more carefully; it was wrong on NetBSD/sparc where CMSG alignment
425 is to 8 bytes instead of 4, and overwriting the address. Use the
426 provided macros for determining lengths.
428 2004-07-23 Sowmini Varadhan <Sowmini.Varadhan@Sun.COM>
430 * if_ioctl_solaris.c: HAVE_IPV6 ifdef fixups
432 * ioctl_solaris.c: ditto.
433 * interface.c: cast for LLADDR
434 * interface.h: Add guards, include redistribute.h and remove
435 extraneous definitions of zebra_interface_{up,down}_update
436 * ioctl.h: Add AF_IOCTL define for non SOLARIS_IPV6
437 * redistribute.h: include dependent header, zserv.h
438 * zserv.h: include dependent header, rib.h
440 2004-07-23 Paul Jakma <paul@dishone.st>
442 * irdp_main.c: use setsockopt_pktinfo_ipv4
443 * irdp_packet.c: use SOPT_SIZE_CMSG_PKTINFO_IPV4 and
444 getsockopt_pktinfo_ifindex()
446 2004-07-13 David Wiggins <dwiggins@bbn.com
448 * kernel_socket.c (rtm_flag_dump): terminate buffer with '\0', not '0'.
450 2004-07-13 Hasso Tepper <hasso@estpak.ee>
452 * irdp_main.c: Add privilege change.
454 2004-07-12 Hasso Tepper <hasso@estpak.ee>
456 * irdp_interface.c: follow common style while naming vty command
457 functions. Avoids confusion in extract.pl.
459 2004-06-30 Greg Troxel <gdt@poblano.ir.bbn.com>
461 * main.c: define thread_master variable so that linking with
462 libzebra.so doesn't fail. Arguably zclient.o should be in a
463 separate library, but this is far less disruptive.
465 2004-06-12 Robert Olsson <Robert.Olsson at data.slu.se>
467 * Added IRDP support.
469 2004-05-18 Hasso Tepper <hasso@estpak.ee>
471 * rtadv.c: Removed "[no] ipv6 nd send-ra" command. Replaced "ipv6 nd
472 prefix-advertisement" with "ipv6 nd prefix". Rewrite syntax of
473 "ipv6 nd prefix" command to allow various combinations of parameters
474 and flags. No defaults in configuration. Replaced on-link and
475 autoconfig with off-link and no-autoconfig flags in command syntax.
476 Cosmetic fixes in all commands. Documentation to reflect all changes.
478 2004-05-11 Paul Jakma <paul@dishone.st>
480 * Makefile.am: support for IOCTL_METHOD, as per Sowmini's patch.
481 * if_ioctl_solaris.c: Fixup some erroneous privilege changes and
483 * ioctl_solaris.c: ditto
484 * ioctl.h: Add if_ioctl_ipv6 prototype and AF_IOCTL for SOLARIS_IPV6
485 * kernel_socket.c: Fix SAROUNDUP, compiler doesnt like do..while
486 RHS in assignments :)
487 * redistribute.c: (zebra_interface_delete_update) only used
488 if RTM_IFANNOUNCE and NETLINK is available.
490 2004-05-09 Paul Jakma <paul@dishone.st>
492 * zserv.c: (zsend_route_multipath) Set the nexthop_num
493 field correctly. Add NEXTHOP_TYPE_IPV6_IFNAME for v6.
494 Conditionally set ZAPI_MESSAGE_METRIC flag - only for adds.
495 (zsend_ipv4_add) cruft, deleted.
496 (zsend_ipv4_delete) ditto.
497 (zsend_ipv6_add) ditto.
498 (zsend_ipv6_delete) ditto.
499 * ioctl.c: (if_get_mtu) set mtu6 to mtu
500 * mtu_kvm.c: (if_kvm_get_mtu) set mtu6 to mtu
501 * rt_netlink.c: (netlink_interface) set mtu6 to mtu
502 (netlink_link_change) ditto
503 * ipforward_solaris.c: fix typo of ND variable.
504 * if_ioctl_solaris.c: Add zprivs support.
505 * ioctl_solaris.c: ditto.
507 2004-05-09 Sowmini Varadhan <sowmini.varadhan@sun.com>
509 * zserv.c: (zsend_ipv{4,6}_{add,delete}_multipath) collapsed
510 into single zsend_route_multipath function.
511 (zsend_interface_{up,down}) collapsed into zsend_interface_update.
512 (zsend_interface_address_{add,delete}) collapsed into
513 zsend_interface_address.
514 (zsend_interface_add) send mtu6.
515 (zsend_interface_delete) ditto.
516 (zebra_write) remove unused function.
517 (various) Apply static qualifier. Add comments.
518 * zserv.h: Definitions changed as per above.
519 * redistribute.c: Changes as per zserv.c.
520 * interface.c: (if_delete_update) only used with HAVE_NETLINK
522 (if_flag_dump_vty) Solaris IFF_IPV4 and IFF_IPV6 if flags
523 (if_dump_vty) print mtu6 if not same as mtu
524 * if_ioctl_solaris.c: New file, Solaris interface ioctl methods.
525 * ioctl_solaris.c: New file, Common solaris ioctl methods.
527 2004-04-06 Krzysztof Oledzki <oleq@ans.pl>
529 * rt_netlink.c: Do not ignore metric when reading kernel routing
530 table on Linux with rt_netlink interface.
532 2004-03-18 Hasso Tepper <hasso@estpak.ee>
534 * interface.c: Temporary fix for handling secondary addresses
537 2004-02-12 Hasso Tepper <hasso@estpak.ee>
539 * zserv.c: Added "ipv6 forwarding" command.
541 2004-01-08 Greg Troxel <gdt@fnord.ir.bbn.com>
543 * kernel_socket.c (kernel_read): Use sockaddr_storage in buffer
544 for reading kernel messages to ensure enough space (necessary on
545 Solaris due to sockaddr_dl being large). Thanks to Sowmini
546 Varadhan for help with this change.
548 2004-01-06 Greg Troxel <gdt@t1.ir.bbn.com>
550 * rtadv.c (rtadv_send_packet): Change perror to zlog_err.
552 2004-01-05 Greg Troxel <gdt@fnord.ir.bbn.com>
553 * kernel_socket.c (ifm_read): Major cleanup. Use Sowmini's code
554 to find the sockaddr_dl in all cases, narrowing the Solaris ifdef
555 to just the accomodation of broken kernels. Check sockaddr_dl
556 carefully up front, and later assume any non-NULL sdl pointer is
557 valid. Clean up types and variable declarations, and rename
558 WRAPUP to SAROUNDUP to make the name fit the behavior.
560 2004-01-05 Greg Troxel <gdt@fnord.ir.bbn.com>
562 * kernel_socket.c (kernel_read): Add a sockaddr_dl to the ifmsg
563 structure, because on Solaris sockaddr_dl is far larger than the
564 base sockaddr structure. (The code had previously been failing to
567 2004-01-05 Greg Troxel <gdt@ahi.ir.bbn.com>
569 * kernel_socket.c (kernel_read): Look up interfaces by index
570 first, so that state changes which do not include a sockaddr_dl
571 now work. Add many sanity checks. In
572 particular, do not assume that a sockaddr_dl follows a message
573 without checking the ifm_addrs flags, and do not trust the length
574 in a sockaddr_dl. Add/clarify many comments.
576 2003-12-03 Greg Troxel <gdt@poblano.ir.bbn.com>
578 * rtadv.c: reorder includes to avoid compiler warning (define
579 structs before using them in prototypes)
581 2003-05-25 Jim Crumpler <Jim.Crumpler@edion.com>
583 * zserv.c: Add "ip forwarding" command.
585 2003-05-16 Gilad Arnold <gilad.arnold@terayon.com>
587 * zebra_rib.c: Fix memory leaks for ifname nexthops
589 2003-04-19 Israel Keys <ikeys@agile.tv>
591 * rt_netlink.c: BLOCK on netlink while initialising
593 2003-02-06 Francois Deppierraz <francois@ctrlaltdel.ch>
595 * rt_netlink.c (netlink_route_multipath): Set RTM_F_EQUALIZE when
598 2002-09-28 Akihiro Mizutani <mizutani@net-chef.net>
600 * zebra_rib.c (static_add_ipv4): Null0 static route is added.
602 2002-09-10 Jochen Friedrich <chris+zebra@scram.de>
604 * rt_netlink.c: Add check for EAGAIN.
605 * kernel_socket.c: Likewise
607 2002-06-12 Israel Keys <ikeys@oz.agile.tv>
609 * rt_netlink.c: Setting the NLM_F_ACK flag on the netlink command
610 message so that we get an ACK for successful netlink commands.
611 Change the netlink socket to BLOCKING while we wait for a
612 response; be it an ACK or an NLMSG_ERROR. Change
613 netlink_parse_info to deal with ACK messages.
615 2001-11-01 Jun-ichiro itojun Hagino <itojun@iijlab.net>
617 * rtadv.c (rtadv_make_socket): setsockopt(IPV6_CHECKSUM) does not
618 work for ICMPv6 socket.
620 2001-10-24 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
622 * rib.c (rib_process): Select connected route any case.
624 2001-10-23 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
626 * interface.c (no_ip_address_secondary): Add "no" to command.
628 2001-10-18 NOGUCHI Kay <kay@v6.access.co.jp>
630 * ioctl.c (if_prefix_add_ipv6): Set the prefered and valid lifetime
631 to infinity as the freebsd4.4 workaroud.
633 2001-08-26 mihail.balikov@interbgc.com
635 * zebra_snmp.c: Fix snmpwalk problem such as IPv4 address
638 2001-08-22 NOGUCHI Kay <kay@v6.access.co.jp>
640 * rtadv.c: Do not send RA to loopback interface.
642 2001-08-20 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
644 * ioctl.c (if_set_prefix): Remove Linux 2.0 specific connected
647 2001-08-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
649 * zebra-0.92a released.
651 2001-08-17 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
653 * rib.c: Kernel route is treated as EGP routes in nexthop active
656 2001-08-15 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
658 * zebra-0.92 released.
660 2001-08-08 "Akihiro Mizutani" <mizutani@dml.com>
662 * rib.c (show_ip_route_prefix_longer): Add longer-prefix option to
665 2001-07-29 Yon Uriarte <havanna_moon@gmx.net>
667 * zserv.c (zsend_ipv4_add_multipath): Add
668 NEXTHOP_TYPE_IPV4_IFINDEX check.
670 2001-07-29 NOGUCHI Kay <kay@v6.access.co.jp>
672 * rtadv.c: Apply valid lifetime, preferred lifetime, onilnk flag,
673 autonomous address-configuration flag patch.
674 (no_ipv6_nd_suppress_ra): Change "ipv6 nd send-ra" to "no ipv6 nd
677 2001-07-24 NOGUCHI Kay <kay@v6.access.co.jp>
679 * rtadv.c (ipv6_nd_ra_interval): Add "ipv6 nd ra-interval SECONDS"
682 2001-07-24 Jun-ichiro itojun Hagino <itojun@iijlab.net>
684 * rt_socket.c (kernel_rtm_ipv4): Add KAME/NetBSD151 equal cost
685 multicast FIB support both IPv4 and IPv6.
687 2001-07-24 Hal Snyder <hal@vailsys.com>
689 * if_ioctl.c (interface_list_ioctl): Fix bug of failing to get the
690 full list of interfaces on some configurations of OpenBSD.
692 2001-07-23 NOGUCHI Kay <kay@v6.access.co.jp>
694 * rtadv.c (ipv6_nd_send_ra): Apply [zebra 9320] to fix "ipv6 nd
696 (ipv6_nd_ra_lifetime): "ipv6 nd ra-lifetime 0" for default router
698 (ipv6_nd_managed_config_flag): "ipv6 nd managed-config-flag" is
700 (ipv6_nd_other_config_flag): "ipv6 nd other-config-flag" is added.
702 2001-07-23 Jun-ichiro itojun Hagino <itojun@iijlab.net>
704 * ioctl.c (if_ioctl): Change ioctl argument from int to u_long.
706 * rt_ioctl.c: Likewise.
708 2001-07-23 Jun-ichiro itojun Hagino <itojun@iijlab.net>
710 * kernel_socket.c (rtm_write): Only set RTF_CLONING when the
711 interface is not p2p.
713 2001-04-23 Kunihiro Ishiguro <kunihiro@zebra.org>
715 * ioctl.c (if_prefix_add_ipv6): Fix argument type.
717 2001-04-06 Toshiaki Takada <takada@zebra.org>
719 * zserv.c (zsend_interface_delete): Use client->obuf instead of
720 allocating new stream.
722 2001-03-10 Kunihiro Ishiguro <kunihiro@zebra.org>
724 * rt_netlink.c: Revert RTPROT_BOOT change.
726 2001-03-08 Kunihiro Ishiguro <kunihiro@zebra.org>
728 * rt_netlink.c (netlink_route_change): Skip RTPROT_BOOT route.
729 (netlink_routing_table): Likewise.
731 2001-03-07 "Akihiro Mizutani" <mizutani@dml.com>
733 * zserv.c (zsend_ipv4_add_multipath): Send metric value to
736 2001-02-18 Kunihiro Ishiguro <kunihiro@zebra.org>
738 * rt_netlink.c (netlink_routing_table): Do not return
739 tb[RTA_GATEWAY] is NULL. Reported by: "Michael O'Keefe"
740 <mokeefe@qualcomm.com>.
742 2001-02-08 Kunihiro Ishiguro <kunihiro@zebra.org>
744 * if_ioctl.c (interface_list_ioctl): Call if_add_update().
745 Suggested by: Chris Dunlop <chris@onthe.net.au>.
747 2001-02-01 Kunihiro Ishiguro <kunihiro@zebra.org>
749 * rib.c (nexthop_active_ipv4): When nexthop type is
750 NEXTHOP_TYPE_IPV4_IFINDEX, propery set the ifindex to rifindex.
752 * zserv.c: Initialize rtm_table_default with 0.
754 * zebra-0.91 is released.
756 2001-01-31 Kunihiro Ishiguro <kunihiro@zebra.org>
758 * kernel_socket.c (rtm_read): Filter cloned route. Suggested by:
759 Jun-ichiro itojun Hagino <itojun@iijlab.net>
761 2001-01-30 Kunihiro Ishiguro <kunihiro@zebra.org>
763 * connected.c (connected_up_ipv6): When point-to-point destination
764 address is ::, use local address for connected network.
765 (connected_down_ipv6): Likewise.
767 2001-01-25 Kunihiro Ishiguro <kunihiro@zebra.org>
769 * zserv.c (zebra_serv): Add missing close() call. Reported by:
770 David Waitzman <djw@vineyard.net>.
772 2001-01-24 Kunihiro Ishiguro <kunihiro@zebra.org>
774 * rib.c (rib_lookup_ipv4): New function for checking exact match
777 2001-01-23 Kunihiro Ishiguro <kunihiro@zebra.org>
779 * rib.c (show_ipv6_route_protocol): Fix bug of "show ip route
782 2001-01-22 Kunihiro Ishiguro <kunihiro@zebra.org>
784 * interface.c (zebra_interface): Do not call
785 zebra_interface_add_update for inactive interface.
787 * zserv.c (zsend_interface_address_add): Send interface address
789 (zsend_interface_address_delete): Likewise.
791 2001-01-19 Kunihiro Ishiguro <kunihiro@zebra.org>
793 * interface.c (if_addr_add): Add flags.
795 * connected.c (ifa_add_ipv4): Add new function for interface
797 (ifa_delete_ipv4): Likewise.
799 2001-01-16 Kunihiro Ishiguro <kunihiro@zebra.org>
801 * rib.c (rib_update): Update IPv6 RIB.
803 * kernel_socket.c (ifam_read): Call if_refresh() for update
804 interface flag status. This is for implicit interface up on *BSD.
806 * interface.c (if_refresh): Add interface flag refresh function.
808 * kernel_socket.c (rtm_read): Fetch link-local address interface
810 (ifan_read): We need to fetch interface information. Suggested
811 by: Yasuhiro Ohara <yasu@sfc.wide.ad.jp>.
813 * rib.c (static_ipv6_nexthop_same): Add check for
814 NEXTHOP_TYPE_IPV6_IFNAME.
816 2001-01-15 Kunihiro Ishiguro <kunihiro@zebra.org>
818 * rib.h (NEW_RIB): Turn on NEW_RIB flag. IPv6 new RIB code are
821 2001-01-14 Kunihiro Ishiguro <kunihiro@zebra.org>
823 * rib.c (static_ipv6_write): Display STATIC_IPV6_GATEWAY_IFNAME
825 (rib_delete_ipv6): Handle same route conter for IPv6 connected
827 (show_ipv6_route_protocol): New command.
828 (show_ipv6_route_addr): Likewise.
829 (show_ipv6_route_prefix): Likewise.
830 (rib_update): Sweep kernel route when it is cleaned up.
832 * rt_socket.c (kernel_add_ipv6): Add NEXTHOP_IPV6_IFNAME
835 * rt_netlink.c (kernel_init): Likewise.
837 * rt_ioctl.c (kernel_ioctl_ipv6_multipath): Likewise.
839 * rib.c (rib_add_ipv4): Cope with same connected route on a
840 interface. Suggested by: Matthew Grant <grantma@anathoth.gen.nz>.
841 (nexthop_ipv6_ifname_add): Add NEXTHOP_IPV6_IFNAME treatmenet.
843 * rib.h (struct new_rib): Add refcnt to keep track on the
844 reference of same connected route.
846 * ioctl.c (if_set_prefix): Add check for GNU_LINUX.
848 2001-01-13 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
850 * kernel_socket.c (ifan_read, rtm_type_str): Add RTM_OIFINFO check.
851 (rtm_type_str): Add RTM_IFANNOUNCE check.
852 (ifan_read): New function.
853 (kernel_read): Add case for RTM_IFANNOUNCE.
855 2001-01-13 Kunihiro Ishiguro <kunihiro@zebra.org>
857 * rt_ioctl.c (kernel_ioctl_ipv6_multipath): New function.
859 * rt_netlink.c (netlink_route_multipath): IPv6 address ifindex
862 * connected.c (connected_up_ipv6): Add dest value check.
864 * rib.c (nexthop_active_ipv6): Do not touch IPv6 nexthop's
866 (rib_add_ipv4): Import rib_add_ipv6() same route check code.
867 (nexthop_active_check): NEXTHOP_TYPE_IPV6_IFINDEX activity is only
870 * rt_socket.c (kernel_rtm_ipv6_multipath): New function.
872 * redistribute.c (redistribute_add): Use
873 zsend_ipv6_add_multipath().
874 (redistribute_delete_multipath): Use
875 zsend_ipv6_delete_multipath().
877 * interface.c (ip_address): Check current IP address to avoid
880 * rib.c (rib_delete_ipv4): When deleted route is connected route,
882 (rib_add_ipv4): When connected route is added do not perform
884 (rib_delete_ipv4): Check ifindex for connected route.
886 * kernel_socket.c (rtm_read): When route has RTF_STATIC, set
887 ZEBRA_FLAG_STATIC for indicate as persistent route.
888 (ifam_read): Unset interface index from link-local address when
891 * rib.c (rib_update): Do not delete persistent kernel route.
893 * rib.h (struct new_rib): Integrate RIB_FLAG_* to ZEBRA_FLAG_*.
895 * rt_socket.c (kernel_add_ipv6_multipath): Add placeholder.
896 (kernel_delete_ipv6_multipath): Likewise.
898 * rt_netlink.c (netlink_talk): Give struct nlsock to netlink_talk.
900 2001-01-12 Kunihiro Ishiguro <kunihiro@zebra.org>
902 * rib.c (rib_update): Revert Matthew Grant's patch
903 zebra_cvs_newribfix.patch. Use struct rib->ifindex for kernel
904 interface index. Introduce NEXTHOP_TYPE_IPV4_IFINDEX to support
905 that. Add support for address deletion situation.
907 2001-01-11 Kunihiro Ishiguro <kunihiro@zebra.org>
909 * interface.c: Remove HAVE_IF_PSEUDO part.
913 * rt_netlink.c (netlink_link_change): Likewise.
915 2001-01-10 Kunihiro Ishiguro <kunihiro@zebra.org>
917 * zserv.c: Remove OLD_RIB codes.
919 2001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
921 * zebra-0.90 is released.
923 2001-01-09 Matthew Grant <grantma@anathoth.gen.nz>
925 * interface.c (if_new_intern_ifindex): Allocate a new internal
927 (if_addr_refresh): Fix up ip addresses configured via zebra.
928 (if_add_update): Handle an interface addition.
929 (if_delete_update): Handle an interface delete event.
931 * rib.c (nexthop_ipv4_add): Add kernel route deletion process when
934 2001-01-08 Kunihiro Ishiguro <kunihiro@zebra.org>
936 * interface.c (if_dump_vty): When HAVE_NET_RT_IFLIST is defined,
937 NetBSD also use this function. Suggested by Jasper Wallace
938 <jasper@ivision.co.uk>.
940 2001-01-07 Kunihiro Ishiguro <kunihiro@zebra.org>
942 * rib.c (nexthop_active_ipv4): Move back to set methodo to old
945 2001-01-05 Kunihiro Ishiguro <kunihiro@zebra.org>
947 * rib.c (rib_add_ipv4): EBGP multihop set ZEBRA_FLAG_INTERNAL
950 2001-01-04 Kunihiro Ishiguro <kunihiro@zebra.org>
952 * rt_netlink.c (netlink_talk_ipv6): When IPv6 route message is
953 sent from netlink_cmd, the same message comes from netlink. To
954 avoid confusion, temporary netlink_talk_ipv6 use netlink.sock
955 instead of netlink_cmd.sock.
957 2001-01-01 Kunihiro Ishiguro <kunihiro@zebra.org>
959 * zserv.h (ZEBRA_SERV_PATH): Change "/tmp/zebra" to "/tmp/.zebra".
960 Change "/tmp/zserv" to "/tmp/.zserv".
962 2000-12-29 Frank van Maarseveen <F.vanMaarseveen@inter.NL.net>
964 * rt_netlink.c (struct nlsock): Divide kernel message into listen
965 socket and command socket.
966 (netlink_talk): Remove socket listen code. Use netlink_parse_info
967 for read kernel response.
969 2000-12-29 Kunihiro Ishiguro <kunihiro@zebra.org>
971 * rib.c (vty_show_ip_route): Show uptime of the RIP,OSPF,BGP
974 2000-12-27 Kunihiro Ishiguro <kunihiro@zebra.org>
976 * rt_netlink.c (netlink_route_multipath): Metric value is
977 reflected to kernel routing table.
979 * rt_ioctl.c (kernel_ioctl_ipv4_multipath): Likewise.
981 * kernel_socket.c (rtm_write): Likewise.
983 * rib.c (nexthop_active_ipv4): Only iBGP route perform recursive
986 * rt_ioctl.c (kernel_ioctl_ipv4_multipath): Add ioctl version of
987 new RIB implementation.
989 2000-12-26 Kunihiro Ishiguro <kunihiro@zebra.org>
991 * rib.h: Remove MULTIPATH_NUM. It is defined by configure script.
993 2000-12-25 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
995 * rib.c (rib_if_up): Call rib_fib_set instead of RIB_FIB_SET for
996 proper redistribution.
998 2000-12-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1000 * rib.c (nexthop_active_ipv4): Add self lookup nexthop check.
1001 (show_ip_route_protocol): Support new RIB.
1003 * rt_netlink.c (netlink_route_change): Do not return when gate is
1006 2000-12-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1008 * rib.c (rib_lookup_ipv4_nexthop): IBGP nexthop check function is
1010 (rib_add_ipv4): Free implicit withdraw route's RIB.
1012 2000-12-15 Kunihiro Ishiguro <kunihiro@zebra.org>
1014 * rib.c (nexthop_active_ipv4): Check indirect nexthop.
1016 * redistribute.c (redistribute_add_multipath): Redistribution
1017 works with new rib code.
1019 2000-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1021 * rt_netlink.c (netlink_route_multipath): Check useful nexthop
1023 (netlink_route_multipath): Clear rtnh_flags and rtnh_hops.
1025 * rib.c (nexthop_active_update): Set flag for the rib's nexthop
1026 activity is changed.
1027 (nexthop_active_check): Before checking interface is up, make it
1028 sure the interface exist.
1030 2000-11-20 Kunihiro Ishiguro <kunihiro@zebra.org>
1032 * rib.c (ip_route): New RIB prototype.
1034 2000-11-16 Yon Uriarte <ukl2@rz.uni-karlsruhe.de>
1036 * zserv.c (zsend_interface_add): Send hardware address when
1037 hw_addr_len is greater than 0.
1039 2000-11-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1041 * connected.c (connected_up_ipv4): Fix ptop bug. The destination
1042 network should be installed into routing table.
1043 (connected_down_ipv4): Likewise.
1044 (connected_add_ipv4): Change to use connected_up_ipv4.
1045 (connected_delete_ipv4): Likewise.
1047 2000-11-06 Kunihiro Ishiguro <kunihiro@zebra.org>
1049 * rt_netlink.c (netlink_interface_addr): Revert Harald Welte
1050 <laforge@gnumonks.org>'s ptop patch then back to original code to
1051 avoid duplicated connected route problem. Suggested by Frank van
1052 Maarseveen <F.vanMaarseveen@inter.NL.net>.
1054 * kernel_socket.c (rtm_read): Make behavior consistent even #ifdef
1055 DEBUG is defined. Reported by Jun-ichiro itojun Hagino
1056 <itojun@iijlab.net>.
1058 2000-10-23 Jochen Friedrich <jochen@scram.de>
1060 * main.c (main): Call zebra_snmp_init() when it is enabled.
1062 2000-10-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1064 * zserv.c (zebra_serv_un): UNIX domain socket server of zebra
1067 2000-10-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1069 * rib.c (rib_add_ipv4): Same check bug is fixed.
1071 2000-10-03 Kunihiro Ishiguro <kunihiro@zebra.org>
1073 * rib.c (rib_if_down): Remove kernel route when the interface goes
1076 * debug.c: New command "debug zebra kernel" is added.
1078 2000-10-02 Kunihiro Ishiguro <kunihiro@zebra.org>
1080 * zebra-0.89 is released.
1082 2000-09-24 Harald Welte <laforge@gnumonks.org>
1084 * rt_netlink.c (netlink_interface_addr): Fix point-to-point address
1085 treatment in netlink interface.
1087 2000-09-21 David Lipovkov <dlipovkov@OpticalAccess.com>
1089 * rib.c (rib_if_down): Pull static route only. Protocol daemon
1090 must withdraw routes when interface goes down.
1091 (rib_add_ipv4): Check nexthop when replace route.
1093 2000-09-21 Kunihiro Ishiguro <kunihiro@zebra.org>
1095 * if_ioctl.c (if_getaddrs): New function for looking up
1096 interface's address by getifaddrs().
1098 2000-09-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1100 * connected.c (connected_delete_ipv4): Add check for connected
1101 address is found or not.
1102 (connected_add_ipv6): Reflect IPv6 connected address change to
1104 (connected_delete_ipv6): Likewise.
1106 2000-09-07 David Lipovkov <davidl@nbase.co.il>
1108 * rib.c (rib_delete_ipv4): Reverted the change from pseudo
1109 interface patch to original. Because ospfd deletes routes using
1112 2000-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
1114 * zebra-0.88 is released.
1116 2000-08-15 "Akihiro Mizutani" <mizutani@dml.com>
1118 * rib.c (show_ip_route_protocol): Help string correction.
1119 (show_ip_route_prefix): Check prefix mask.
1120 (show_ip_route_vty_detail): Display distance and metric.
1122 2000-08-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1124 * zserv.c (zsend_interface_add): Change ifindex store size from
1126 (zsend_interface_delete): Likewise.
1127 (zsend_interface_address_add): Likewise.
1128 (zsend_interface_address_delete): Likewise.
1129 (zsend_interface_up): Likewise.
1130 (zsend_interface_down): Likewise.
1132 2000-08-13 Kunihiro Ishiguro <kunihiro@zebra.org>
1134 * rib.c (rib_add_ipv4): Do not install distance 255 route.
1136 2000-08-10 Toshiaki Takada <takada@zebra.org>
1138 * interface.c (bandwidth_if), (no_bandwidth_if): Call
1139 zebra_interface_up_update () instead of using if_up() and if_down().
1141 2000-08-07 "Akihiro Mizutani" <mizutani@dml.com>
1143 * interface.c (bandwidth_if): Fix help string.
1145 2000-08-07 Matthew Grant <grantma@anathoth.gen.nz>
1147 * interface.c (if_dump_vty): Display bandwidth value.
1148 (bandwidth_if): New command "bandwidth <1-10000000>" is added.
1149 When interface is up, force protocol daemons to recalculate routes
1151 (no_bandwidth_if): Likewise.
1152 (if_config_write): Output bandwidth configuration.
1154 * zserv.c (zsend_interface_add): Send bandwidth value.
1155 (zsend_interface_up): Likewise.
1156 (zsend_interface_down): Likewise.
1159 2000-08-07 Michael Rozhavsky <mike@nbase.co.il>
1161 * rib.c (show_ip_route_protocol): "show ip route
1162 (bgp|connected|kernel|ospf|rip|static)" is added.
1164 2000-08-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1166 * rib.c (rib_lookup_ipv4_nexthop): Check parent node until IGP
1168 (rib_add_ipv4_internal): Set fib ifindex to rib ifindex.
1170 2000-08-06 Kunihiro Ishiguro <kunihiro@zebra.org>
1172 * redistribute.c (redistribute_delete): Fix bug of default route
1173 redistribute treatment.
1175 2000-08-05 Kunihiro Ishiguro <kunihiro@zebra.org>
1177 * rib.c (rib_init): Install ip_node in rib.c instead of zserv.c.
1178 Change default distance value.
1181 ------------------------------------------
1190 bgp 70 200(iBGP) 20(eBGP)
1191 ------------------------------------------
1193 * zserv.c (client_lookup): Function removed.
1194 (zsend_interface_add): Use client's output buffer. Check ifinfo
1196 (zsend_interface_delete): Likewise.
1197 Delete ipv4_static_radix and ipv6_static_radix.
1199 2000-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
1201 * zserv.h (struct zebra_client): When client request interface
1202 information, ifinfo is set.
1204 * rib.c: Temporary Revert changes for pseudo interface.
1208 * zserv.c: Likewise.
1210 * interface.c: Likewise.
1212 2000-08-02 David Lipovkov <davidl@nbase.co.il>
1214 * interface.c (zebra_if_init): Install interface "pseudo"
1217 * rib.c (rib_create): ifname argument is added.
1218 (rib_add_ipv4_pseudo): New function is added.
1219 (rib_delete_ipv4_pseudo): Likewise.
1221 * rib.h : Delete INTERFACE_UNKNOWN definition. Add prototype for
1222 pseudo interface functions.
1224 * rt_netlink.c (netlink_link_change): Check for pseudo interface.
1226 * zserv.c (ip_route): When destination is pseudo interface, call
1227 rib_add_ipv4_pseudo().
1229 * zserv.c (no_ip_route): Trim "unknown" argument.
1231 2000-07-26 kunitake@dti.ad.jp
1233 * if_ioctl.c (if_get_hwaddr): Fix hardware address length from 8
1236 * rtadv.c (rtadv_send_packet): Fix shift bug for hardware address.
1238 2000-07-24 Akihiro Mizutani <mizutani@dml.com>
1240 * interface.c: Use install_default() for common VTY commands.
1242 2000-07-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1244 * if_ioctl.c (interface_list_ioctl): A interface list size is
1245 calculated from ifreq->if_addr.sa_len. This is for OpenBSD.
1247 * ioctl.c (if_get_mtu): Remove codes for SIOCGIFDATA.
1249 2000-07-09 Chris Dunlop <chris@onthe.net.au>
1251 * if_ioctl.c (if_get_index): Add check for HAVE_BROKEN_ALIASES.
1253 2000-07-04 Kunihiro Ishiguro <kunihiro@zebra.org>
1255 * zserv.c (zebra_client_read): Add ZEBRA_REDISTRIBUTE_{ADD,DELETE}
1258 2000-07-02 David Lipovkov <davidl@nbase.co.il>
1260 * zserv.c: "ip route A.B.C.D/M unknown" command is added.
1262 2000-06-28 Michael Rozhavsky <mike@nbase.co.il>
1264 * rib.c: Remove old kernel route when new route comes in.
1266 2000-06-13 David Lipovkov <davidl@nbase.co.il>
1268 * rib.c (rib_if_up): Add check for unknown interface.
1270 2000-06-13 Kunihiro Ishiguro <kunihiro@zebra.org>
1272 * rib.h: Define INTERFACE_UNKNOWN.
1274 2000-06-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1276 * Makefile.am (EXTRA_DIST): Move irdp.c until implementation is
1279 2000-06-05 David Lipovkov <davidl@nbase.co.il>
1281 * interface.c (if_zebra_delete_hook): Call rib_if_delete().
1283 * redistribute.c (zebra_interface_delete_update): New function.
1285 * redistribute.h (zebra_interface_delete_update): New function
1288 * rib.c (rib_if_delete): New function. Walk down all routes and
1289 delete all on the interface.
1291 * rib.h: New function prototype.
1293 * rt_netlink.c (netlink_link_change): Call
1294 zebra_interface_delete_update ().
1296 2000-05-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1298 * if_ioctl.c (interface_info_ioctl): Check interface's flag before
1299 checking interface's address.
1301 2000-04-26 Jochen Friedrich <jochen@nwe.de>
1303 * GNOME-PRODUCT-ZEBRA-MIB: New file.
1305 * GNOME-SMI: New file.
1307 2000-04-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1309 * irdp.c: New file from 1997 development code.
1312 2000-04-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1314 * rtadv.c (rtadv_send_packet): Enclose router advertisement
1315 logging with IS_ZEBRA_DEBUG_PACKET.
1317 2000-04-17 Kunihiro Ishiguro <kunihiro@zebra.org>
1319 * zserv.c (zebra_client_close): Remove client structure from
1320 client_list when connection is terminated.
1322 2000-03-21 David Lipovkov <davidl@nbase.co.il>
1324 * connected.c (connected_add_ipv4): Allows all necessary structure
1325 updates for connected route, but doesn't insert it into rib if
1326 it's interface is down.
1328 2000-01-21 Hideto Yamakawa <hideto.yamakawa@soliton.co.jp>
1330 * rtread_getmsg.c: Set some definition for Solaris 2.5 and Solaris
1333 2000-01-21 Kunihiro Ishiguro <kunihiro@zebra.org>
1335 * rib.c (no_ipv6_route_ifname): Fix buf of cheking return value
1336 from str2prefix_ipv6().
1338 2000-01-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1340 * rt_socket.c: Revert to use RTF_HOST for IPv4 with /32 route and
1341 IPv6 with /128 routes.
1342 (kernel_rtm_ipv4): In case of /32 route's gateway is interface. It
1343 should have mask for cloning.
1345 1999-12-26 Jochen.Friedrich@genorz.de
1347 * interface.c (if_dump_vty): Fix a bug of missing VTY_NEWLINE.
1349 1999-12-23 Alex Zinin <zinin@amt.ru>
1350 * interface.*: dynamic int up/down support
1352 1999-12-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1354 * ipforward_proc.c (dropline): Move dropline() from lib/dropline.c
1356 * rtread_proc.c (proc_route_read): Don't use dropline().
1358 1999-12-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1360 * kernel_socket.c (rtm_read): When message is RTM_GET, it has own
1363 1999-12-04 Kunihiro Ishiguro <kunihiro@zebra.org>
1365 * main.c (main): Change to default log output to ZLOG_STDOUT.
1367 * zserv.c (zebra_serv): More detailed error print.
1369 1999-11-30 Kunihiro Ishiguro <kunihiro@zebra.org>
1371 * kernel_socket.c (rtm_read): Check old pid for static route
1374 1999-11-30 Kunihiro Ishiguro <kunihiro@zebra.org>
1376 * interface.c (if_dump_vty): BSDI/OS uses 64bit for interface
1379 * mtu_kvm.c: New file added.
1381 1999-11-27 Vladimir B. Grebenschikov <vova@express.ru>
1383 * kernel_socket.c (rtm_write): Set RTF_CLONING flag for
1384 route to the directly connected interface.
1386 1999-11-27 Kunihiro Ishiguro <kunihiro@zebra.org>
1388 * rt_socket.c: Delete USE_HOST_BIT definition.
1390 1999-11-21 Michael Handler <handler@sub-rosa.com>
1392 * rtread_getmsg.c: Undef some definition to resolve conflict.
1394 1999-11-27 Kunihiro Ishiguro <kunihiro@zebra.org>
1396 * kernel_socket.c (rtm_write): Change to use pre stored struct_dl
1397 value for gateway specification.
1399 1999-11-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1401 * rt_socket.c (kernel_rtm_ipv4): Even mask is 32 under IPv4 or
1402 128 under IPv6, don't use RTF_HOST.
1404 1999-11-21 Kunihiro Ishiguro <kunihiro@zebra.org>
1406 * Makefile.am (EXTRA_DIST): Add rtread_getmsg.c.
1408 1999-11-21 Michael Handler <handler@sub-rosa.com>
1410 * rtread_getmsg.c: Added for Solaris 2.6 support.
1412 1999-11-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1414 * rtread_sysctl.c (rtm_read_route): RTM_DELETE handling added.
1416 * rt_socket.c (kernel_read): Better BSD routing socket support.
1418 1999-10-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1420 * client_main.c: Disable making obsolete zebra test `client'
1423 1999-10-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1425 * zebra.c: Renamed to zserv.c.
1427 * zebra.h: Global definitions are moved to lib/zebra.h. Then
1430 1999-10-15 Jordan Mendelson <jordy@wserv.com>
1432 * if_ioctl.c: Add Linux 2.2.X's alias support and dynamic
1433 interface. Remove ugly MAX_INTERFACE handling codes.
1435 1999-09-17 Satosi KOBAYASI <kobayasi@north.ad.jp>
1437 * Fix serious bug of IPv6 route deletion.
1439 1999-09-11 Kunihiro Ishiguro <kunihiro@zebra.org>
1441 * ioctl.c (if_set_prefix): Properly set broadcast address.
1443 1999-09-04 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1445 * rib.c (rib_add_ipv6, rib_delete_ipv6): now protocol daemons
1446 can install connected route to kernel via zebra
1448 1999-08-24 VOP <vop@unity.net>
1450 * rib.c: Include "sockunion.h"
1452 1999-08-22 Kunihiro Ishiguro <kunihiro@zebra.org>
1454 * ipforward.h: New file.
1456 * zebra.h: Obsolete message ZEBRA_GET_ALL_INTERFACE,
1457 ZEBRA_GET_ONE_INTERFACE, ZEBRA_GET_HOSTINFO are deleted.
1459 1999-08-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1461 * zebra.h (ZEBRA_INTERFACE_ADDRESS_ADD):
1462 ZEBRA_INTERFACE_{ADD,DELETE} added.
1464 1999-08-15 Kunihiro Ishiguro <kunihiro@zebra.org>
1466 * rib.c: show ip route A.B.C.D works.
1468 * zebra.c (zebra_read_ipv4): Add ifindex to zebra messages.
1470 1999-08-12 Kunihiro Ishiguro <kunihiro@zebra.org>
1472 * zebra.h: New Zebra message ZEBRA_INTERFACE_{ADD,DELETE} added.
1474 1999-08-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1476 * interface.h: New file.
1477 * Makefile.am: Add interface.h
1479 1999-08-04 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1481 * redistribute.c (zebra_redistribute): give ifindex to client.
1483 1999-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
1485 * main.c (longopts): -k, --keep_kernel option added.
1487 1999-07-18 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1489 * rt_socket.c (rtm_write): forgot closing socket bug fixed.
1491 1999-07-17 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1493 * rib.c (show_ipv6_cmd): if rib is link show interface name.
1495 1999-07-17 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1497 * rt_socket.c (rtm_write): use sockaddr_dl when null gateway.
1499 1999-07-16 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1501 * rt_socket.c (rtm_write): ipv6 route table bug fixed.
1503 1999-07-15 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1505 * zebra.c (zebra_read_ipv6): read link prefix from ospf6 support
1507 1999-07-15 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1509 * rt_socket.c (kernel_rtm_ipv6): gate treatment bug fixed.
1511 1999-07-15 Kunihiro Ishiguro <kunihiro@zebra.org>
1513 * if_sysctl.c (ifm_read): Clear sockunion argument before fetching
1514 data. Suggested by "Chris P. Ross" <cross@eng.us.uu.net>
1516 1999-07-08 HEO SeonMeyong <seirios@Matrix.IRI.Co.Jp>
1518 * interface.c (if_tun_add): Add KAME's gif tunnel setting codes.
1520 1999-06-26 Kunihiro Ishiguro <kunihiro@zebra.org>
1522 * zebra.c (zebra_serv): Only accept loopback address connection.
1524 1999-06-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1526 * zebra.h (ZEBRA_ROUTE_EXTERNAL): Add zebra messages flags
1528 1999-06-17 Kunihiro Ishiguro <kunihiro@zebra.org>
1530 * ipforward_proc.c: ipforward_on () and ipforward_off () added.
1532 1999-06-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1534 * ipforward_proc.c (ipforward_ipv6): Check for IPv6 forwarding
1535 using /proc file system is added.
1537 1999-06-06 Kunihiro Ishiguro <kunihiro@zebra.org>
1539 * if_ioctl.c (if_get_index): Interface index set bug is fixed by
1540 adding #else at the middle of function. Suggested by David Luyer
1541 <luyer@ucs.uwa.edu.au>.
1543 1999-05-29 <kunihiro@zebra.org>
1545 * rt_ioctl.c: Comment out #include <linux/ipv6_route.h>.
1547 1999-05-26 Kunihiro Ishiguro <kunihiro@zebra.org>
1549 * zebra.h (ZEBRA_ROUTE_MAX): Add new define for the max value of
1552 1999-05-25 Patrick Koppen <koppen@rhrk.uni-kl.de>
1554 * rt_netlink.c (netlink_socket): Make netlink socket non-blocking.
1555 (netlink_parse_info): If errno is EWOULDBLOCK then continue to
1557 (netlink_talk): Likewise
1559 1999-05-17 <kunihiro@zebra.org>
1561 * redistribute.c (zebra_check_addr): Added for loopback address
1564 1999-05-15 Kunihiro Ishiguro <kunihiro@zebra.org>
1566 * rt_netlink.c (netlink_route_change): Tempolary bypass ipv6 route
1569 * Makefile.am (noinst_HEADERS): redistribute.h added.
1571 * redistribute.h: New file.
1573 1999-05-14 Stephen R. van den Berg <srb@cuci.nl>
1575 * zebra.c (show_table): Show all table configuration DEFUN.
1576 (config_table): Config table number DEFUN.
1578 * rt_netlink.c: Add support for multiple routing table.
1580 * rib.c (rib_weed_table): New function added for delete all
1581 routes from specified routing table.
1583 * main.c (signal_init): SIGTERM call sigint.
1584 (sigint): Loggging more better message.
1586 1999-05-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1588 * rt_netlink.c: Change log () to zlog ().
1590 1999-05-07 <kunihiro@zebra.org>
1592 * zebra.h (ZEBRA_ROUTE_OSPF6): Added for ospf6d route.
1594 1999-04-20 Kunihiro Ishiguro <kunihiro@zebra.org>
1596 * interface.c: Add `no ip address' command.
1598 1999-04-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1600 * rt_netlink.c (kernel_read): Function added for asynchronous
1601 zebra between kernel communication.
1603 1999-03-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1605 * rtread_sysctl.c (rtm_read): Fix address memcopy overrun bug.
1606 Reported by Achim Patzner <ap@bnc.net>.
1608 1999-03-03 Kunihiro Ishiguro <kunihiro@zebra.org>
1610 * Makefile.am: Install configuration sample with 600 permission.
1612 1999-03-02 Kunihiro Ishiguro <kunihiro@zebra.org>
1614 * Makefile.am: Add -I.. to INCLUDES.
1616 1999-02-18 Peter Galbavy <Peter.Galbavy@knowledge.com>
1618 * syslog support added
1620 1999-02-17 Peter Galbavy <Peter.Galbavy@knowledge.com>
1622 * if_sysctl.c (interface_list): allocated memory free when unknown
1623 ifm_type is returned.
1625 * ioctl.c (if_get_mtu): added SIOCGIFDATA treatment.
1627 1998-12-15 Magnus Ahltorp <map@stacken.kth.se>
1629 * interface.c: Header include added.
1631 1998-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1633 * rt.h (kernel_delete_ipv6): change int index to unsigned int index.
1635 1998-12-13 Kunihiro Ishiguro <kunihiro@zebra.org>
1637 * if_ioctl.c (interface_list_ioctl): interface flag must be
1638 checked before check addresses of the interface.
1640 1998-12-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1642 * Makefile.am (INCLUDES): add @INCLUDES@ for Linux IPv6.
1644 1998-10-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1646 * ioctl.c: Linux version before 2.1.0 need interface route setup.
1648 1998-09-15 HEO SeonMeyong <seirios@matrix.iri.co.jp>
1650 * change HYDRANGEA to KAME
1652 1998-09-01 Kunihiro Ishiguro <kunihiro@zebra.org>
1654 * if_ioctl.c (if_addr_ioctl): set address family for getting
1655 interface's address.
1656 (if_get_index): silently return when can't get interface's index.
1658 1998-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
1660 * main.c (main): batch mode option '-b' added.
1662 1998-08-16 Kunihiro Ishiguro <kunihiro@zebra.org>
1664 * ioctl.c (if_set_prefix): add `ip address IPV4ADDR' command.
1665 * interface.c (shutdown_if): add interface shutdown and no
1668 1998-08-12 Kunihiro Ishiguro <kunihiro@zebra.org>
1670 * rib.c (rib_add_ipv6): delete rib_add_in6.
1672 1998-07-27 Kunihiro Ishiguro <kunihiro@zebra.org>
1674 * main.c: retain flag is added.
1676 1998-07-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1678 * rtable.[ch]: merged with rib.[ch]
1680 1998-07-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1682 * connected.h: renamed from ifa.h.
1684 1998-06-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1686 * rename if.c to interface.c
1687 * rename ifa.c to connected.c
1689 * Porting to Debian GNU/Linux 2.0 (hamm).
1691 1998-06-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1693 * rt_netlink.c: renamed from krt_netlink.c
1696 * rt_kvm.c: deleted.
1697 * rtread_getmsg.c: deleted.
1699 1998-06-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1701 * if.c (multicast): add multicast flag [un]set fucntion.
1703 1998-05-19 Yamshita TAKAO <jargon@lares.dti.ne.jp>
1705 * rt_socket.c: Modify for compile on Solaris, but dont't work it.
1706 rt_socket.c have some undefined function, so add directive "IMPLEMENT"
1708 1998-05-18 Yamshita TAKAO <jargon@lares.dti.ne.jp>
1710 * zebra.c: Modify for compile on Solaris.
1712 1998-05-03 Kunihiro Ishiguro <kunihiro@zebra.org>
1714 * main.c: change CONFDIR to SYSCONFDIR.
1716 1998-05-01 Kunihiro Ishiguro <kunihiro@zebra.org>
1718 * .cvsignore: added.
1720 1998-04-02 Kunihiro Ishiguro <kunihiro@zebra.org>
1722 * client.c: moves to ../lib.
1724 1998-03-30 Kunihiro Ishiguro <kunihiro@zebra.org>
1726 * if_ioctl.c (if_get_addr): Change address copy from memcopy() to
1727 structure assignment.
1729 1998-03-30 URA Hiroshi <ura@yamato.ibm.co.jp>
1731 * if_sysctl.c (ifm_interface_add): sdl->sdl_data copy bug fixed.
1733 1998-02-23 "Hannes R. Boehm" <hannes@boehm.org>
1735 * if.c (if_init): add config_exit_cmd and config_help_cmd.
1737 1998-01-24 Kunihiro Ishiguro <kunihiro@zebra.org>
1739 * rt_ioctl.c (route_ioctl): EPERM treatment added.
1741 1998-01-05 Kunihiro Ishiguro <kunihiro@zebra.org>
1743 * rt_socket.c (kernel_read): communication port zebra between
1744 kernel is now handled by kernel_read.
1746 1998-01-02 Kunihiro Ishiguro <kunihiro@zebra.org>
1748 * main.c (main): zebra [-P port] can specify vty port number.
1750 1997-12-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1752 * zebra.c: change select will be block.
1754 1997-12-04 Kunihiro Ishiguro <kunihiro@zebra.org>
1756 * add static route treatment.
1758 1997-11-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1760 * rt_netlink.c: add netlink support over GNU/Linux system.
1762 1997-11-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1764 * all inet_addr is changed to inet_aton.
1766 * zebra.c (ip_route): add ip route command for static routes.
1768 1997-11-20 Kunihiro Ishiguro <kunihiro@zebra.org>
1770 * if.c (if_flag_dump): Linux port of if_flag_dump and _vty.
1772 1997-11-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1774 * if.c: add interface command.
1776 1997-11-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1778 * ipforward_proc.c : Now works on Linux.
1780 1997-10-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1782 * command.c : add completion feature.
1784 1997-10-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1786 * vty.c (vty_command): add vty interface.
1788 1997-10-13 Kunihiro Ishiguro <kunihiro@zebra.org>
1790 * zebra.c: add verbose mode.
1792 1997-10-12 SonMyong Ho <s-ho@Matrix.IRI.Co.Jp>
1794 * Hydrangea for FreeBSD supported
1795 * in.h: add some prototype.
1797 1997-10-11 Kunihiro Ishiguro <kunihiro@zebra.org>
1799 * rt_socket.c and rtread.c completely rewritten.
1801 1997-10-05 Kunihiro Ishiguro <kunihiro@zebra.org>
1803 * rt_socket.c: rename kernel_sock to routing_socket
1805 1997-10-04 Kunihiro Ishiguro <kunihiro@zebra.org>
1807 * if.c (if_new): interface structure change from linklist to vector.
1809 1997-10-03 Kunihiro Ishiguro <kunihiro@zebra.org>
1811 * vector.c (vector_init): create vector related function
1813 1997-09-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1815 * Makefile.in: add tags target
1817 * start IPv6 support for INRIA FreeBSD.