blob: 0aabc3c21793870d77b003d8c0ae1cabbd1dc4fe [file] [log] [blame]
Andrew J. Schorr55edb0d2008-01-11 15:57:13 +000012008-01-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
2
3 * ioctl.c: If HAVE_BSD_LINK_DETECT is defined, include <net/if_media.h>
4 (if_get_flags) Remove debug messages about BSD link state.
5 * kernel_socket.c: (bsd_linkdetect_translate) If link state
6 is unknown, we should set the IFF_RUNNING flag.
7
Andrew J. Schorrc543a172008-01-10 15:24:32 +000082008-01-10 Ingo Flaschberger <if@xip.at>
9
10 * ioctl.c: (if_get_flags) If HAVE_BSD_LINK_DETECT, use the SIOCGIFMEDIA
11 ioctl to ascertain link state.
12 * kernel_socket.c: (bsd_linkdetect_translate) New function to
13 map the ifm_data.ifi_link_state value into the IFF_RUNNING flag.
14 (ifm_read) Call bsd_linkdetect_translate to fix the IFF_RUNNING
15 flag before calling if_flags_update.
16
Andrew J. Schorr3f087672008-01-08 20:12:46 +0000172008-01-08 Michael Larson <mike@vyatta.com>
18
19 * zebra_rib.c: (nexthop_active_check) Replace if_is_up with
20 if_is_operative to solve problems with static interface
21 routes not behaving properly with link-detect.
22
Denis Ovsienko6ce80bd2007-11-12 14:55:01 +0000232007-11-12 Denis Ovsienko
24
25 * connected.c: (connected_up_ipv4, connected_down_ipv4,
26 connected_up_ipv6, connected_down_ipv6) Collect all changed
27 connected routes closest possible to the RIB work queue, so
28 that the rest can be revalidated correctly.
29
Denis Ovsienko5619f562007-10-24 13:13:21 +0000302007-10-24 Denis Ovsienko
31
32 * kernel_socket.c: (rtm_read) we used to ignore own messages,
33 but the RIB debug commit broke it for IPv6 case (reported
34 by Milan Kocian). Fixed.
35
Denis Ovsienkoa3aaf5b2007-10-04 10:49:21 +0000362007-10-04 Denis Ovsienko
37
38 * zebra_rib.c: (rib_process) escape from the nexthop
39 iteration cycle earliest possible to save CPU time.
40
Denis Ovsienkof304cb42007-10-03 12:27:16 +0000412007-10-03 Denis Ovsienko
42
43 * zebra_rib.c: (rib_process, rib_link, rib_addnode,
44 rib_unlink, rib_delnode) log IPv6 prefixes same well
45 as IPv4 ones are logged.
46
Denis Ovsienko2d844522007-09-14 11:31:55 +0000472007-09-14 Denis Ovsienko
48
49 * rt_socket.c: (kernel_rtm_ipv4) Use lookup() instead of
50 LOOKUP/mes_lookup() for rtm_type_str, as this is more
51 appropriate for sparse code-spaces (#401).
52 * kernel_socket.c: (rtm_read, rtmsg_debug): Idem.
53 * kernel_socket.[ch]: We don't need rtm_type_str_max any more.
Denis Ovsienko91b73512007-09-14 13:31:52 +000054 * main.c: (main) Don't call rib_sweep_route() before the
55 pidfile is acquired, this fixes bug #402.
Denis Ovsienko96934e62007-09-14 14:56:28 +000056 * zserv.h: Dropped old_pid, since it's useless now. This
57 fixes bug #381.
58 * main.c: (main) Idem.
59 * test_main.c: (main) Idem.
60 * kernel_socket.c: (rtm_read) Idem.
Denis Ovsienko2d844522007-09-14 11:31:55 +000061
Denis Ovsienkobd6c86d2007-09-12 15:24:27 +0000622007-09-12 Denis Ovsienko
63
64 * rt_socket.c: (kernel_rtm_ipv4) prefix_buf could be passed
65 to zlog_err() uninitialized with debug disabled. Fixed.
66
Denis Ovsienko882968e2007-09-06 14:34:41 +0000672007-09-06 Denis Ovsienko
68
69 * rtread_sysctl.c: (route_read) Set RTF_DONE on the routing
70 messages when fetching initial kernel FIB, so rtm_read()
71 doesn't skip them.
72
Denis Ovsienkoa13663a2007-08-21 16:12:40 +0000732007-08-21 Denis Ovsienko
74
75 * ioctl_solaris.c: (if_get_mtu) Don't break things if either
76 IPv6 was disabled at compile time or the current interface
77 hasn't it enabled.
Denis Ovsienko1ba27562007-08-21 16:15:39 +000078 * kernel_socket.c: (ifm_read) Don't forget to call if_get_mtu()
79 for updated interfaces.
Denis Ovsienkoa13663a2007-08-21 16:12:40 +000080
Denis Ovsienko6da59802007-08-17 14:16:30 +0000812007-08-17 Denis Ovsienko
82
83 * kernel_socket.c: (rtm_read) Ignore any routing socket messages
84 without RTF_DONE flag set, as they are just noise for us.
85
Denis Ovsienko03e232a2007-08-14 09:46:48 +0000862007-08-14 Denis Ovsienko
87
88 * zebra_rib.c: (nexthop_active_update) Added a comment
Denis Ovsienkof304cb42007-10-03 12:27:16 +000089 and rewrote nexthop iteration.
Denis Ovsienko03e232a2007-08-14 09:46:48 +000090
Denis Ovsienkodc958242007-08-13 16:03:06 +0000912007-08-13 Denis Ovsienko
92
93 * kernel_socket.c: normalize rtm_type_str so it can be handled
94 by LOOKUP macro
95 * kernel_socket.c: (rtm_read) don't ignore self-generated
96 routing messages, so we can debug them; make use of
97 ZEBRA_ERR_RTNOEXIST; output more details in debug log.
98 * kernel_socket.c: (rtmsg_debug) make use of LOOKUP macro
99 * kernel_socket.h: let the world know about rtm_type_str[_max]
100 * rib.h: 3 more debugging functions and 5 return codes
101 * rt_socket.c: (kernel_rtm_ipv4) dump IP prefix and masklen;
102 complain about strange rtm_write() return values
103 * zebra_rib.c: (rib_lookup_ipv4_route, rib_dump,
104 rib_lookup_and_dump) --- new functions; more comments;
105 more debug logging
106
vize068fd772007-08-10 06:25:20 +00001072007-08-10 Emmanuel Vize <emmanuel.vize@6wind.com>
108
109 * rt_netlink.c: (netlink_interface_addr) Use the appropriate field length for the address
110 (acknowledge Andy's comment).
111
Paul Jakma93bdada2007-08-06 19:25:11 +00001122007-08-06 Denis Ovsienko
113
114 * zebra_rib.c: (general) Add extra debug logging for RIB and
115 RIB queue.
116
Greg Troxelf76594a2007-08-02 14:07:07 +00001172007-08-02 Denis Ovsienko
118
119 * rt_socket.c (kernel_rtm_ipv4): Only call rtm_write when changes
120 are intended. Don't set FIB flag on failed additions (such as
121 occur with multiple paths.
122
Paul Jakma0b8c4f12007-06-27 11:12:38 +00001232007-06-25 Denis Ovsienko
124
125 * zebra_rib.c: (rib_add_ipv4_multipath) Loop through RIB
126 is using 'same' variable, but RIB_ENTRY_REMOVED check
127 is testing the constant 'rib' variable, fix. Impact
128 unknown at this point.
129
Andrew J. Schorr09303312007-05-30 20:10:34 +00001302007-05-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
131
132 * zebra_routemap.c: (route_set_src_compile) Use '#ifdef HAVE_IPV6'
133 as needed.
134 * zebra_vty.c: (vty_show_ip_route_detail, vty_show_ip_route) Use
135 '#ifdef HAVE_IPV6' as needed.
136 (show_ip_protocol) Move function definition outside of
137 '#ifdef HAVE_IPV6' section.
138
Andrew J. Schorr7ab62c52007-05-17 15:00:41 +00001392007-05-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
140
141 * kernel_socket.c: (ifam_read_mesg) Grab RTA_DST and RTA_GATEWAY
142 addresses from the message (if present, which seems unlikely on
143 current BSD platforms), and show them in the debug messages.
144 Also, add ifam_flags to the debug messages.
145 (ifam_read) If the interface is point-to-point, then the RTA_BRD
146 address should be treated as a peer address.
147
Paul Jakma7514fb72007-05-02 16:05:35 +00001482007-05-01 David L Stevens <dlstevens@us.ibm.com>
149
150 * (general) These changes collectively add route-map and
151 prefix-list support to zebra and fix a bug in "show
152 route-map" (with no argument).
153 * connected.c: (connected_up_ipv4) added src preference argument
154 to rib_add_ipv4()
155 * kernel_socket.c: (rtm_read) ditto
156 * main.c: added prefix list initialization
157 * Makefile.am: added zebra_routemap.c source file
158 * rib.h: added generic address union "g_addr" and use in
159 existing places that had an explicit union.
160 Added "src" to struct nexthop.
161 Added preferred src arg to nexthop_ipv4_add and rib_add_ipv4.
162 * rt_netlink.c: (netlink_routing_table) set preferred source on
163 netlink messages.
164 (netlink_route_change) ditto
165 (netlink_route_multipath) ditto.
166 * rtread_getmsg.c: (handle_route_entry) added (NULL) src to
167 rib_add_ipv4() call.
168 * rtread_proc.c: (proc_route_read) ditto
169 * zebra_rib.c: (nexthop_ipv4_add) add src argument.
170 (nexthop_ipv4_ifindex_add) ditto
171 (rib_add_ipv4) ditto
172 (nexthop_active_check) Add route-map processing.
173 * zebra_routemap.c: new file for zebra route-map commands.
174 * zebra_vty.c: (ip_protocol_cmd) Apply route-map to protocol
175 (vty_show_ip_route_detail) added "src" printing
176 (vty_show_ip_route) ditto
177 (show_ip_protocol_cmd) new command, list routemaps.
178 (config_write_protocol) write out routemap protocl config.
179 (zebra_vty_init) Install the new routemap protocol commands.
180 * zserv.c: (zread_ipv4_add) added (NULL) src arg
181 (zebra_init) init zebra route-maps.
182 * zserv.h: add zebra_route_map_init
183
Paul Jakmabd9da7f2007-04-29 16:50:46 +00001842007-04-29 Paul Jakma <paul.jakma@sun.com>
185
186 * ioctl{_solaris,}.c: (if_get_mtu) Fix missing ; in last commit.
Paul Jakmae8eb8342007-04-29 17:32:08 +0000187 * if_ioctl_solaris.c: (if_get_index) Fix bogus argument passed
188 to lifreq_set_name().
Paul Jakmabd9da7f2007-04-29 16:50:46 +0000189
Paul Jakmaf5e004f2007-04-10 19:43:43 +00001902007-04-10 Paul Jakma <paul.jakma@sun.com>
191
192 * ioctl{_solaris,}.c: (if_get_mtu) Ping clients via
193 zebra_interface_up_update if MTU is changed.
194
Paul Jakmad9d00a62007-04-10 19:28:04 +00001952007-04-08 Paul Jakma <paul.jakma@sun.com>
196
197 * {ioctl,kernel}_null.c: Install of IP address should
198 reflect back to zebra via kernel_address_add..., makes
199 testzebra more useful.
Paul Jakmad9a18f12007-04-10 19:30:20 +0000200 * interface.c: (if_delete_update) Address removal triggered
201 by kernel shouldn't remove configured IPv4 address from connected
202 list.
Paul Jakmad9d00a62007-04-10 19:28:04 +0000203
Paul Jakma6dc686a2007-04-10 19:24:45 +00002042007-04-07 Paul Jakma <paul.jakma@sun.com>
205
206 * redistribute.c: (zebra_check_addr) Don't redistribute routes
207 to IPv4 link-local prefixes, fixes bug #351.
208 * redistribute.h: Export zebra_check_addr.
209 * router-id.c: (router_id_bad_address) re-use zebra_check_addr
210 rather than implementing similar logic.
211
Paul Jakma65022082007-03-06 13:43:05 +00002122007-03-06 Paul Jakma <paul.jakma@sun.com>
213
214 * kernel_socket.c: (ifam_read) Do not update interface metric on
215 receipt of NEW/DEL ADDR messages, bogus as: a) some systems
216 dont include iface metric for address events b) we didn't
217 update clients either. Initial diagnosis by Eugene Grosbein.
218
Paul Jakmaff1dd552007-02-26 17:11:45 +00002192007-02-26 Robert Olsson <Robert.Olsson@data.slu.se>
220
221 * irdp_main.c: (irdp_send_thread) Skip non-AF_INET addresses,
222 i.e. do not try interpret IPv6 addresses as IPv4 addresses
223 to broadcast in IRDP announcements..
224
Andrew J. Schorrfb6724a2006-12-13 15:44:15 +00002252006-12-13 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
226
227 * if_ioctl_solaris.c: (if_get_addr) For IPv6, stop assuming
228 that all IFF_POINTOPOINT have prefixlen of IPV6_MAX_BITLEN.
229 Instead, always try the SIOCGLIFSUBNET ioctl; if that fails,
230 then we fall back to IPV6_MAX_BITLEN for PtP interfaces.
231
Andrew J. Schorre4529632006-12-12 19:18:21 +00002322006-12-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
233
234 * connected.c: (connected_up_ipv4, connected_down_ipv4,
235 connected_up_ipv6, connected_down_ipv6) Simplify logic using the
236 new CONNECTED_PREFIX macro.
237 (connected_add_ipv4) Set prefixlen in destination addresses (required
238 by the CONNECTED_PREFIX macro). Use CONNECTED_PEER macro instead
239 of testing for IFF_POINTOPOINT. Delete invalid warning message.
240 Warn about cases where the ZEBRA_IFA_PEER is set but no
241 destination address has been supplied (and turn off the flag).
242 (connected_add_ipv6) Add new flags argument so callers may set
243 the ZEBRA_IFA_PEER flag. If peer/broadcast address satisfies
244 IN6_IS_ADDR_UNSPECIFIED, then reject it with a warning.
245 Set prefixlen in destination address so CONNECTED_PREFIX will work.
246 * connected.h: (connected_add_ipv6) Add new flags argument so
247 callers may set the ZEBRA_IFA_PEER flag.
248 * interface.c: (connected_dump_vty) Use CONNECTED_PEER macro
249 to decide whether the destination address is a peer or broadcast
250 address (instead of checking IFF_BROADCAST and IFF_POINTOPOINT).
251 * if_ioctl.c: (if_getaddrs) Instead of setting a peer address
252 only when the IFF_POINTOPOINT is set, we now accept a peer
253 address whenever it is available and not the same as the local
254 address. Otherwise (no peer address assigned), we check
255 for a broadcast address (regardless of the IFF_BROADCAST flag).
256 And must now pass a flags value of ZEBRA_IFA_PEER to
257 connected_add_ipv4 when a peer address is assigned.
258 The same new logic is used with the IPv6 code as well (and we
259 pass the new flags argument to connected_add_ipv6).
260 (if_get_addr) Do not bother to check IFF_POINTOPOINT: just
261 issue the SIOCGIFDSTADDR ioctl and see if we get back
262 a peer address not matching the local address (and set
263 the ZEBRA_IFA_PEER in that case). If there's no peer address,
264 try to grab SIOCGIFBRDADDR regardless of whether IFF_BROADCAST is set.
265 * if_ioctl_solaris.c: (if_get_addr) Just try the SIOCGLIFDSTADDR ioctl
266 without bothering to check the IFF_POINTOPOINT flag. And if
267 no peer address was found, just try the SIOCGLIFBRDADDR ioctl
268 without checking the IFF_BROADCAST flag. Call connected_add_ipv4
269 and connected_add_ipv6 with appropriate flags.
270 * if_proc.c: (ifaddr_proc_ipv6) Must pass new flags argument to
271 connected_add_ipv6.
272 * kernel_socket.c: (ifam_read) Must pass new flags argument to
273 connected_add_ipv6.
274 * rt_netlink.c: (netlink_interface_addr) Copy logic from iproute2
275 to determine local and possible peer address (so there's no longer
276 a test for IFF_POINTOPOINT). Set ZEBRA_IFA_PEER flag appropriately.
277 Pass new flags argument to connected_add_ipv6.
278 (netlink_address) Test !CONNECTED_PEER instead of if_is_broadcast
279 to determine whether the connected destination address is a
280 broadcast address.
281
Paul Jakma3c0755d2006-12-08 00:53:14 +00002822006-12-08 Piotr Chytla <pch@packetconsulting.pl>
283
284 * zebra_rib.c: (static_install_ipv{4,6}) Case where existing
285 RIB is updated must explicitely rib_addqueue the route_node,
286 to ensure the update actually takes effect.
287
Greg Troxel9458b812006-09-13 12:13:08 +00002882006-09-13 Tom Everett <tom@khubla.com>
289
290 * kernel_socket.c (rtm_type_str): ifdef RTM_OLD{ADD,DEL} to
291 compile on systems that no longer define them.
292
Paul Jakmaf28b0e52006-08-06 15:57:59 +00002932006-08-06 Paul Jakma <paul.jakma@sun.com>
294
295 * interface.h: (ifstat_update_proc) declaration should match
296 ifstat_update_sysctl really, which is to not return status, as
297 such status is not used anywhere.
298 * if_{proc,sysctl}.c: Make ifstat_update_* definitions and return values
299 consistent with each other and their declarations, ie:
300 (void) (*) (void).
Paul Jakma66c454f2006-08-06 16:02:43 +0000301 * rtadv.h: depends on interface.h, so should include it.
Paul Jakmaf28b0e52006-08-06 15:57:59 +0000302
Paul Jakma7e4bcdc2006-08-04 06:14:13 +00003032006-08-04 Paul Jakma <paul.jakma@sun.com>
304
305 * misc_null.c: Add ifstat_update_sysctl, add another required
306 header.
307
Andrew J. Schorra6974fe2006-08-02 16:47:03 +00003082006-08-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
309
310 * misc_null.c: Must include header files to get older versions of gcc
311 to process the #pragma statements properly.
312
Paul Jakma36943742006-08-04 06:18:04 +00003132006-08-01 Paul Jakma <paul.jakma@sun.com>
314
315 * irdp_main.c: (irdp_advertisement) free the stream here, when done,
316 right under where it was allocated so it's blindingly obvious
317 it's correct. This possibly fixes a very slow leak of streams in
318 zebra.
319 * irdp_packet.c: (send_packet) don't free the stream here as
320 it's hard to tell if right, plus an error case seemed to
321 returning before free anyway.
322
Paul Jakma457eb9a2006-07-27 19:59:58 +00003232006-07-27 Paul Jakma <paul.jakma@sun.com>
324
325 * {ioctl,kernel}_null.c: Dummy/Null kernel method implementations,
326 useful for testing zebra code that calls such methods.
327 * {redistribute,misc}_null.c: Dummy/Null methods, as above. But
328 for zclient, and for various misc functions.
329 * test_main.c: Test harness for zebra, currently just to test the
330 RIB.
331 * Makefile.am: Build testzebra using above.
Paul Jakma6d691122006-07-27 21:49:00 +0000332 * debug.{c,h}: Add 'debug zebra rib' and 'debug zebra rib queue'.
333 * rib.h: (struct rib) Add a route_node rn_status flag field,
334 this has to be copied every time head RIB of a route_node
335 changes.
336 Remove the rib lock field, not needed - see below.
337 Add a status field for RIB-private flags.
Paul Jakma457eb9a2006-07-27 19:59:58 +0000338 * zebra_rib.c: Add a global for the workqueue hold time, useful
339 for testing.
Paul Jakma6d691122006-07-27 21:49:00 +0000340 (general) Fix for bug #268. Problem originally detailed by
341 Simon Bryden in [quagga-dev 4001].
342 Essentially, add/delete of a RIB must happen /before/ the
343 queue. Best-path selection (ie rib_process) and reaping of
344 freed RIBs can then be done after queueing. Only the route_node
345 is queued - no important RIB state (i.e. whether a RIB is to be
346 deleted) is queued.
347 (struct zebra_queue_node_t) Disappears, no longer need to
348 track multiple things on the queue, only the route_node.
349 (rib_{lock,unlock}) removed, RIBs no longer need to be
350 refcounted, no longer queued.
351 (rib_queue_qnode_del) Removed, deleted RIBs no longer deleted
352 via the queue.
353 (rib_queue_add_qnode) deleted
354 (rib_queue_add) Only the route_node is queued for best-path
355 selection, we can check whether it is already queued or
356 not and avoid queueing same node twice - struct rib * argument
357 is not needed.
358 (rib_link/unlink) (un)link RIB from route_node.
359 (rib_{add,del}node) Front-end to updates of a RIB.
360 (rib_process) Reap any deleted RIBs via rib_unlink.
361 Unset the route_node 'QUEUED' flag.
362 (General) Remove calls to rib_queue_add where add/del node was
363 called - not needed, update calls where not.
364 Ignore RIB_ENTRY_REMOVEd ribs in loops through route_nodes
Paul Jakma457eb9a2006-07-27 19:59:58 +0000365
Paul Jakma171eee32006-07-27 16:11:02 +00003662006-07-27 Rumen Svobodnikov <rumen@telecoms.bg>
367
368 * connected.c: (connected_up_ipv4) interface connected routes always
369 go to table main (or otherwise they cannot be used by linux as
370 nexthops)
371 * zserv.c: (zread_ipv4_add) send route to the correct routing table
372 * zebra_rib.c (static_install_ipv4) set routing table
373
Paul Jakma27b47252006-07-02 16:38:54 +00003742006-07-02 Paul Jakma <paul.jakma@sun.com>
375
376 * rt_netlink.c: (netlink_interface_addr) Fix CID #104, can not
377 proceed if addr is NULL.
378 * zebra_rib.c: (static_add_ipv6) Fix CID #18, double check
379 required arguments are supplied for the given nexthop type.
380
Paul Jakma630c97c2006-06-15 12:48:17 +00003812006-06-15 Paul Jakma <paul.jakma@sun.com>
382
383 * interface.c: (if_flag_dump_vty) redundant code, remove.
384 (if_dump_vty) use libzebra if_flag_dump.
Paul Jakma74ecdc92006-06-15 18:10:47 +0000385 (ip_address_uninstall) Unset the configured flag.
386 * connected.c: (connected_same) new helper, check whether
387 two connected are same.
388 (connected_implicit_withdraw) new helper, consolidation of
389 existing code in connected_add_ipv{4,6}.
390 Try filter out unneeded Zserv address delete/adds when
391 address is exact same.
392 Where old address is implicitely removed, be sure to preserve
393 the IFC_CONFIGURED flag if set, fixes bug where configured
394 addresses were being lost on FreeBSD (Andrew Schorr).
Paul Jakma630c97c2006-06-15 12:48:17 +0000395
Andrew J. Schorr9c378512006-05-21 04:04:49 +00003962006-05-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
397
398 * connected.c: (connected_withdraw) Do not delete the connected
399 address if the ZEBRA_IFC_CONFIGURED flag is set.
400 (connected_add_ipv4,connected_add_ipv6) Before calling
401 connected_withdraw, unset the ZEBRA_IFC_CONFIGURED flag
402 on the superseded connected structure.
403
Andrew J. Schorr0f38dc42006-05-19 13:53:23 +00004042006-05-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
405
406 * connected.c: (connected_add_ipv4,connected_add_ipv6) If the
407 new struct connected matches an already existing one
408 (that will consequently be removed by connected_withdraw),
409 then be sure to preserve the ZEBRA_IFC_CONFIGURED flag.
410
Andrew J. Schorr55196042006-05-17 15:04:59 +00004112006-05-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
412
413 * kernel_socket.c: (ifam_read_mesg) Improve debug message
414 to show the IP address.
415
Paul Jakma66859782006-05-15 17:00:37 +00004162006-05-15 Paul Jakma <paul.jakma@sun.com>
417
418 * zserv.c: (general) Remove the private zebra_command_str
419 in favour of newly added libzebra zserv_command_string.
420
Paul Jakmabeb56332006-05-11 13:28:05 +00004212006-05-11 Paul Jakma <paul.jakma@sun.com>
422
423 * interface.c: (if_delete_update) route_node_lookup may return
424 NULL, should fix Coverity CID #31.
425
Paul Jakmae6d7d052006-03-30 13:32:09 +00004262006-02-09 Paul Jakma <paul.jakma@sun.com>
427
428 * rib.h: (struct {rib,nexthop}) Rearrange fields to avoid
429 needless padding.
430 (struct rib) Remove the indirect pointer, not used anywhere!
431
paul3a570c82006-02-02 17:27:13 +00004322006-02-02 Paul Jakma <paul.jakma@sun.com>
433
434 * interface.c: (if_dump_vty) move flags to their line, neater.
435
paula1038a12006-01-30 14:08:51 +00004362006-01-30 Paul Jakma <paul.jakma@sun.com>
437
438 * zebra_rib.c: (rib_process) Fourth time lucky on this jinxed
439 commit, last commit had a hole that could allow connected
440 route selection to escape beyond the connected route logic.
441 This time I cross-checked with Gunnar first. ;)
442
paula8d9c1f2006-01-25 06:31:04 +00004432006-01-25 Gunnar Stigen <gunnar.stigen@axxessit.no>
444
445 * zebra_rib.c: (rib_process) Application of Gunnar's earlier
446 metric selection RIB change included incorrect tidy-ups made
447 by commiter. Fix. (NB: any errors here are again due to paul).
448
paul5c78b3d2006-01-25 04:31:40 +00004492006-01-25 Paul Jakma <paul.jakma@sun.com>
450
451 * (general) More solaris PF_ROUTE hacks. The IFF_UP mangling
452 for solaris was incomplete on the PF_ROUTE side. fix it.
453 This changeset generally uglifies things. For some future
454 work I'd like to see the state changes seperated out from
455 the details of the code. Differences between systems might
456 then be slightly easier to implement without convoluted
457 hacks.
458 Changes should be specific to Solaris mostly, however
459 also tested on FreeBSD 6.
460 * if_ioctl_solaris.c: (interface_list_ioctl) ignore ~IFF_UP
461 interfaces, we'll hear about them when/if interface goes up
462 through NEWADDR.
463 Update flags explicitely at end of it to kick mangling.
464 * ioctl_solaris.c: (if_mangle_up) removed to interface.c, in
465 kind.
466 (lifreq_set_name) more convenient to take the string, than
467 the ifp.
468 (if_get_flags_direct) new convenience function, returns
469 the actual flags. Used during bootstrap in if_ioctl_solaris.c
470 to peek at flags of logical interfaces to see whether or
471 not to ignore them.
472 (if_get_flags) ENXIO means it's gone, poke out IFF_UP and
473 kick flags update.
474 (if_{un,}set_flags) flags argument should be 64bit.
475 * ioctl.{c,h}: flags argument should be 64bit.
476 * interface.h: Add a 'primary_state' flag to struct zebra_if on
477 SUNOS_5.
478 Export if_flags_update.
479 * interface.c: (if_flags_mangle) moved over in kind from
480 ioctl_solaris.c. Nasty kludge to try get IFF_UP right, as
481 much as is possible. Also keep track of the actual IFF_UP
482 value for the primary interface, so we can know when the ifp
483 must be deleted.
484 (if_flags_update) Take a new interface flags value, apply it
485 to the interface, and take whatever actions are required due
486 to flag transitions.
487 (if_refresh) flag state change logic is moved out to
488 previous. Just call if_get_flags, which will end up using
489 previous to effect the update of flags.
490 (if_flag_dump_vty) IFF_IPV{4,6} aren't interesting, VIRTUAL
491 and NOXMIT are though.
492 * kernel_socket.c: (ifm_read) Down->Down transitions shouldn't
493 create ifp, for non-IFANNOUNCE systems.
494 Use if_flags_update to update flags.
495 flag transition logic is now handled automatically through
496 if_flags_update.
497 (ifam_read) Better to call if_refresh *after* adding
498 connected addresses, as connected count affects IFF_UP on
499 IFF_UP-mangled systems.
500 On Solaris, Up->Down due to DELADDR means we need to delete
501 the ifp - the IFINFO might already have been and gone.
502 * rt.h: include other dependent headers.
503
paule8e19462006-01-19 20:16:55 +00005042006-01-19 Paul Jakma <paul.jakma@sun.com>
505
506 * (general) various miscellaneous compiler warning fixes.
507 Remove redundant break statements from switch clauses
508 which return.
509 Remove stray semi-colons which cause empty-statement
510 warnings.
511 * main.c: (sighup) remove private declaration of external
512 function.
513 (main) return from main, not exit, cause it annoys SOS.
514
paulaf887b52006-01-18 14:52:52 +00005152006-01-18 Gunnar Stigen <gunnar.stigen@axxessit.no>
516
517 * zebra_rib.c: Take interface metric into account.
518
pauld34b8992006-01-17 18:03:04 +00005192006-01-17 Paul Jakma <paul.jakma@sun.com>
520
521 * kernel_socket.c: (ifam_read) Read metric from RTM_NEWADDR.
522 If interface is an alias, pass the alias as a label for
523 connected_add_ipv{4,6}.
524 * rt_netlink.c: (netlink_interface_addr) print out
525 IFA_CACHEINFO info, if present, when debugging kernel
526 messages.
527
paulc7133002006-01-17 17:56:18 +00005282006-01-17 Gunnar Stigen <gunnar.stigen@axxessit.no>
529
530 * connected.c: (connected_up_ipv{4,6}) Include interface metric on
531 connected routes.
paul61f42ae2006-01-17 17:59:11 +0000532 * if_ioctl.c: (if_getaddrs) Be defensive about assuming
533 that struct ifaddrs will have ifa_addr filled in.
paulc7133002006-01-17 17:56:18 +0000534
paulc1b98002006-01-16 01:54:02 +00005352006-01-16 Paul Jakma <paul.jakma@sun.com>
536
537 * zserv.c: Read/write updated Zserv header.
538
paulc77d4542006-01-11 01:59:04 +00005392006-01-11 Paul Jakma <paul.jakma@sun.com>
540
541 * zserv.c: (zsend_interface_{add,delete,update}) if flags are
542 8 bytes now, update to write out with stream_putq.
543
gdt6083e1f2005-12-29 15:59:57 +00005442005-12-29 Greg Troxel <gdt@fnord.ir.bbn.com>
545
gdte14b7fc2005-12-29 16:04:53 +0000546 * kernel_socket.c: remove dead code (from David Young).
547
gdt6083e1f2005-12-29 15:59:57 +0000548 * rt_socket.c (kernel_rtm_ipv4): Use AF_INET rather than AF_UNSPEC
549 for mask. From David Young.
550
paul89368d92005-11-26 09:14:07 +00005512005-11-26 Paul Jakma <paul.jakma@sun.com>
552
553 * connected.{c,h}: (connected_add_ipv6) label should have
554 const qualifier, fix declarations.
555
paulec1a4282005-11-24 15:15:17 +00005562005-11-24 Paul Jakma <paul.jakma@sun.com>
557
558 * kernel_socket.h: New header for functions exported to sysctl
559 methods.
560 * kernel_socket.c: include previous.
561 Remove static qualifier from couple of functions which are
562 used by sysctl methods.
563 Add a workaround for a bogus gcc warning to the RTA_ macros.
564 * Makefile.am: Add kernel_socket.h to noinst_HEADERS
565 * if_sysctl.c: include rt.h and kernel_socket.h and remove
566 redundant prototypes.
567 * rtread_sysctl.c: ditto.
568 (route_read) fix mismatch of return values.
569 * {rt,zserv,rib}.h: Include lib headers depended on.
570
paul6621ca82005-11-23 13:02:08 +00005712005-11-23 Paul Jakma <paul.jakma@sun.com>
572
573 * (general) fix some small compile errors, and mark several
574 functions as static.
575 * kernel_socket.c: (ifan_read) should be static.
576 fix missing brackets.
577 (ifm_read,ifam_read,rtm_read_mesg,kernel_read) Make static
578 (ifam_read_mesg) make static. fix incorrect variable name.
579 (rtm_read) make static. Fix call to rib_delete_ipv4 which
580 should be rib_delete_ipv6.
581 (routing_socket,kernel_init) should be static. Void argument
582 should be specified as such, not left incomplete.
583 * rt_netlink.c: rt.h should be included, contains prototypes of
584 exported functions.
585 (kernel_delete_ipv6_old) fix sign of index argument.
586 * rt_socket.c: Exact same as previous. Also, make various
587 functions static.
588 * rtread_getmsg.c: Include zserv.h, which prototypes
589 route_read. Make static.
590 * rtread_sysctl.c: zserv.h and rt.h should be included.
591 fix definition of route_read.
592
paul0fb58d52005-11-14 14:31:49 +00005932005-11-14 Paul Jakma <paul.jakma@sun.com>
594
595 * zebra_rib.c: (rib_process) convert to new workqueue specs and
596 shut up gcc, which complains about cast from void via
597 function parameters, for some dumb reason. Do the cast
598 inside the function instead.
599 (rib_queue_qnode_del) ditto.
600 (rib_queue_init) no need for the casts anymore.
601
paul6fe70d12005-11-12 22:55:10 +00006022005-11-12 Alexander Gall <gall@switch.ch>
603
604 * See [quagga-dev 1815]
605 * kernel_socket.c: (rtm_write) Use SAROUNDUP when HAVE_SIN_LEN
606 is not available.
607 * rt_socket.c: (kernel_rtm_ipv6(_multipath)) set family to
608 AF_INET6 on ipv6 routes.
609
6102005-11-12 Paul Jakma <paul.jakma@sun.com>
611
612 * kernel_socket.c: Add RTA_NAME_GET macro to extract name from
613 sockaddr_dl. Add some more RTF_ flags.
614 * (ifan_read) Add some debug messages.
615 * (ifm_read) Add more debug messages. More robust cross-checks
616 of index against name.
617 Fall back to by-name lookup if the index lookup fails, future
618 proofing more than anything else.
619 (ifam_read_mesg) Read RTA_IFP. Add debug messages.
620 (ifam_read) More debug. If there's an RTA_IFP and it isn't
621 the name of the interface, save it as the label.
622 (rtm_read_mesg) Read RTA_IFP.
623 (rtm_read) allow name to be retrieved.
624 (rtmsg_debug) expand on the debug message.
625
paul0994c3a2005-11-11 09:52:40 +00006262005-11-11 Paul Jakma <paul.jakma@sun.com>
627
628 * kernel_socket.c: (ifm_read) arithmetic on void pointer
629 warning.
630 (ifam_read) Fix error from connected-with-label merge,
631 something crept in from the pending Solaris kernel_socket.c
632 patch which shouldn't have.
633
paul0752ef02005-11-03 12:35:21 +00006342005-11-03 Paul Jakma <paul.jakma@sun.com>
635
636 * connected.{c,h}: Include memory.h
637 (connected_add_ipv4) Use MTYPE for ifc label.
638 (connected_add_ipv6) Also should accept label. Store it in ifp.
639 (connected_del_ipv4) Taking label as argument is pointless.
640 * rt_netlink.c: (netlink_interface_addr) update label usage
641 for connected_{add,delete} functions.
642 * if_ioctl.c: (if_getaddrs) NULL label for connected_add_ipv6.
643 * if_ioctl_solaris.c: (interface_list_ioctl) Pass LIFC_NOXMIT
644 so we also find out about NOXMIT interfaces like VNI.
645 Bit of hackery to turn interface names into the primary
646 interface name, later with routing socket messages we only
647 will about primary interfaces anyway, so we must normalise
648 the name.
649 (if_get_addr) take label as argument, so it can
650 be passed to connected_add.
651 If label is provided, then it is interface name to issue the
652 ioctl for address information on, not the ifp name.
653 (interface_list) List AF_UNSPEC too, just in case.
654 * if_proc.c: (ifaddr_proc_ipv6) label for connected_add_ipv6.
655 * interface.c: (if_addr_wakeup) Some very bogus code - sets
656 IFF_RUNNING - add comment.
657 (if_refresh)
658 (ip_address_install) Use MTYPE for ifc label.
659 * ioctl_solaris.c: (if_mangle_up) New function. Hackery to make
660 IFF_UP reflect whether any addresses are left on the
661 interface, as we get signalled for IFF_UP flags change on the
662 primary interface only. Logical interfaces dont generate
663 IFINFO, but we do get an RTM_DELADDR.
664 (if_get_flags) Call if_mangle_up before return.
665 * kernel_socket.c: (ifam_read) Fixup calls to
666 connected_{add,delete} to match above changes. Rename gate
667 variable to brd, less confusing.
668 Pass the interface name as a label, if it is not same name
669 as ifp->name.
670
pauld06b2a62005-10-11 03:53:54 +00006712005-10-11 Paul Jakma <paul.jakma@sun.com>
672
673 * connected.{c,h}: (connected_{add,delete}_ipv4) label should
674 be const qualified.
675
ajsc05612b2005-10-01 16:36:54 +00006762005-10-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
677
ajsf52d13c2005-10-01 17:38:06 +0000678 * zebra_vty.c: (route_type_str) Remove obsolete function: use new
679 library function zebra_route_string() instead. Note that there
680 are a few differences: for IPv6 routes, we now get "ripng" and
681 "ospf6" instead of the old behavior ("rip" and "ospf").
682 (route_type_char) Remove obsolete function: ues new library function
683 zebra_route_char() instead. Note that there is one difference:
684 the old function returned 'S' for a ZEBRA_ROUTE_SYSTEM route,
685 whereas the new one returns 'X'.
686 (vty_show_ip_route_detail,vty_show_ipv6_route_detail) Replace
687 route_type_str() with zebra_route_string().
688 (vty_show_ip_route,vty_show_ipv6_route) Replace route_type_char()
689 with zebra_route_char().
690
6912005-10-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
692
ajsc05612b2005-10-01 16:36:54 +0000693 * rt_netlink.c: (netlink_request) Use memset to clear structure
694 before calling sendto (eliminates a valgrind error message about
695 uninitialized data).
vincentaa2e32b2005-09-28 13:42:11 +0000696
6972005-09-28 Alain Ritoux <alain.ritoux@6wind.com>
698
vincentfbf5d032005-09-29 11:25:50 +0000699 * zserv.c: Always provied distance for route add
700
7012005-09-28 Alain Ritoux <alain.ritoux@6wind.com>
702
vincentaa2e32b2005-09-28 13:42:11 +0000703 * connected.c: flag connected_up_ipv6() and connected_down_ipv6()
704 usage with HAVE_IPV6
705
hassod24af182005-09-24 14:00:26 +00007062005-09-24 Hasso Tepper <hasso at quagga.net>
707
708 * rib.h: Add note about behaviour of rib_add_ipv[46]* functions -
709 add is treated as implicit withdraw.
710
hassoebf1ead2005-09-21 14:58:20 +00007112005-09-21 David Young <dyoung@ojctech.com>
712
713 * zebra_rib.c: Reduce the height of some staircases. Fix
714 rib_delete_ipv6() to match routes in the RIB by their gateway as
715 well as by destination.
716
paul319572c2005-09-21 12:30:08 +00007172005-09-21 Paul Jakma <paul.jakma@sun.com>
718
719 * zebra_rib.c: (static_uninstall_ipv{4,6}) Fix regression wrt
720 removal of static routes with multiple-hops introduced with
721 the workqueue conversion. We should free the relevant
722 nexthop and then get rib_process to run, otherwise we just
723 get same static route back again (with no way to unconfigure
724 it, because its already deleted from configuration).
725
paulca162182005-09-12 16:58:52 +00007262005-09-12 Paul Jakma <paul.jakma@sun.com>
727
728 * (general) RTM_CHANGE and implicit withdraw on RTM_NEWADDR
729 support.
730 * connected.c: (connected_withdraw) new function. withdraw a
731 connected subnet address set from zebra, and pass information
732 along to clients.
733 (connected_announce) similar, but to announce a new connected
734 subnet address set.
735 (connected_check_ipv4) renamed to connected_check, as its
736 AFI independent.
737 (connected_add_ipv{4,6}) Remove the connected address announce
738 stuff, use connected_announce instead.
739 If connected_check indicates address is already present,
740 treat it as an implicit withdraw of the existing address, ie
741 remove the old address details and replace with the new
742 details.
743 (connected_delete_ipv{4,6}) Use connected_withdraw.
744 (connected_check_ipv6) deleted in favour of connected_check.
745 * connected.h: Rename connected_check_ipv4 to connected_check.
746 delete connected_check_ipv6.
747 * interface.c: Use connected_check rather than the AFI specific
748 symbols.
749 * kernel_socket.c: (rtm_read) RTM_CHANGE support. Create a
750 rib delete event for the existing route, before adding route
751 again.
752 (kernel_read) we can handle RTM_CHANGE now.
753
hassobe61c4e2005-08-27 06:05:47 +00007542005-08-27 Hasso Tepper <hasso at quagga.net>
755
756 * zebra_rib.c, rib.h: Add distance and metric arguments to the
757 rib_add_ipv6() function so that IPv6 routes in RIB can have correct
758 metric. No IPv6 routing daemon uses distance yet though.
759 * zserv.c, connected.c, kernel_socket.c, rt_netlink.c,
760 rtread_proc.c,zserv.c: Pass metric and distance info to the
761 rib_add_ipv6().
762
paul6eb88272005-07-29 14:36:00 +00007632005-07-29 Paul Jakma <paul.jakma@sun.com>
764
765 * interface.c: (if_delete_update) should always be available, not
766 just on RTM_IFANNOUNCE/NETLINK systems.
767 * kernel_socket.c: (ifan_read) only call if_delete_update when
768 interface departs, dont if_delete, because we wish to retain
769 interface configuration state even when interfaces are removed.
770 (ifm_read) If we dont have RTM_IFANNOUNCE, then transitioning
771 to down state is only chance we have to clean up interface in case
772 it is deleted (eg Solaris down -> unplumb -> plumb up).
773 * redistribute.c: (zebra_interface_delete_update) should always be
774 available, we /will/ call it now on all systems, via
775 if_delete_update.
776 * zserv.c: (zsend_interface_delete) ditto
777 (zsend_interface_address) Update the call-flow diagramme, to
778 reflect that if_delete_update /is/ now called on all systems,
779 potentially.
780 * zserv.h: (zsend_interface_delete) unconditionally exported, as
781 above.
782
paula1ac18c2005-06-28 17:17:12 +00007832005-06-28 Paul Jakma <paul.jakma@sun.com>
784
785 * (global) Extern and static'ification, with related fixups
786 of declarations, ensuring files include their own headers, etc.
paulea6f82b2005-06-28 17:20:26 +0000787 * if_ioctl.c: (interface_info_ioctl) fix obvious arg mis-order in
paula1ac18c2005-06-28 17:17:12 +0000788 list loop
paulea6f82b2005-06-28 17:20:26 +0000789 * kernel_socket.c: (RTA_{ADDR,ATTR}_GET) fix mistake, NULL check
790 should be on DEST argument
paula1ac18c2005-06-28 17:17:12 +0000791
paul62debbb2005-06-14 14:07:07 +00007922005-06-14 Paul Jakma <paul.jakma@sun.com>
793
794 * kernel_socket.c: consolidate the IFAM{ADDR,MASK}GET and
795 RTM{ADDR,MASK}GET macros into generic rta_addrs macros,
796 RTA_{ADDR,ATTR}_GET.
797 (af_check) could use 'inline' attribute
798 (ifam_read_mesg) remove IFAM{ADDR,MASK}GET macro, change to
799 generic macro.
800 (rtm_read_mesg) similar
801
hasso1ada8192005-06-12 11:28:18 +00008022005-06-12 Hasso Tepper <hasso at quagga.net>
803
804 * rt_netlink.c: Remove netlink-addr socket declaration, it's not used.
805 * rt_netlink.c (netlink_parse_info): Fix debug messages - nlmsg_pid is
806 unsigned and one zlog call had swapped arguments.
807 * rt_netlink.c (netlink_route_multipath): Fix compile with disabled
808 IPv6 support.
809
paul1dcb5172005-05-31 08:38:50 +00008102005-05-31 Paul Jakma <paul.jakma@sun.com>
811
812 * zserv.c: (zsend_route_multipath) Fix bug if route is sent
813 with no NEXTHOP_FLAG_FIB nexthops. As ZAPI_MESSAGE_IFINDEX
814 and ZAPI_MESSAGE_NEXTHOP are always set, clients would try
815 read non-existent nexthop information and hit stream assert.
816 Zserv is still broken for multi-nexthop messages, but it always was.
817
paul69e10ad2005-05-06 21:27:33 +00008182005-05-06 Paul Jakma <paul.jakma@sun.com>
819
820 * zserv.h: Remove ZEBRA_PORT definition, its in lib/zebra.h now
821
paul4d38fdb2005-04-28 17:35:14 +00008222005-04-28 Paul Jakma <paul.jakma@sun.com>
823
824 * rib.h: (struct rib) Add lock field for refcounting.
825 * zserv.h: (struct zebra_t) Add a ribq workqueue to the zebra
826 'master' struct.
827 * zserv.c: (zread_ipv4_add) XMALLOC then memset should be XCALLOC.
828 * zebra_rib.c: Clean up refcounting of route_node, make struct rib
829 refcounted and convert rib_process to work-queue. In general,
830 rib's should be rib_addnode'd and delnode'd to route_nodes, and
831 these symmetrical functions will manage the locking of referenced
832 route_node and freeing of struct rib - rather than having users
833 manage each seperately - with much scope for bugs..
834 (newrib_free) removed and replaced with rib_lock
835 (rib_lock) new function, check state of lock and increment.
836 (rib_unlock) new function, check lock state and decrement. Free
837 struct rib if refcount hits 0, freeing struct nexthop's, as
838 newrib_free did.
839 (rib_addnode) Add RIB to route_node, locking both.
840 (rib_delnode) Delete RIB from route_node, unlocking each.
841 (rib_process) Converted to a work-queue work function.
842 Functional changes are minimal, just arguments, comments and
843 whitespace.
844 (rib_queue_add_qnode) Helper function to setup a ribq item.
845 (rib_queue_add) Helper function, same arguments as old
846 rib_process, to replace in callers of rib_process.
847 (rib_queue_qnode_del) ribq deconstructor.
848 (rib_queue_init) Create the ribq.
849 (rib_init) call rib_queue_init.
850 (remainder) Sanitise refcounting of route_node's. Convert to
851 rib_queue_add, rib_addnode and rib_delnode. Change XMALLOC/memset
852 to XCALLOC. Remove calls to nexthop_delete and nexthop_free.
853
paulcf460ef2005-04-10 16:54:26 +00008542005-04-10 Paul Jakma <paul@dishone.st>
855
856 * if_ioctl_solaris.c: (if_lookup_linklocal) fix order of args
857 in ALL_LIST_ELEMENTS_RO macro.
858
ajs57a14772005-04-10 15:01:56 +00008592005-04-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
860
861 * zserv.c (zebra_client_read): Fix bug: first read attempt should
862 read ZEBRA_HEADER_SIZE minus the number of bytes already read.
863 Improve efficiency by maintaining a calculation of the number
864 of bytes read instead of calling stream_get_endp multiple times.
865 If message length is too small, issue a warning message (not debug)
866 before closing the connection. And also check that message length
867 is not too big.
868
hasso206d8052005-04-09 16:38:51 +00008692005-04-09 Hasso Tepper <hasso at quagga.net>
870
hassofa599802005-04-09 16:59:28 +0000871 * rt_netlink.c: One tiny missing comma caused pointless debug messages
872 about IPv6 nexthops.
873
8742005-04-09 Hasso Tepper <hasso at quagga.net>
875
hasso206d8052005-04-09 16:38:51 +0000876 * rt_netlink.c (netlink_parse_info): Fix warning. It's safe to cast
877 status to unsigned here, because we already checked that it isn't
878 negative or 0.
879 * rt_netlink.c (netlink_interface_addr): Prefix length belongs to the
880 address, not to the interface.
881 * rt_netlink.c (netlink_route_multipath): Fix debug. No useless info
882 is printed out now and IPv6 info is handeled.
883
paul3d1dc852005-04-05 00:45:23 +00008842005-04-05 Paul Jakma <paul@dishone.st>
885
886 * zserv.c: print more helpful errors when we fail to successfully
887 bind and listen on zserv socket. Closes bugzilla #163.
888
ajsd2fc8892005-04-02 18:38:43 +00008892005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
890
ajs08dbfb62005-04-03 03:40:52 +0000891 * if_ioctl.c: (interface_list_ioctl) Use if_get_by_name_len.
892 * if_proc.c: (ifaddr_proc_ipv6) Increase size of ifname buffer to
893 avoid overflow.
894 * kernel_socket.c: (ifan_read) Use if_get_by_name_len.
895
8962005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
897
ajsa3491982005-04-02 22:50:38 +0000898 * kernel_socket.c: (ifm_read) Use new if_lookup_by_name_len function
899 to save a memcpy.
900 * if_ioctl_solaris.c: (interface_list_ioctl) Fix subtle bug with new
901 if_get_by_name_len function.
902
9032005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
904
ajsd2fc8892005-04-02 18:38:43 +0000905 * interface.c: (if_new_intern_ifindex) Remove obsolete function.
906 (if_delete_update) After distributing the interface deletion message,
907 set ifp->ifindex to IFINDEX_INTERNAL.
908 (if_dump_vty) Detect pseudo interface by checking if ifp->ifindex is
909 IFINDEX_INTERNAL.
910 (zebra_interface) Check return code from interface_cmd.func.
911 Do not set internal ifindex values to if_new_intern_ifindex(),
912 since we now use IFINDEX_INTERNAL for all pseudo interfaces.
913 * kernel_socket.c: (ifm_read) Fix code and comments to reflect that
914 all internal interfaces now have ifp->ifindex set to IFINDEX_INTERNAL.
915 * rt_netlink.c: (set_ifindex) New function used to update ifp->ifindex.
916 Detects interface rename events by checking if that ifindex is already
917 being used. If it is, delete the old interface before assigning
918 the ifindex to the new interface.
919 (netlink_interface, netlink_link_change) Call set_ifindex to update
920 the ifindex.
921
hassob7ed1ec2005-03-31 20:13:49 +00009222005-03-31 Hasso Tepper <hasso at quagga.net>
923
924 * rt_netlink.c (netlink_talk_filter): Show always warning message,
925 it's not for debug.
926 * rt_netlink.c (netlink_talk): Don't assume we use netlink_cmd
927 although we do now actually.
928 * rt_netlink.c (netlink_route, netlink_route_multipath): Always use
929 netlink_cmd to send messages to the kernel.
930
ajs2da40f42005-03-30 16:33:13 +00009312005-03-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
932
933 * irdp.h: Add prototype for irdp_sock_init, and fix protos for
934 other irdp_* functions.
935 * irdp_interface.c: (irdp_if_start) If irdp_sock is negative,
936 call irdp_sock_init to create the IRDP socket.
937 (irdp_if_init) Rename to irdp_init().
938 (get_iflist_ifp) Remove function that is a duplicate of
939 if_lookup_by_index.
940 (*) Make many functions static. And remove superfluous "\n" from
941 several zlog messages.
942 * irdp_main.c: (irdp_init) Remove function that used to call
943 irdp_if_init() and irdp_sock_init(), since we will now create
944 the socket only upon first use.
945 (irdp_sock_init) Do not update global irdp_sock variable, just
946 return the fd and assume that the caller will do so. If setsockopt
947 calls fail, close the socket before returning -1.
948 (*) Make many functions static.
949 * irdp_packet.c: Initialize irdp_sock to -1.
950 (irdp_read_raw) Call standard library function if_lookup_by_index
951 instead of get_iflist_ifp.
952 (irdp_recvmsg) Should be static, not global.
953
ajsa608bbf2005-03-29 17:03:49 +00009542005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
955
956 * rt_netlink.c: (netlink_link_change) If the status of an
957 operative interface changes (e.g. MTU changes), the client
958 daemons should be notified by calling zebra_interface_up_update.
959 Previously, the information was being updated in zebra's
960 interface structure, but the clients were not notified of
961 changes to an operative interface.
962
vincent7cee1bb2005-03-25 13:08:53 +00009632005-03-25 Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
964 * interface.c, interface.h, rtadv.c, rtadv.h: modifications to
965 IPv6 Neighbor Discovery according to RFC3775, section 7:
966 o 1-bit Home Agent flag management in Router Advertisement (7.1).
967 o 1-bit Router Address flag management in Prefix Information
968 Option (7.2).
969 o Advertisement Interval Option (7.3)
970 o Home Agent Information Option (7.4)
971 o Changes to Sending Router Advertisements more frequently (7.5)
972
hassoed9bb6d2005-03-13 19:17:21 +00009732005-03-13 Hasso Tepper <hasso at quagga.net>
974
975 * zebra/interaface.c: "show interface description" command
976 implemented.
977
paulc1f01f32005-03-12 06:33:14 +00009782005-03-12 Paul Jakma <paul@dishone.st>
979
980 * rt_netlink.c: (netlink_route_multipath) dont set equalise flag.
981 No stock Linux kernel has ever supported it, and even if it had
982 it's not generally a good idea.
983
hasso42a66d72005-03-07 08:19:44 +00009842005-03-07 Michael Sandee <voidptr@voidptr.sboost.org>
985
986 * if_proc.c, ipforward_proc.c, rtread_proc.c: Fix fd leaks.
987
hasso3452d472005-03-06 13:42:05 +00009882005-03-06 Hasso Tepper <hasso at quagga.net>
989
990 * interface.c: Fix CRC and frame errors statistics in Linux.
991
ajs719e9742005-02-28 20:52:15 +00009922005-02-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
993
994 * zserv.c: Must include network.h and buffer.h for non-blocking I/O.
995 Remove global message_queue and t_write (need separate buffering for
996 each client).
997 (zebra_server_dequeue,zebra_server_enqueue) Remove functions
998 related to old buggy buffering code.
999 (zserv_delayed_close) New thread callback function to delete a client.
1000 (zserv_flush_data) New thread callback function to flush buffered
1001 data to client.
1002 (zebra_server_send_message) Rewritten to use buffer_write (so
1003 buffering of writes and non-blocking I/O work properly).
1004 (zsend_interface_add,zsend_interface_delete,zsend_interface_address,
1005 zsend_interface_update) Return 0 instead of -1 if !client->ifinfo
1006 (this is not really an error). Return value from
1007 zebra_server_send_message.
1008 (zsend_route_multipath,zsend_ipv4_nexthop_lookup,
1009 zsend_ipv4_import_lookup) Return value from zebra_server_send_message.
1010 (zsend_ipv6_nexthop_lookup) Fix scope to static, and return value
1011 from zebra_server_send_message.
1012 (zsend_router_id_update) Must use zebra_server_send_message instead
1013 of deprecated writen function. Return 0 instead of -1 if this client
1014 is not subscribed to router-id updates (since this is not really
1015 an error).
1016 (zread_interface_add) Change type to static int. If
1017 zsend_interface_add fails or zsend_interface_address fails, return -1
1018 immediately (since the client has had an I/O error).
1019 (zread_interface_delete,zread_ipv4_add,zread_ipv4_delete,
1020 zread_ipv6_add,zread_ipv6_delete,zread_router_id_delete) Return 0
1021 to indicate success.
1022 (zread_ipv4_nexthop_lookup) Return value from
1023 zsend_ipv4_nexthop_lookup.
1024 (zread_ipv4_import_lookup) Return value from zsend_ipv4_import_lookup.
1025 (zebra_read_ipv6) Remove unused function.
1026 (zread_ipv6_nexthop_lookup) Return value from
1027 zsend_ipv6_nexthop_lookup.
1028 (zread_router_id_add) Return value from zsend_router_id_update.
1029 (zebra_client_close) Call buffer_free(client->wb) and
1030 thread_cancel(client->t_suicide).
1031 (zebra_client_create) Allocate client->wb using buffer_new.
1032 (zebra_client_read) Support non-blocking I/O by using stream_read_try.
1033 Use ZEBRA_HEADER_SIZE instead of 3.
1034 (zebra_accept) Fix bug: reset accept thread at top. Make client
1035 socket non-blocking using the set_nonblocking function.
1036 (config_write_forwarding) Fix scope to static.
1037 (zebra_init) Remove initialization code for old buggy write buffering.
1038 * zserv.h: Add 2 new fields to struct zserv: struct buffer *wb
1039 (to enable buffered writes with non-blocking I/), and
1040 struct thread *t_suicide to support delayed close on I/O
1041 errors.
1042 * router-id.h: Remove prototypes for zread_router_id_add and
1043 zread_router_id_delete (their scope should be static to zserv.c).
1044
ajs27da3982005-02-24 16:06:33 +000010452005-02-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1046
1047 * redistribute.c: (zebra_check_addr,is_default,
1048 zebra_redistribute_default,zebra_redistribute) Fix scope to be static.
1049
hassoe8274dc2005-02-20 19:09:23 +000010502005-02-20 Hasso Tepper <hasso at quagga.net>
1051
1052 * rt_netlink.c: Don't show messages "ignoring message type 0x001[89]"
1053 if we are not debugging.
1054
paule31f2292005-02-19 02:00:26 +000010552005-02-19 Paul Jakma <paul@dishone.st>
1056
1057 * zserv.c: (zebra_read_ipv6) replace the char * arithmetic with
1058 STREAM_READABLE.
1059
paul1e193152005-02-14 23:53:05 +000010602005-02-14 Paul Jakma <paul@dishone.st>
1061
1062 * Not all Linux netlink systems have IFLA_WIRELESS
1063
ajs6a52d0d2005-01-30 18:49:28 +000010642005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1065
1066 * ioctl.c: (if_ioctl,if_ioctl_ipv6,if_get_flags) Replace perror with
1067 zlog_err.
1068 * ioctl_solaris.c: (if_ioctl,if_ioctl_ipv6) Replace perror with
1069 zlog_err.
1070
ajs4be019d2005-01-29 16:12:41 +000010712005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1072
ajs4460e7a2005-01-29 17:07:40 +00001073 * if_ioctl_solaris.c: (interface_list_ioctl) Save errno before calling
1074 zserv_privs.change.
1075 * ioctl{,_solaris}.c: (if_ioctl,if_ioctl_ipv6) Save errno before calling
1076 zserv_privs.change.
1077 * ipforward_solaris.c: (solaris_nd) Save errno before calling
1078 zserv_privs.change.
1079 * irdp_main.c: (irdp_sock_init) Save errno before calling
1080 zserv_privs.change.
1081
10822005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1083
ajs4be019d2005-01-29 16:12:41 +00001084 * rt_netlink.c: (netlink_socket,netlink_request,netlink_parse_info,
1085 netlink_talk) Save errno before calling zserv_privs.change.
1086
paulc15cb242005-01-24 09:05:27 +000010872005-01-24 Martin Pot <mpot at martybugs.net>
1088
1089 * zebra/rt_netlink.c: ignore wireless newlink netlink messages.
1090
hasso6f2c27a2005-01-18 13:44:35 +000010912005-01-18 Hasso Tepper <hasso at quagga.net>
1092
1093 * interface.c: Better statistics output in "show interface" command in
1094 case of /proc being used.
1095
hasso583d8002005-01-16 23:34:02 +000010962005-01-17 Hasso Tepper <hasso at quagga.net>
1097
1098 * main.c: With --nl-bufsize argument is required.
1099
paul865b8522005-01-05 08:30:35 +000011002005-01-05 Paul Jakma <paul@dishone.st>
1101
1102 * zserv.c: (zebra_accept) Comment out setting of socket to NONBLOCK
1103 for now, as we dont actually deal with with resending.... See
1104 bugzilla #122, fix from wawa@yandex-team.ru (Vladimir Ivanov).
1105 * kernel_socket.c: (routing_socket) ditto.
1106
ajsb99760a2005-01-04 16:24:43 +000011072005-01-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1108
1109 * rtadv.c: (rtadv_recv_packet,rtadv_send_packet) Use ZCMSG_FIRSTHDR
1110 instead of CMSG_FIRSTHDR.
1111
ajs341a8f12004-12-22 16:32:16 +000011122004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1113
1114 * connected.c: (connected_add_ipv4) Limit warning about /32 addresses
1115 with no peer specified to PtP interfaces only.
1116
hassob8adec12004-12-18 16:03:28 +000011172004-12-18 Hasso Tepper <hasso at quagga.net>
1118
1119 * zebra_vty.c: Fix "show ipv6 route <proto>" command help and make it
1120 work for isis routes.
1121
gdt6a250b02004-12-09 14:48:12 +000011222004-12-09 Greg Troxel <gdt@fnord.ir.bbn.com>
1123
1124 * kernel_socket.c (rtmsg_debug): char * => const char *
1125
ajs274a4a42004-12-07 15:39:31 +000011262004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1127
ajsb6178002004-12-07 21:12:56 +00001128 * *.c: Change level of debug messages to LOG_DEBUG.
1129
11302004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1131
ajs274a4a42004-12-07 15:39:31 +00001132 * main.c: (main) The 2nd argument to openzlog has been removed.
1133 So stdout logging will no longer be enabled by default.
1134 * irdp_main.c: (irdp_finish) Reduce severity of shutdown message
1135 from LOG_WARNING to LOG_INFO.
1136
ajs887c44a2004-12-03 16:36:46 +000011372004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
1138
1139 * main.c: (sigint) Use zlog_notice for termination message.
1140 (main) Add a startup announcement using zlog_notice.
1141
hassoaccb1562004-11-25 19:21:07 +000011422004-11-25 Hasso Tepper <hasso at quagga.net>
1143
1144 * irdp_interface.c: Remove comment from DEFUN, it breaks vtysh because
1145 it confuses extract.pl.
hassoc0652302004-11-25 19:33:48 +00001146 * main.c: Make group to run as configurable.
hassoaccb1562004-11-25 19:21:07 +00001147
hasso6bd7c6a2004-10-28 17:32:27 +000011482004-10-28 Hasso Tepper <hasso at quagga.net>
1149
1150 * interface.c: Remove dead "ip tunnel" command.
1151
paul06f953f2004-10-22 17:00:38 +000011522004-10-22 Paul Jakma <paul@dishone.st>
1153
1154 * irdp_main.c: change setsockopt_pktinfo to setsockopt_ifindex
1155
hasso3fb9cd62004-10-19 19:44:43 +000011562004-10-19 Andrew J. Schorr <aschorr@telemetry-investments.com>
1157
1158 * rt_netlink.c: (netlink_interface_addr) For PtP interfaces, ignore
1159 tb[IFA_ADDRESS] if it's the same as tb[IFA_LOCAL].
1160 * interface.c: (ip_address_install) Use new ipv4_broadcast_addr
1161 function.
1162 * connected.c: (connected_up_ipv4) Use CONNECTED_POINTOPOINT_HOST
1163 macro.
1164 (connected_down_ipv4) ditto.
1165 (connected_add_ipv4) Validate destination address, print warnings
1166 if it does not make sense.
1167
hassoc1eaa442004-10-19 06:26:01 +000011682004-10-19 Hasso Tepper <hasso at quagga.net>
1169
1170 * zserv.c: Fix regression introduced with zserv cleanup.
1171
hassoc75105a2004-10-13 10:33:26 +000011722004-10-13 Hasso Tepper <hasso at quagga.net>
1173
1174 * zebra_snmp.c: Remove defaults used to initialize smux connection to
1175 snmpd. Connection is initialized only if smux peer is configured.
hassob71f00f2004-10-13 12:20:35 +00001176 * zserv.c: Remove useless warnings "forwarding is already on".
hassoc75105a2004-10-13 10:33:26 +00001177
hasso39ff11d2004-10-12 15:55:19 +000011782004-10-12 Hasso Tepper <hasso at quagga.net>
1179
1180 * zebra_vty.c: Unbreak "show ip route" command help and make it work
1181 for isis routes.
hasso39db97e2004-10-12 20:50:58 +00001182 * interface.c(if_dump_vty): Show IPv6 addresses in "show interface"
1183 output. Fixes Bugzilla #119.
1184 * *.c: Make some strings const and some (unsigned) casts to fix
1185 compiler warnings.
hasso39ff11d2004-10-12 15:55:19 +00001186
hassofce954f2004-10-07 20:29:24 +000011872004-10-07 Hasso Tepper <hasso at quagga.net>
1188
1189 * connected.c, main.c, rt_netlink.c, rtadv.c, zebra_rib.c, zserv.c:
1190 Fix warnings: make strings const, signed -> unsigned.
1191
paul72164662004-10-05 14:39:43 +000011922004-10-05 Paul Jakma <paul@dishone.st>
1193
1194 * irdp_packet.c: (parse_irdp_packet) style issues.
1195 Use sockopt_iphdrincl_swab_systoh.
1196 Try unbork the code. Checksum the ICMP data and actually
1197 compare it to received checksum. Check data length against
1198 claimed length in header.
1199 Always use ntoh.. when accessing addresses, even when the
1200 comparison happens to be endian-safe.
1201 (send_packet) minor style isues. Use
1202 sockopt_iphdrincl_swab_htosys.
1203 (irdp_iph_hton/ntoh) IP header to/from network/host order.
1204
hassoeef1fe12004-10-03 18:46:08 +000012052004-10-03 Gilad Arnold <gilad.arnold at terayon.com>
1206
1207 * interface.c, interface.h: A new prefix tree of connected subnets is
1208 associated with each interface structure in zebra, in which each
1209 live (ie, non-synthetic) node holds a list of installed addresses
1210 that belong to that prefix. Remove secondary address logic from cli.
1211 See [quagga-dev 872] for detailed explanation.
1212 * connected.c: Use if_subnet_add() and if_subnet_delete().
1213
hasso18a6dce2004-10-03 18:18:34 +000012142004-10-03 James R. Leu <jleu at mindspring.com>
1215
1216 * router-id.c, router-id.h: New files. Router id selection process. If
1217 there is non 127.x.x.x address in loopack interface, lowest of them
1218 is chosen. If there isn't, lowest from other interfaces addresses
1219 are chosen. "router-id x.x.x.x" vty command to manual override.
1220 * Makefile.am: Compile new files.
1221 * main.c: Initialize router id.
1222 * redistribute.c: Add interface addresses into router id selection
1223 lists as they (dis)appear.
1224 * zserv.c, zserv.h: Sending router id related messages to daemons.
1225
hassoc9e52be2004-09-26 16:09:34 +000012262004-09-26 Hasso Tepper <hasso at quagga.net>
1227
1228 * irdp_interface.c, irdp_main.c, irdp_packet.c, rt_netlink.c,
1229 rtadv.c, zebra_vty.c: Fix compiler warnings.
1230
paul0c0f9112004-09-24 08:24:42 +000012312004-09-24 Paul Jakma <paul@dishone.st>
1232
paul26f7a242004-09-24 08:45:10 +00001233 * irdp_interface.c: (no_ip_irdp_address_preference_cmd)
1234 add missing listnode declaration.
1235
12362004-09-24 Paul Jakma <paul@dishone.st>
1237
paul0c0f9112004-09-24 08:24:42 +00001238 * irdp_{interface,main}.c: lists typedef removal cleanup.
1239 update some list loops to LIST_LOOP. some miscellaneous style
1240 and indent fixups.
1241 (no_ip_irdp_address_preference_cmd) Fix delete of referenced node
paul26f7a242004-09-24 08:45:10 +00001242 in loop.
paul0c0f9112004-09-24 08:24:42 +00001243 * irdp_packet.c: (irdp_recvmsg) Fix buggy assignment of integer
1244 to pointer.
1245 * if_ioctl{,_solaris}.c: lists typedef removal cleanup.
1246 update some list loops to LIST_LOOP.
1247
hasso52dc7ee2004-09-23 19:18:23 +000012482004-09-23 Hasso Tepper <hasso at quagga.net>
1249
1250 * *.[c|h]: list -> struct list *, listnode -> struct listnode *.
1251
paul44983cf2004-09-22 13:15:58 +000012522004-09-22 Paul Jakma <paul.jakma@sun.com>
1253
1254 * zserv.c: (zsend_route_multipath) fix nasty bad memset of struct
1255 in_addr to sizeof(struct in6_addr), causing odd and hard to debug
1256 crash.
1257
hassoc34b6b52004-08-31 13:41:49 +000012582004-08-31 Hasso Tepper <hasso at quagga.net>
1259
1260 * main.c, rt_netlink.c: Added -s command line switch for tuning
1261 netlink receive buffer size in Linux to avoid buffer overruns.
1262
gdta5ea6872004-08-26 13:24:00 +000012632004-08-26 Miles Nordin <carton@Ivy.NET>
1264
1265 * ipforward_sysctl.c (mib_ipv6): Use size_t for len, per
1266 sysctl(3), rather than int. (Needed on NetBSD/alpha to display
1267 forwarding status correctly.)
1268
paul3e0b3a52004-08-23 18:58:32 +000012692004-08-23 Paul Jakma <paul@dishone.st>
1270
1271 * zserv.c: (zebra_init) remove implicit ip forward enabling
1272
paul0de1cde2004-08-19 04:45:33 +000012732004-08-19 Paul Jakma <paul@dishone.st>
1274
1275 * irdp_main.c: update to match sockopt renames.
1276 * irdp_packet.c: include sockopt.h and update to match sockopt
1277 renames.
1278
gdt57492d52004-08-11 18:06:38 +000012792004-08-11 Greg Troxel <gdt@fnord.ir.bbn.com>
1280
1281 * rtadv.c (rtadv_send_packet): Allocate space for control messages
1282 more carefully; it was wrong on NetBSD/sparc where CMSG alignment
1283 is to 8 bytes instead of 4, and overwriting the address. Use the
1284 provided macros for determining lengths.
1285
paul5b73a672004-07-23 15:26:14 +000012862004-07-23 Sowmini Varadhan <Sowmini.Varadhan@Sun.COM>
1287
1288 * if_ioctl_solaris.c: HAVE_IPV6 ifdef fixups
1289 * zserv.c: ditto
1290 * ioctl_solaris.c: ditto.
1291 * interface.c: cast for LLADDR
1292 * interface.h: Add guards, include redistribute.h and remove
1293 extraneous definitions of zebra_interface_{up,down}_update
1294 * ioctl.h: Add AF_IOCTL define for non SOLARIS_IPV6
1295 * redistribute.h: include dependent header, zserv.h
1296 * zserv.h: include dependent header, rib.h
1297
paul1470baf2004-07-23 15:25:01 +000012982004-07-23 Paul Jakma <paul@dishone.st>
1299
1300 * irdp_main.c: use setsockopt_pktinfo_ipv4
1301 * irdp_packet.c: use SOPT_SIZE_CMSG_PKTINFO_IPV4 and
1302 getsockopt_pktinfo_ifindex()
1303
gdtcced60d2004-07-13 16:45:54 +000013042004-07-13 David Wiggins <dwiggins@bbn.com
1305
1306 * kernel_socket.c (rtm_flag_dump): terminate buffer with '\0', not '0'.
1307
hasso25dac852004-07-13 03:06:51 +000013082004-07-13 Hasso Tepper <hasso@estpak.ee>
1309
1310 * irdp_main.c: Add privilege change.
1311
hasso996933f2004-07-12 16:32:56 +000013122004-07-12 Hasso Tepper <hasso@estpak.ee>
1313
1314 * irdp_interface.c: follow common style while naming vty command
1315 functions. Avoids confusion in extract.pl.
1316
gdt87efd642004-06-30 17:36:11 +000013172004-06-30 Greg Troxel <gdt@poblano.ir.bbn.com>
1318
1319 * main.c: define thread_master variable so that linking with
1320 libzebra.so doesn't fail. Arguably zclient.o should be in a
1321 separate library, but this is far less disruptive.
1322
hassoca776982004-06-12 14:33:05 +000013232004-06-12 Robert Olsson <Robert.Olsson at data.slu.se>
1324
1325 * Added IRDP support.
1326
hasso3e31cde2004-05-18 11:58:59 +000013272004-05-18 Hasso Tepper <hasso@estpak.ee>
1328
1329 * rtadv.c: Removed "[no] ipv6 nd send-ra" command. Replaced "ipv6 nd
1330 prefix-advertisement" with "ipv6 nd prefix". Rewrite syntax of
1331 "ipv6 nd prefix" command to allow various combinations of parameters
1332 and flags. No defaults in configuration. Replaced on-link and
1333 autoconfig with off-link and no-autoconfig flags in command syntax.
1334 Cosmetic fixes in all commands. Documentation to reflect all changes.
1335
paul19877dd2004-05-11 10:49:35 +000013362004-05-11 Paul Jakma <paul@dishone.st>
1337
1338 * Makefile.am: support for IOCTL_METHOD, as per Sowmini's patch.
paul48a46fa2004-05-11 10:55:22 +00001339 * if_ioctl_solaris.c: Fixup some erroneous privilege changes and
1340 add privs.h header.
1341 * ioctl_solaris.c: ditto
paulc50ae8b2004-05-11 11:31:07 +00001342 * ioctl.h: Add if_ioctl_ipv6 prototype and AF_IOCTL for SOLARIS_IPV6
1343 * kernel_socket.c: Fix SAROUNDUP, compiler doesnt like do..while
1344 RHS in assignments :)
1345 * redistribute.c: (zebra_interface_delete_update) only used
1346 if RTM_IFANNOUNCE and NETLINK is available.
1347
paulb9df2d22004-05-09 09:09:59 +000013482004-05-09 Paul Jakma <paul@dishone.st>
1349
1350 * zserv.c: (zsend_route_multipath) Set the nexthop_num
1351 field correctly. Add NEXTHOP_TYPE_IPV6_IFNAME for v6.
1352 Conditionally set ZAPI_MESSAGE_METRIC flag - only for adds.
1353 (zsend_ipv4_add) cruft, deleted.
1354 (zsend_ipv4_delete) ditto.
1355 (zsend_ipv6_add) ditto.
1356 (zsend_ipv6_delete) ditto.
paul44145db2004-05-09 11:00:23 +00001357 * ioctl.c: (if_get_mtu) set mtu6 to mtu
1358 * mtu_kvm.c: (if_kvm_get_mtu) set mtu6 to mtu
1359 * rt_netlink.c: (netlink_interface) set mtu6 to mtu
1360 (netlink_link_change) ditto
paul66e94882004-05-09 17:19:24 +00001361 * ipforward_solaris.c: fix typo of ND variable.
paul88424682004-05-09 18:21:35 +00001362 * if_ioctl_solaris.c: Add zprivs support.
1363 * ioctl_solaris.c: ditto.
paul66e94882004-05-09 17:19:24 +00001364
paulb9df2d22004-05-09 09:09:59 +000013652004-05-09 Sowmini Varadhan <sowmini.varadhan@sun.com>
1366
1367 * zserv.c: (zsend_ipv{4,6}_{add,delete}_multipath) collapsed
1368 into single zsend_route_multipath function.
1369 (zsend_interface_{up,down}) collapsed into zsend_interface_update.
1370 (zsend_interface_address_{add,delete}) collapsed into
1371 zsend_interface_address.
1372 (zsend_interface_add) send mtu6.
1373 (zsend_interface_delete) ditto.
1374 (zebra_write) remove unused function.
1375 (various) Apply static qualifier. Add comments.
1376 * zserv.h: Definitions changed as per above.
1377 * redistribute.c: Changes as per zserv.c.
paul44145db2004-05-09 11:00:23 +00001378 * interface.c: (if_delete_update) only used with HAVE_NETLINK
1379 and RTM_IFANNOUNCE.
1380 (if_flag_dump_vty) Solaris IFF_IPV4 and IFF_IPV6 if flags
1381 (if_dump_vty) print mtu6 if not same as mtu
paul88424682004-05-09 18:21:35 +00001382 * if_ioctl_solaris.c: New file, Solaris interface ioctl methods.
1383 * ioctl_solaris.c: New file, Common solaris ioctl methods.
1384
hasso34195bf2004-04-06 12:07:06 +000013852004-04-06 Krzysztof Oledzki <oleq@ans.pl>
1386
1387 * rt_netlink.c: Do not ignore metric when reading kernel routing
1388 table on Linux with rt_netlink interface.
1389
13902004-03-18 Hasso Tepper <hasso@estpak.ee>
hassof1d92e12004-03-18 15:40:33 +00001391
1392 * interface.c: Temporary fix for handling secondary addresses
1393 with label.
1394
hasso55906722004-02-11 22:42:16 +000013952004-02-12 Hasso Tepper <hasso@estpak.ee>
hassof1d92e12004-03-18 15:40:33 +00001396
hasso55906722004-02-11 22:42:16 +00001397 * zserv.c: Added "ipv6 forwarding" command.
1398
gdtb27900b2004-01-08 15:44:29 +000013992004-01-08 Greg Troxel <gdt@fnord.ir.bbn.com>
1400
1401 * kernel_socket.c (kernel_read): Use sockaddr_storage in buffer
1402 for reading kernel messages to ensure enough space (necessary on
1403 Solaris due to sockaddr_dl being large). Thanks to Sowmini
1404 Varadhan for help with this change.
1405
gdt9ccabd12004-01-06 18:23:02 +000014062004-01-06 Greg Troxel <gdt@t1.ir.bbn.com>
1407
1408 * rtadv.c (rtadv_send_packet): Change perror to zlog_err.
1409
gdtdbee01f2004-01-06 00:36:51 +000014102004-01-05 Greg Troxel <gdt@fnord.ir.bbn.com>
gdt4bfbea82004-01-06 01:13:05 +00001411 * kernel_socket.c (ifm_read): Major cleanup. Use Sowmini's code
1412 to find the sockaddr_dl in all cases, narrowing the Solaris ifdef
1413 to just the accomodation of broken kernels. Check sockaddr_dl
1414 carefully up front, and later assume any non-NULL sdl pointer is
1415 valid. Clean up types and variable declarations, and rename
1416 WRAPUP to SAROUNDUP to make the name fit the behavior.
1417
14182004-01-05 Greg Troxel <gdt@fnord.ir.bbn.com>
gdtdbee01f2004-01-06 00:36:51 +00001419
1420 * kernel_socket.c (kernel_read): Add a sockaddr_dl to the ifmsg
1421 structure, because on Solaris sockaddr_dl is far larger than the
1422 base sockaddr structure. (The code had previously been failing to
1423 read all the data.)
gdt4bfbea82004-01-06 01:13:05 +00001424
gdtda26e3b2004-01-05 17:20:59 +000014252004-01-05 Greg Troxel <gdt@ahi.ir.bbn.com>
1426
1427 * kernel_socket.c (kernel_read): Look up interfaces by index
1428 first, so that state changes which do not include a sockaddr_dl
1429 now work. Add many sanity checks. In
1430 particular, do not assume that a sockaddr_dl follows a message
1431 without checking the ifm_addrs flags, and do not trust the length
1432 in a sockaddr_dl. Add/clarify many comments.
1433
gdt4b5e1352003-12-03 17:54:34 +000014342003-12-03 Greg Troxel <gdt@poblano.ir.bbn.com>
1435
1436 * rtadv.c: reorder includes to avoid compiler warning (define
1437 structs before using them in prototypes)
1438
hasso647e4f12003-05-25 11:43:52 +000014392003-05-25 Jim Crumpler <Jim.Crumpler@edion.com>
1440
1441 * zserv.c: Add "ip forwarding" command.
1442
paul445f1432003-05-16 19:00:31 +000014432003-05-16 Gilad Arnold <gilad.arnold@terayon.com>
1444
1445 * zebra_rib.c: Fix memory leaks for ifname nexthops
1446
14472003-04-19 Israel Keys <ikeys@agile.tv>
1448
1449 * rt_netlink.c: BLOCK on netlink while initialising
1450
14512003-02-06 Francois Deppierraz <francois@ctrlaltdel.ch>
1452
1453 * rt_netlink.c (netlink_route_multipath): Set RTM_F_EQUALIZE when
1454 it exists.
1455
paul718e3742002-12-13 20:15:29 +000014562002-09-28 Akihiro Mizutani <mizutani@net-chef.net>
1457
1458 * zebra_rib.c (static_add_ipv4): Null0 static route is added.
1459
14602002-09-10 Jochen Friedrich <chris+zebra@scram.de>
1461
1462 * rt_netlink.c: Add check for EAGAIN.
1463 * kernel_socket.c: Likewise
1464
14652002-06-12 Israel Keys <ikeys@oz.agile.tv>
1466
1467 * rt_netlink.c: Setting the NLM_F_ACK flag on the netlink command
1468 message so that we get an ACK for successful netlink commands.
1469 Change the netlink socket to BLOCKING while we wait for a
1470 response; be it an ACK or an NLMSG_ERROR. Change
1471 netlink_parse_info to deal with ACK messages.
1472
14732001-11-01 Jun-ichiro itojun Hagino <itojun@iijlab.net>
1474
1475 * rtadv.c (rtadv_make_socket): setsockopt(IPV6_CHECKSUM) does not
1476 work for ICMPv6 socket.
1477
14782001-10-24 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1479
1480 * rib.c (rib_process): Select connected route any case.
1481
14822001-10-23 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1483
1484 * interface.c (no_ip_address_secondary): Add "no" to command.
1485
14862001-10-18 NOGUCHI Kay <kay@v6.access.co.jp>
1487
1488 * ioctl.c (if_prefix_add_ipv6): Set the prefered and valid lifetime
1489 to infinity as the freebsd4.4 workaroud.
1490
14912001-08-26 mihail.balikov@interbgc.com
1492
1493 * zebra_snmp.c: Fix snmpwalk problem such as IPv4 address
1494 A.B.C.255.
1495
14962001-08-22 NOGUCHI Kay <kay@v6.access.co.jp>
1497
1498 * rtadv.c: Do not send RA to loopback interface.
1499
15002001-08-20 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1501
1502 * ioctl.c (if_set_prefix): Remove Linux 2.0 specific connected
1503 route treatment.
1504
15052001-08-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1506
1507 * zebra-0.92a released.
1508
15092001-08-17 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1510
1511 * rib.c: Kernel route is treated as EGP routes in nexthop active
1512 check.
1513
15142001-08-15 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
1515
1516 * zebra-0.92 released.
1517
15182001-08-08 "Akihiro Mizutani" <mizutani@dml.com>
1519
1520 * rib.c (show_ip_route_prefix_longer): Add longer-prefix option to
1521 show route commands.
1522
15232001-07-29 Yon Uriarte <havanna_moon@gmx.net>
1524
1525 * zserv.c (zsend_ipv4_add_multipath): Add
1526 NEXTHOP_TYPE_IPV4_IFINDEX check.
1527
15282001-07-29 NOGUCHI Kay <kay@v6.access.co.jp>
1529
1530 * rtadv.c: Apply valid lifetime, preferred lifetime, onilnk flag,
1531 autonomous address-configuration flag patch.
1532 (no_ipv6_nd_suppress_ra): Change "ipv6 nd send-ra" to "no ipv6 nd
1533 suppress-ra".
1534
15352001-07-24 NOGUCHI Kay <kay@v6.access.co.jp>
1536
1537 * rtadv.c (ipv6_nd_ra_interval): Add "ipv6 nd ra-interval SECONDS"
1538 command.
1539
15402001-07-24 Jun-ichiro itojun Hagino <itojun@iijlab.net>
1541
1542 * rt_socket.c (kernel_rtm_ipv4): Add KAME/NetBSD151 equal cost
1543 multicast FIB support both IPv4 and IPv6.
1544
15452001-07-24 Hal Snyder <hal@vailsys.com>
1546
1547 * if_ioctl.c (interface_list_ioctl): Fix bug of failing to get the
1548 full list of interfaces on some configurations of OpenBSD.
1549
15502001-07-23 NOGUCHI Kay <kay@v6.access.co.jp>
1551
1552 * rtadv.c (ipv6_nd_send_ra): Apply [zebra 9320] to fix "ipv6 nd
1553 send-ra" bug.
1554 (ipv6_nd_ra_lifetime): "ipv6 nd ra-lifetime 0" for default router
1555 availability.
1556 (ipv6_nd_managed_config_flag): "ipv6 nd managed-config-flag" is
1557 added.
1558 (ipv6_nd_other_config_flag): "ipv6 nd other-config-flag" is added.
1559
15602001-07-23 Jun-ichiro itojun Hagino <itojun@iijlab.net>
1561
1562 * ioctl.c (if_ioctl): Change ioctl argument from int to u_long.
1563
1564 * rt_ioctl.c: Likewise.
1565
15662001-07-23 Jun-ichiro itojun Hagino <itojun@iijlab.net>
1567
1568 * kernel_socket.c (rtm_write): Only set RTF_CLONING when the
1569 interface is not p2p.
1570
15712001-04-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1572
1573 * ioctl.c (if_prefix_add_ipv6): Fix argument type.
1574
15752001-04-06 Toshiaki Takada <takada@zebra.org>
1576
1577 * zserv.c (zsend_interface_delete): Use client->obuf instead of
1578 allocating new stream.
1579
15802001-03-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1581
1582 * rt_netlink.c: Revert RTPROT_BOOT change.
1583
15842001-03-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1585
1586 * rt_netlink.c (netlink_route_change): Skip RTPROT_BOOT route.
1587 (netlink_routing_table): Likewise.
1588
15892001-03-07 "Akihiro Mizutani" <mizutani@dml.com>
1590
1591 * zserv.c (zsend_ipv4_add_multipath): Send metric value to
1592 protocol daemons.
1593
15942001-02-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1595
1596 * rt_netlink.c (netlink_routing_table): Do not return
1597 tb[RTA_GATEWAY] is NULL. Reported by: "Michael O'Keefe"
1598 <mokeefe@qualcomm.com>.
1599
16002001-02-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1601
1602 * if_ioctl.c (interface_list_ioctl): Call if_add_update().
1603 Suggested by: Chris Dunlop <chris@onthe.net.au>.
1604
16052001-02-01 Kunihiro Ishiguro <kunihiro@zebra.org>
1606
1607 * rib.c (nexthop_active_ipv4): When nexthop type is
1608 NEXTHOP_TYPE_IPV4_IFINDEX, propery set the ifindex to rifindex.
1609
1610 * zserv.c: Initialize rtm_table_default with 0.
1611
1612 * zebra-0.91 is released.
1613
16142001-01-31 Kunihiro Ishiguro <kunihiro@zebra.org>
1615
1616 * kernel_socket.c (rtm_read): Filter cloned route. Suggested by:
1617 Jun-ichiro itojun Hagino <itojun@iijlab.net>
1618
16192001-01-30 Kunihiro Ishiguro <kunihiro@zebra.org>
1620
1621 * connected.c (connected_up_ipv6): When point-to-point destination
1622 address is ::, use local address for connected network.
1623 (connected_down_ipv6): Likewise.
1624
16252001-01-25 Kunihiro Ishiguro <kunihiro@zebra.org>
1626
1627 * zserv.c (zebra_serv): Add missing close() call. Reported by:
1628 David Waitzman <djw@vineyard.net>.
1629
16302001-01-24 Kunihiro Ishiguro <kunihiro@zebra.org>
1631
1632 * rib.c (rib_lookup_ipv4): New function for checking exact match
1633 IGP route.
1634
16352001-01-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1636
1637 * rib.c (show_ipv6_route_protocol): Fix bug of "show ip route
1638 route-type".
1639
16402001-01-22 Kunihiro Ishiguro <kunihiro@zebra.org>
1641
1642 * interface.c (zebra_interface): Do not call
1643 zebra_interface_add_update for inactive interface.
1644
1645 * zserv.c (zsend_interface_address_add): Send interface address
1646 flag.
1647 (zsend_interface_address_delete): Likewise.
1648
16492001-01-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1650
1651 * interface.c (if_addr_add): Add flags.
1652
1653 * connected.c (ifa_add_ipv4): Add new function for interface
1654 address handling.
1655 (ifa_delete_ipv4): Likewise.
1656
16572001-01-16 Kunihiro Ishiguro <kunihiro@zebra.org>
1658
1659 * rib.c (rib_update): Update IPv6 RIB.
1660
1661 * kernel_socket.c (ifam_read): Call if_refresh() for update
1662 interface flag status. This is for implicit interface up on *BSD.
1663
1664 * interface.c (if_refresh): Add interface flag refresh function.
1665
1666 * kernel_socket.c (rtm_read): Fetch link-local address interface
1667 index.
1668 (ifan_read): We need to fetch interface information. Suggested
1669 by: Yasuhiro Ohara <yasu@sfc.wide.ad.jp>.
1670
1671 * rib.c (static_ipv6_nexthop_same): Add check for
1672 NEXTHOP_TYPE_IPV6_IFNAME.
1673
16742001-01-15 Kunihiro Ishiguro <kunihiro@zebra.org>
1675
1676 * rib.h (NEW_RIB): Turn on NEW_RIB flag. IPv6 new RIB code are
1677 taken into place.
1678
16792001-01-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1680
1681 * rib.c (static_ipv6_write): Display STATIC_IPV6_GATEWAY_IFNAME
1682 configuration.
1683 (rib_delete_ipv6): Handle same route conter for IPv6 connected
1684 route.
1685 (show_ipv6_route_protocol): New command.
1686 (show_ipv6_route_addr): Likewise.
1687 (show_ipv6_route_prefix): Likewise.
1688 (rib_update): Sweep kernel route when it is cleaned up.
1689
1690 * rt_socket.c (kernel_add_ipv6): Add NEXTHOP_IPV6_IFNAME
1691 treatmenet.
1692
1693 * rt_netlink.c (kernel_init): Likewise.
1694
1695 * rt_ioctl.c (kernel_ioctl_ipv6_multipath): Likewise.
1696
1697 * rib.c (rib_add_ipv4): Cope with same connected route on a
1698 interface. Suggested by: Matthew Grant <grantma@anathoth.gen.nz>.
1699 (nexthop_ipv6_ifname_add): Add NEXTHOP_IPV6_IFNAME treatmenet.
1700
1701 * rib.h (struct new_rib): Add refcnt to keep track on the
1702 reference of same connected route.
1703
1704 * ioctl.c (if_set_prefix): Add check for GNU_LINUX.
1705
17062001-01-13 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
1707
1708 * kernel_socket.c (ifan_read, rtm_type_str): Add RTM_OIFINFO check.
1709 (rtm_type_str): Add RTM_IFANNOUNCE check.
1710 (ifan_read): New function.
1711 (kernel_read): Add case for RTM_IFANNOUNCE.
1712
17132001-01-13 Kunihiro Ishiguro <kunihiro@zebra.org>
1714
1715 * rt_ioctl.c (kernel_ioctl_ipv6_multipath): New function.
1716
1717 * rt_netlink.c (netlink_route_multipath): IPv6 address ifindex
1718 treatment.
1719
1720 * connected.c (connected_up_ipv6): Add dest value check.
1721
1722 * rib.c (nexthop_active_ipv6): Do not touch IPv6 nexthop's
1723 ifindex.
1724 (rib_add_ipv4): Import rib_add_ipv6() same route check code.
1725 (nexthop_active_check): NEXTHOP_TYPE_IPV6_IFINDEX activity is only
1726 checked by ifindex.
1727
1728 * rt_socket.c (kernel_rtm_ipv6_multipath): New function.
1729
1730 * redistribute.c (redistribute_add): Use
1731 zsend_ipv6_add_multipath().
1732 (redistribute_delete_multipath): Use
1733 zsend_ipv6_delete_multipath().
1734
1735 * interface.c (ip_address): Check current IP address to avoid
1736 duplicate.
1737
1738 * rib.c (rib_delete_ipv4): When deleted route is connected route,
1739 check ifindex.
1740 (rib_add_ipv4): When connected route is added do not perform
1741 implicit withdraw.
1742 (rib_delete_ipv4): Check ifindex for connected route.
1743
1744 * kernel_socket.c (rtm_read): When route has RTF_STATIC, set
1745 ZEBRA_FLAG_STATIC for indicate as persistent route.
1746 (ifam_read): Unset interface index from link-local address when
1747 IPv6 stack is KAME.
1748
1749 * rib.c (rib_update): Do not delete persistent kernel route.
1750
1751 * rib.h (struct new_rib): Integrate RIB_FLAG_* to ZEBRA_FLAG_*.
1752
1753 * rt_socket.c (kernel_add_ipv6_multipath): Add placeholder.
1754 (kernel_delete_ipv6_multipath): Likewise.
1755
1756 * rt_netlink.c (netlink_talk): Give struct nlsock to netlink_talk.
1757
17582001-01-12 Kunihiro Ishiguro <kunihiro@zebra.org>
1759
1760 * rib.c (rib_update): Revert Matthew Grant's patch
1761 zebra_cvs_newribfix.patch. Use struct rib->ifindex for kernel
1762 interface index. Introduce NEXTHOP_TYPE_IPV4_IFINDEX to support
1763 that. Add support for address deletion situation.
1764
17652001-01-11 Kunihiro Ishiguro <kunihiro@zebra.org>
1766
1767 * interface.c: Remove HAVE_IF_PSEUDO part.
1768
1769 * rib.h: Likewise.
1770
1771 * rt_netlink.c (netlink_link_change): Likewise.
1772
17732001-01-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1774
1775 * zserv.c: Remove OLD_RIB codes.
1776
17772001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
1778
1779 * zebra-0.90 is released.
1780
17812001-01-09 Matthew Grant <grantma@anathoth.gen.nz>
1782
1783 * interface.c (if_new_intern_ifindex): Allocate a new internal
1784 interface index.
1785 (if_addr_refresh): Fix up ip addresses configured via zebra.
1786 (if_add_update): Handle an interface addition.
1787 (if_delete_update): Handle an interface delete event.
1788
1789 * rib.c (nexthop_ipv4_add): Add kernel route deletion process when
1790 interface goes down.
1791
17922001-01-08 Kunihiro Ishiguro <kunihiro@zebra.org>
1793
1794 * interface.c (if_dump_vty): When HAVE_NET_RT_IFLIST is defined,
1795 NetBSD also use this function. Suggested by Jasper Wallace
1796 <jasper@ivision.co.uk>.
1797
17982001-01-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1799
1800 * rib.c (nexthop_active_ipv4): Move back to set methodo to old
1801 one.
1802
18032001-01-05 Kunihiro Ishiguro <kunihiro@zebra.org>
1804
1805 * rib.c (rib_add_ipv4): EBGP multihop set ZEBRA_FLAG_INTERNAL
1806 flag, so treat it.
1807
18082001-01-04 Kunihiro Ishiguro <kunihiro@zebra.org>
1809
1810 * rt_netlink.c (netlink_talk_ipv6): When IPv6 route message is
1811 sent from netlink_cmd, the same message comes from netlink. To
1812 avoid confusion, temporary netlink_talk_ipv6 use netlink.sock
1813 instead of netlink_cmd.sock.
1814
18152001-01-01 Kunihiro Ishiguro <kunihiro@zebra.org>
1816
1817 * zserv.h (ZEBRA_SERV_PATH): Change "/tmp/zebra" to "/tmp/.zebra".
1818 Change "/tmp/zserv" to "/tmp/.zserv".
1819
18202000-12-29 Frank van Maarseveen <F.vanMaarseveen@inter.NL.net>
1821
1822 * rt_netlink.c (struct nlsock): Divide kernel message into listen
1823 socket and command socket.
1824 (netlink_talk): Remove socket listen code. Use netlink_parse_info
1825 for read kernel response.
1826
18272000-12-29 Kunihiro Ishiguro <kunihiro@zebra.org>
1828
1829 * rib.c (vty_show_ip_route): Show uptime of the RIP,OSPF,BGP
1830 routes.
1831
18322000-12-27 Kunihiro Ishiguro <kunihiro@zebra.org>
1833
1834 * rt_netlink.c (netlink_route_multipath): Metric value is
1835 reflected to kernel routing table.
1836
1837 * rt_ioctl.c (kernel_ioctl_ipv4_multipath): Likewise.
1838
1839 * kernel_socket.c (rtm_write): Likewise.
1840
1841 * rib.c (nexthop_active_ipv4): Only iBGP route perform recursive
1842 nexthop lookup.
1843
1844 * rt_ioctl.c (kernel_ioctl_ipv4_multipath): Add ioctl version of
1845 new RIB implementation.
1846
18472000-12-26 Kunihiro Ishiguro <kunihiro@zebra.org>
1848
1849 * rib.h: Remove MULTIPATH_NUM. It is defined by configure script.
1850
18512000-12-25 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
1852
1853 * rib.c (rib_if_up): Call rib_fib_set instead of RIB_FIB_SET for
1854 proper redistribution.
1855
18562000-12-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1857
1858 * rib.c (nexthop_active_ipv4): Add self lookup nexthop check.
1859 (show_ip_route_protocol): Support new RIB.
1860
1861 * rt_netlink.c (netlink_route_change): Do not return when gate is
1862 NULL.
1863
18642000-12-18 Kunihiro Ishiguro <kunihiro@zebra.org>
1865
1866 * rib.c (rib_lookup_ipv4_nexthop): IBGP nexthop check function is
1867 updated.
1868 (rib_add_ipv4): Free implicit withdraw route's RIB.
1869
18702000-12-15 Kunihiro Ishiguro <kunihiro@zebra.org>
1871
1872 * rib.c (nexthop_active_ipv4): Check indirect nexthop.
1873
1874 * redistribute.c (redistribute_add_multipath): Redistribution
1875 works with new rib code.
1876
18772000-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1878
1879 * rt_netlink.c (netlink_route_multipath): Check useful nexthop
1880 number.
1881 (netlink_route_multipath): Clear rtnh_flags and rtnh_hops.
1882
1883 * rib.c (nexthop_active_update): Set flag for the rib's nexthop
1884 activity is changed.
1885 (nexthop_active_check): Before checking interface is up, make it
1886 sure the interface exist.
1887
18882000-11-20 Kunihiro Ishiguro <kunihiro@zebra.org>
1889
1890 * rib.c (ip_route): New RIB prototype.
1891
18922000-11-16 Yon Uriarte <ukl2@rz.uni-karlsruhe.de>
1893
1894 * zserv.c (zsend_interface_add): Send hardware address when
1895 hw_addr_len is greater than 0.
1896
18972000-11-07 Kunihiro Ishiguro <kunihiro@zebra.org>
1898
1899 * connected.c (connected_up_ipv4): Fix ptop bug. The destination
1900 network should be installed into routing table.
1901 (connected_down_ipv4): Likewise.
1902 (connected_add_ipv4): Change to use connected_up_ipv4.
1903 (connected_delete_ipv4): Likewise.
1904
19052000-11-06 Kunihiro Ishiguro <kunihiro@zebra.org>
1906
1907 * rt_netlink.c (netlink_interface_addr): Revert Harald Welte
1908 <laforge@gnumonks.org>'s ptop patch then back to original code to
1909 avoid duplicated connected route problem. Suggested by Frank van
1910 Maarseveen <F.vanMaarseveen@inter.NL.net>.
1911
1912 * kernel_socket.c (rtm_read): Make behavior consistent even #ifdef
1913 DEBUG is defined. Reported by Jun-ichiro itojun Hagino
1914 <itojun@iijlab.net>.
1915
19162000-10-23 Jochen Friedrich <jochen@scram.de>
1917
1918 * main.c (main): Call zebra_snmp_init() when it is enabled.
1919
19202000-10-23 Kunihiro Ishiguro <kunihiro@zebra.org>
1921
1922 * zserv.c (zebra_serv_un): UNIX domain socket server of zebra
1923 protocol.
1924
19252000-10-19 Kunihiro Ishiguro <kunihiro@zebra.org>
1926
1927 * rib.c (rib_add_ipv4): Same check bug is fixed.
1928
19292000-10-03 Kunihiro Ishiguro <kunihiro@zebra.org>
1930
1931 * rib.c (rib_if_down): Remove kernel route when the interface goes
1932 down.
1933
1934 * debug.c: New command "debug zebra kernel" is added.
1935
19362000-10-02 Kunihiro Ishiguro <kunihiro@zebra.org>
1937
1938 * zebra-0.89 is released.
1939
19402000-09-24 Harald Welte <laforge@gnumonks.org>
1941
1942 * rt_netlink.c (netlink_interface_addr): Fix point-to-point address
1943 treatment in netlink interface.
1944
19452000-09-21 David Lipovkov <dlipovkov@OpticalAccess.com>
1946
1947 * rib.c (rib_if_down): Pull static route only. Protocol daemon
1948 must withdraw routes when interface goes down.
1949 (rib_add_ipv4): Check nexthop when replace route.
1950
19512000-09-21 Kunihiro Ishiguro <kunihiro@zebra.org>
1952
1953 * if_ioctl.c (if_getaddrs): New function for looking up
1954 interface's address by getifaddrs().
1955
19562000-09-10 Kunihiro Ishiguro <kunihiro@zebra.org>
1957
1958 * connected.c (connected_delete_ipv4): Add check for connected
1959 address is found or not.
1960 (connected_add_ipv6): Reflect IPv6 connected address change to
1961 protocol daemons.
1962 (connected_delete_ipv6): Likewise.
1963
19642000-09-07 David Lipovkov <davidl@nbase.co.il>
1965
1966 * rib.c (rib_delete_ipv4): Reverted the change from pseudo
1967 interface patch to original. Because ospfd deletes routes using
1968 zero ifindex.
1969
19702000-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
1971
1972 * zebra-0.88 is released.
1973
19742000-08-15 "Akihiro Mizutani" <mizutani@dml.com>
1975
1976 * rib.c (show_ip_route_protocol): Help string correction.
1977 (show_ip_route_prefix): Check prefix mask.
1978 (show_ip_route_vty_detail): Display distance and metric.
1979
19802000-08-14 Kunihiro Ishiguro <kunihiro@zebra.org>
1981
1982 * zserv.c (zsend_interface_add): Change ifindex store size from
1983 two octet to four.
1984 (zsend_interface_delete): Likewise.
1985 (zsend_interface_address_add): Likewise.
1986 (zsend_interface_address_delete): Likewise.
1987 (zsend_interface_up): Likewise.
1988 (zsend_interface_down): Likewise.
1989
19902000-08-13 Kunihiro Ishiguro <kunihiro@zebra.org>
1991
1992 * rib.c (rib_add_ipv4): Do not install distance 255 route.
1993
19942000-08-10 Toshiaki Takada <takada@zebra.org>
1995
1996 * interface.c (bandwidth_if), (no_bandwidth_if): Call
1997 zebra_interface_up_update () instead of using if_up() and if_down().
1998
19992000-08-07 "Akihiro Mizutani" <mizutani@dml.com>
2000
2001 * interface.c (bandwidth_if): Fix help string.
2002
20032000-08-07 Matthew Grant <grantma@anathoth.gen.nz>
2004
2005 * interface.c (if_dump_vty): Display bandwidth value.
2006 (bandwidth_if): New command "bandwidth <1-10000000>" is added.
2007 When interface is up, force protocol daemons to recalculate routes
2008 due to cost change.
2009 (no_bandwidth_if): Likewise.
2010 (if_config_write): Output bandwidth configuration.
2011
2012 * zserv.c (zsend_interface_add): Send bandwidth value.
2013 (zsend_interface_up): Likewise.
2014 (zsend_interface_down): Likewise.
2015
2016
20172000-08-07 Michael Rozhavsky <mike@nbase.co.il>
2018
2019 * rib.c (show_ip_route_protocol): "show ip route
2020 (bgp|connected|kernel|ospf|rip|static)" is added.
2021
20222000-08-07 Kunihiro Ishiguro <kunihiro@zebra.org>
2023
2024 * rib.c (rib_lookup_ipv4_nexthop): Check parent node until IGP
2025 nexthop is found.
2026 (rib_add_ipv4_internal): Set fib ifindex to rib ifindex.
2027
20282000-08-06 Kunihiro Ishiguro <kunihiro@zebra.org>
2029
2030 * redistribute.c (redistribute_delete): Fix bug of default route
2031 redistribute treatment.
2032
20332000-08-05 Kunihiro Ishiguro <kunihiro@zebra.org>
2034
2035 * rib.c (rib_init): Install ip_node in rib.c instead of zserv.c.
2036 Change default distance value.
2037
2038 Old New
2039 ------------------------------------------
2040 system 10 0
2041 kernel 20 0
2042 connected 30 0
2043 static 40 1
2044 rip 50 120
2045 ripng 50 120
2046 ospf 60 110
2047 ospf6 49 110
2048 bgp 70 200(iBGP) 20(eBGP)
2049 ------------------------------------------
2050
2051 * zserv.c (client_lookup): Function removed.
2052 (zsend_interface_add): Use client's output buffer. Check ifinfo
2053 flag.
2054 (zsend_interface_delete): Likewise.
2055 Delete ipv4_static_radix and ipv6_static_radix.
2056
20572000-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2058
2059 * zserv.h (struct zebra_client): When client request interface
2060 information, ifinfo is set.
2061
2062 * rib.c: Temporary Revert changes for pseudo interface.
2063
2064 * rib.h: Likewise.
2065
2066 * zserv.c: Likewise.
2067
2068 * interface.c: Likewise.
2069
20702000-08-02 David Lipovkov <davidl@nbase.co.il>
2071
2072 * interface.c (zebra_if_init): Install interface "pseudo"
2073 commands.
2074
2075 * rib.c (rib_create): ifname argument is added.
2076 (rib_add_ipv4_pseudo): New function is added.
2077 (rib_delete_ipv4_pseudo): Likewise.
2078
2079 * rib.h : Delete INTERFACE_UNKNOWN definition. Add prototype for
2080 pseudo interface functions.
2081
2082 * rt_netlink.c (netlink_link_change): Check for pseudo interface.
2083
2084 * zserv.c (ip_route): When destination is pseudo interface, call
2085 rib_add_ipv4_pseudo().
2086
2087 * zserv.c (no_ip_route): Trim "unknown" argument.
2088
20892000-07-26 kunitake@dti.ad.jp
2090
2091 * if_ioctl.c (if_get_hwaddr): Fix hardware address length from 8
2092 to 6.
2093
2094 * rtadv.c (rtadv_send_packet): Fix shift bug for hardware address.
2095
20962000-07-24 Akihiro Mizutani <mizutani@dml.com>
2097
2098 * interface.c: Use install_default() for common VTY commands.
2099
21002000-07-23 Kunihiro Ishiguro <kunihiro@zebra.org>
2101
2102 * if_ioctl.c (interface_list_ioctl): A interface list size is
2103 calculated from ifreq->if_addr.sa_len. This is for OpenBSD.
2104
2105 * ioctl.c (if_get_mtu): Remove codes for SIOCGIFDATA.
2106
21072000-07-09 Chris Dunlop <chris@onthe.net.au>
2108
2109 * if_ioctl.c (if_get_index): Add check for HAVE_BROKEN_ALIASES.
2110
21112000-07-04 Kunihiro Ishiguro <kunihiro@zebra.org>
2112
2113 * zserv.c (zebra_client_read): Add ZEBRA_REDISTRIBUTE_{ADD,DELETE}
2114 message handling.
2115
21162000-07-02 David Lipovkov <davidl@nbase.co.il>
2117
2118 * zserv.c: "ip route A.B.C.D/M unknown" command is added.
2119
21202000-06-28 Michael Rozhavsky <mike@nbase.co.il>
2121
2122 * rib.c: Remove old kernel route when new route comes in.
2123
21242000-06-13 David Lipovkov <davidl@nbase.co.il>
2125
2126 * rib.c (rib_if_up): Add check for unknown interface.
2127
21282000-06-13 Kunihiro Ishiguro <kunihiro@zebra.org>
2129
2130 * rib.h: Define INTERFACE_UNKNOWN.
2131
21322000-06-08 Kunihiro Ishiguro <kunihiro@zebra.org>
2133
2134 * Makefile.am (EXTRA_DIST): Move irdp.c until implementation is
2135 finished.
2136
21372000-06-05 David Lipovkov <davidl@nbase.co.il>
2138
2139 * interface.c (if_zebra_delete_hook): Call rib_if_delete().
2140
2141 * redistribute.c (zebra_interface_delete_update): New function.
2142
2143 * redistribute.h (zebra_interface_delete_update): New function
2144 prototype.
2145
2146 * rib.c (rib_if_delete): New function. Walk down all routes and
2147 delete all on the interface.
2148
2149 * rib.h: New function prototype.
2150
2151 * rt_netlink.c (netlink_link_change): Call
2152 zebra_interface_delete_update ().
2153
21542000-05-10 Kunihiro Ishiguro <kunihiro@zebra.org>
2155
2156 * if_ioctl.c (interface_info_ioctl): Check interface's flag before
2157 checking interface's address.
2158
21592000-04-26 Jochen Friedrich <jochen@nwe.de>
2160
2161 * GNOME-PRODUCT-ZEBRA-MIB: New file.
2162
2163 * GNOME-SMI: New file.
2164
21652000-04-23 Kunihiro Ishiguro <kunihiro@zebra.org>
2166
2167 * irdp.c: New file from 1997 development code.
2168 * irdp.h: Likewise.
2169
21702000-04-19 Kunihiro Ishiguro <kunihiro@zebra.org>
2171
2172 * rtadv.c (rtadv_send_packet): Enclose router advertisement
2173 logging with IS_ZEBRA_DEBUG_PACKET.
2174
21752000-04-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2176
2177 * zserv.c (zebra_client_close): Remove client structure from
2178 client_list when connection is terminated.
2179
21802000-03-21 David Lipovkov <davidl@nbase.co.il>
2181
2182 * connected.c (connected_add_ipv4): Allows all necessary structure
2183 updates for connected route, but doesn't insert it into rib if
2184 it's interface is down.
2185
21862000-01-21 Hideto Yamakawa <hideto.yamakawa@soliton.co.jp>
2187
2188 * rtread_getmsg.c: Set some definition for Solaris 2.5 and Solaris
2189 2.5.1.
2190
21912000-01-21 Kunihiro Ishiguro <kunihiro@zebra.org>
2192
2193 * rib.c (no_ipv6_route_ifname): Fix buf of cheking return value
2194 from str2prefix_ipv6().
2195
21962000-01-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2197
2198 * rt_socket.c: Revert to use RTF_HOST for IPv4 with /32 route and
2199 IPv6 with /128 routes.
2200 (kernel_rtm_ipv4): In case of /32 route's gateway is interface. It
2201 should have mask for cloning.
2202
22031999-12-26 Jochen.Friedrich@genorz.de
2204
2205 * interface.c (if_dump_vty): Fix a bug of missing VTY_NEWLINE.
2206
22071999-12-23 Alex Zinin <zinin@amt.ru>
2208 * interface.*: dynamic int up/down support
2209
22101999-12-09 Kunihiro Ishiguro <kunihiro@zebra.org>
2211
2212 * ipforward_proc.c (dropline): Move dropline() from lib/dropline.c
2213
2214 * rtread_proc.c (proc_route_read): Don't use dropline().
2215
22161999-12-08 Kunihiro Ishiguro <kunihiro@zebra.org>
2217
2218 * kernel_socket.c (rtm_read): When message is RTM_GET, it has own
2219 process's pid.
2220
22211999-12-04 Kunihiro Ishiguro <kunihiro@zebra.org>
2222
2223 * main.c (main): Change to default log output to ZLOG_STDOUT.
2224
2225 * zserv.c (zebra_serv): More detailed error print.
2226
22271999-11-30 Kunihiro Ishiguro <kunihiro@zebra.org>
2228
2229 * kernel_socket.c (rtm_read): Check old pid for static route
2230 insertion check.
2231
22321999-11-30 Kunihiro Ishiguro <kunihiro@zebra.org>
2233
2234 * interface.c (if_dump_vty): BSDI/OS uses 64bit for interface
2235 statistics counter.
2236
2237 * mtu_kvm.c: New file added.
2238
22391999-11-27 Vladimir B. Grebenschikov <vova@express.ru>
2240
2241 * kernel_socket.c (rtm_write): Set RTF_CLONING flag for
2242 route to the directly connected interface.
2243
22441999-11-27 Kunihiro Ishiguro <kunihiro@zebra.org>
2245
2246 * rt_socket.c: Delete USE_HOST_BIT definition.
2247
22481999-11-21 Michael Handler <handler@sub-rosa.com>
2249
2250 * rtread_getmsg.c: Undef some definition to resolve conflict.
2251
22521999-11-27 Kunihiro Ishiguro <kunihiro@zebra.org>
2253
2254 * kernel_socket.c (rtm_write): Change to use pre stored struct_dl
2255 value for gateway specification.
2256
22571999-11-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2258
2259 * rt_socket.c (kernel_rtm_ipv4): Even mask is 32 under IPv4 or
2260 128 under IPv6, don't use RTF_HOST.
2261
22621999-11-21 Kunihiro Ishiguro <kunihiro@zebra.org>
2263
2264 * Makefile.am (EXTRA_DIST): Add rtread_getmsg.c.
2265
22661999-11-21 Michael Handler <handler@sub-rosa.com>
2267
2268 * rtread_getmsg.c: Added for Solaris 2.6 support.
2269
22701999-11-18 Kunihiro Ishiguro <kunihiro@zebra.org>
2271
2272 * rtread_sysctl.c (rtm_read_route): RTM_DELETE handling added.
2273
2274 * rt_socket.c (kernel_read): Better BSD routing socket support.
2275
22761999-10-19 Kunihiro Ishiguro <kunihiro@zebra.org>
2277
2278 * client_main.c: Disable making obsolete zebra test `client'
2279 command.
2280
22811999-10-18 Kunihiro Ishiguro <kunihiro@zebra.org>
2282
2283 * zebra.c: Renamed to zserv.c.
2284
2285 * zebra.h: Global definitions are moved to lib/zebra.h. Then
2286 renamed to zserv.h.
2287
22881999-10-15 Jordan Mendelson <jordy@wserv.com>
2289
2290 * if_ioctl.c: Add Linux 2.2.X's alias support and dynamic
2291 interface. Remove ugly MAX_INTERFACE handling codes.
2292
22931999-09-17 Satosi KOBAYASI <kobayasi@north.ad.jp>
2294
2295 * Fix serious bug of IPv6 route deletion.
2296
22971999-09-11 Kunihiro Ishiguro <kunihiro@zebra.org>
2298
2299 * ioctl.c (if_set_prefix): Properly set broadcast address.
2300
23011999-09-04 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2302
2303 * rib.c (rib_add_ipv6, rib_delete_ipv6): now protocol daemons
2304 can install connected route to kernel via zebra
2305
23061999-08-24 VOP <vop@unity.net>
2307
2308 * rib.c: Include "sockunion.h"
2309
23101999-08-22 Kunihiro Ishiguro <kunihiro@zebra.org>
2311
2312 * ipforward.h: New file.
2313
2314 * zebra.h: Obsolete message ZEBRA_GET_ALL_INTERFACE,
2315 ZEBRA_GET_ONE_INTERFACE, ZEBRA_GET_HOSTINFO are deleted.
2316
23171999-08-18 Kunihiro Ishiguro <kunihiro@zebra.org>
2318
2319 * zebra.h (ZEBRA_INTERFACE_ADDRESS_ADD):
2320 ZEBRA_INTERFACE_{ADD,DELETE} added.
2321
23221999-08-15 Kunihiro Ishiguro <kunihiro@zebra.org>
2323
2324 * rib.c: show ip route A.B.C.D works.
2325
2326 * zebra.c (zebra_read_ipv4): Add ifindex to zebra messages.
2327
23281999-08-12 Kunihiro Ishiguro <kunihiro@zebra.org>
2329
2330 * zebra.h: New Zebra message ZEBRA_INTERFACE_{ADD,DELETE} added.
2331
23321999-08-09 Kunihiro Ishiguro <kunihiro@zebra.org>
2333
2334 * interface.h: New file.
2335 * Makefile.am: Add interface.h
2336
23371999-08-04 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2338
2339 * redistribute.c (zebra_redistribute): give ifindex to client.
2340
23411999-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2342
2343 * main.c (longopts): -k, --keep_kernel option added.
2344
23451999-07-18 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2346
2347 * rt_socket.c (rtm_write): forgot closing socket bug fixed.
2348
23491999-07-17 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2350
2351 * rib.c (show_ipv6_cmd): if rib is link show interface name.
2352
23531999-07-17 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2354
2355 * rt_socket.c (rtm_write): use sockaddr_dl when null gateway.
2356
23571999-07-16 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2358
2359 * rt_socket.c (rtm_write): ipv6 route table bug fixed.
2360
23611999-07-15 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2362
2363 * zebra.c (zebra_read_ipv6): read link prefix from ospf6 support
2364
23651999-07-15 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>
2366
2367 * rt_socket.c (kernel_rtm_ipv6): gate treatment bug fixed.
2368
23691999-07-15 Kunihiro Ishiguro <kunihiro@zebra.org>
2370
2371 * if_sysctl.c (ifm_read): Clear sockunion argument before fetching
2372 data. Suggested by "Chris P. Ross" <cross@eng.us.uu.net>
2373
23741999-07-08 HEO SeonMeyong <seirios@Matrix.IRI.Co.Jp>
2375
2376 * interface.c (if_tun_add): Add KAME's gif tunnel setting codes.
2377
23781999-06-26 Kunihiro Ishiguro <kunihiro@zebra.org>
2379
2380 * zebra.c (zebra_serv): Only accept loopback address connection.
2381
23821999-06-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2383
2384 * zebra.h (ZEBRA_ROUTE_EXTERNAL): Add zebra messages flags
2385
23861999-06-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2387
2388 * ipforward_proc.c: ipforward_on () and ipforward_off () added.
2389
23901999-06-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2391
2392 * ipforward_proc.c (ipforward_ipv6): Check for IPv6 forwarding
2393 using /proc file system is added.
2394
23951999-06-06 Kunihiro Ishiguro <kunihiro@zebra.org>
2396
2397 * if_ioctl.c (if_get_index): Interface index set bug is fixed by
2398 adding #else at the middle of function. Suggested by David Luyer
2399 <luyer@ucs.uwa.edu.au>.
2400
24011999-05-29 <kunihiro@zebra.org>
2402
2403 * rt_ioctl.c: Comment out #include <linux/ipv6_route.h>.
2404
24051999-05-26 Kunihiro Ishiguro <kunihiro@zebra.org>
2406
2407 * zebra.h (ZEBRA_ROUTE_MAX): Add new define for the max value of
2408 the sort of routes.
2409
24101999-05-25 Patrick Koppen <koppen@rhrk.uni-kl.de>
2411
2412 * rt_netlink.c (netlink_socket): Make netlink socket non-blocking.
2413 (netlink_parse_info): If errno is EWOULDBLOCK then continue to
2414 parse the message.
2415 (netlink_talk): Likewise
2416
24171999-05-17 <kunihiro@zebra.org>
2418
2419 * redistribute.c (zebra_check_addr): Added for loopback address
2420 check.
2421
24221999-05-15 Kunihiro Ishiguro <kunihiro@zebra.org>
2423
2424 * rt_netlink.c (netlink_route_change): Tempolary bypass ipv6 route
2425 change treatment.
2426
2427 * Makefile.am (noinst_HEADERS): redistribute.h added.
2428
2429 * redistribute.h: New file.
2430
24311999-05-14 Stephen R. van den Berg <srb@cuci.nl>
2432
2433 * zebra.c (show_table): Show all table configuration DEFUN.
2434 (config_table): Config table number DEFUN.
2435
2436 * rt_netlink.c: Add support for multiple routing table.
2437
2438 * rib.c (rib_weed_table): New function added for delete all
2439 routes from specified routing table.
2440
2441 * main.c (signal_init): SIGTERM call sigint.
2442 (sigint): Loggging more better message.
2443
24441999-05-09 Kunihiro Ishiguro <kunihiro@zebra.org>
2445
2446 * rt_netlink.c: Change log () to zlog ().
2447
24481999-05-07 <kunihiro@zebra.org>
2449
2450 * zebra.h (ZEBRA_ROUTE_OSPF6): Added for ospf6d route.
2451
24521999-04-20 Kunihiro Ishiguro <kunihiro@zebra.org>
2453
2454 * interface.c: Add `no ip address' command.
2455
24561999-04-10 Kunihiro Ishiguro <kunihiro@zebra.org>
2457
2458 * rt_netlink.c (kernel_read): Function added for asynchronous
2459 zebra between kernel communication.
2460
24611999-03-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2462
2463 * rtread_sysctl.c (rtm_read): Fix address memcopy overrun bug.
2464 Reported by Achim Patzner <ap@bnc.net>.
2465
24661999-03-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2467
2468 * Makefile.am: Install configuration sample with 600 permission.
2469
24701999-03-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2471
2472 * Makefile.am: Add -I.. to INCLUDES.
2473
24741999-02-18 Peter Galbavy <Peter.Galbavy@knowledge.com>
2475
2476 * syslog support added
2477
24781999-02-17 Peter Galbavy <Peter.Galbavy@knowledge.com>
2479
2480 * if_sysctl.c (interface_list): allocated memory free when unknown
2481 ifm_type is returned.
2482
2483 * ioctl.c (if_get_mtu): added SIOCGIFDATA treatment.
2484
24851998-12-15 Magnus Ahltorp <map@stacken.kth.se>
2486
2487 * interface.c: Header include added.
2488
24891998-12-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2490
2491 * rt.h (kernel_delete_ipv6): change int index to unsigned int index.
2492
24931998-12-13 Kunihiro Ishiguro <kunihiro@zebra.org>
2494
2495 * if_ioctl.c (interface_list_ioctl): interface flag must be
2496 checked before check addresses of the interface.
2497
24981998-12-07 Kunihiro Ishiguro <kunihiro@zebra.org>
2499
2500 * Makefile.am (INCLUDES): add @INCLUDES@ for Linux IPv6.
2501
25021998-10-14 Kunihiro Ishiguro <kunihiro@zebra.org>
2503
2504 * ioctl.c: Linux version before 2.1.0 need interface route setup.
2505
25061998-09-15 HEO SeonMeyong <seirios@matrix.iri.co.jp>
2507
2508 * change HYDRANGEA to KAME
2509
25101998-09-01 Kunihiro Ishiguro <kunihiro@zebra.org>
2511
2512 * if_ioctl.c (if_addr_ioctl): set address family for getting
2513 interface's address.
2514 (if_get_index): silently return when can't get interface's index.
2515
25161998-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
2517
2518 * main.c (main): batch mode option '-b' added.
2519
25201998-08-16 Kunihiro Ishiguro <kunihiro@zebra.org>
2521
2522 * ioctl.c (if_set_prefix): add `ip address IPV4ADDR' command.
2523 * interface.c (shutdown_if): add interface shutdown and no
2524 shutdown command.
2525
25261998-08-12 Kunihiro Ishiguro <kunihiro@zebra.org>
2527
2528 * rib.c (rib_add_ipv6): delete rib_add_in6.
2529
25301998-07-27 Kunihiro Ishiguro <kunihiro@zebra.org>
2531
2532 * main.c: retain flag is added.
2533
25341998-07-08 Kunihiro Ishiguro <kunihiro@zebra.org>
2535
2536 * rtable.[ch]: merged with rib.[ch]
2537
25381998-07-07 Kunihiro Ishiguro <kunihiro@zebra.org>
2539
2540 * connected.h: renamed from ifa.h.
2541
25421998-06-09 Kunihiro Ishiguro <kunihiro@zebra.org>
2543
2544 * rename if.c to interface.c
2545 * rename ifa.c to connected.c
2546
2547 * Porting to Debian GNU/Linux 2.0 (hamm).
2548
25491998-06-08 Kunihiro Ishiguro <kunihiro@zebra.org>
2550
2551 * rt_netlink.c: renamed from krt_netlink.c
2552
2553 * fib.c: deleted.
2554 * rt_kvm.c: deleted.
2555 * rtread_getmsg.c: deleted.
2556
25571998-06-07 Kunihiro Ishiguro <kunihiro@zebra.org>
2558
2559 * if.c (multicast): add multicast flag [un]set fucntion.
2560
25611998-05-19 Yamshita TAKAO <jargon@lares.dti.ne.jp>
2562
2563 * rt_socket.c: Modify for compile on Solaris, but dont't work it.
2564 rt_socket.c have some undefined function, so add directive "IMPLEMENT"
2565
25661998-05-18 Yamshita TAKAO <jargon@lares.dti.ne.jp>
2567
2568 * zebra.c: Modify for compile on Solaris.
2569
25701998-05-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2571
2572 * main.c: change CONFDIR to SYSCONFDIR.
2573
25741998-05-01 Kunihiro Ishiguro <kunihiro@zebra.org>
2575
2576 * .cvsignore: added.
2577
25781998-04-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2579
2580 * client.c: moves to ../lib.
2581
25821998-03-30 Kunihiro Ishiguro <kunihiro@zebra.org>
2583
2584 * if_ioctl.c (if_get_addr): Change address copy from memcopy() to
2585 structure assignment.
2586
25871998-03-30 URA Hiroshi <ura@yamato.ibm.co.jp>
2588
2589 * if_sysctl.c (ifm_interface_add): sdl->sdl_data copy bug fixed.
2590
25911998-02-23 "Hannes R. Boehm" <hannes@boehm.org>
2592
2593 * if.c (if_init): add config_exit_cmd and config_help_cmd.
2594
25951998-01-24 Kunihiro Ishiguro <kunihiro@zebra.org>
2596
2597 * rt_ioctl.c (route_ioctl): EPERM treatment added.
2598
25991998-01-05 Kunihiro Ishiguro <kunihiro@zebra.org>
2600
2601 * rt_socket.c (kernel_read): communication port zebra between
2602 kernel is now handled by kernel_read.
2603
26041998-01-02 Kunihiro Ishiguro <kunihiro@zebra.org>
2605
2606 * main.c (main): zebra [-P port] can specify vty port number.
2607
26081997-12-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2609
2610 * zebra.c: change select will be block.
2611
26121997-12-04 Kunihiro Ishiguro <kunihiro@zebra.org>
2613
2614 * add static route treatment.
2615
26161997-11-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2617
2618 * rt_netlink.c: add netlink support over GNU/Linux system.
2619
26201997-11-23 Kunihiro Ishiguro <kunihiro@zebra.org>
2621
2622 * all inet_addr is changed to inet_aton.
2623
2624 * zebra.c (ip_route): add ip route command for static routes.
2625
26261997-11-20 Kunihiro Ishiguro <kunihiro@zebra.org>
2627
2628 * if.c (if_flag_dump): Linux port of if_flag_dump and _vty.
2629
26301997-11-19 Kunihiro Ishiguro <kunihiro@zebra.org>
2631
2632 * if.c: add interface command.
2633
26341997-11-18 Kunihiro Ishiguro <kunihiro@zebra.org>
2635
2636 * ipforward_proc.c : Now works on Linux.
2637
26381997-10-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2639
2640 * command.c : add completion feature.
2641
26421997-10-18 Kunihiro Ishiguro <kunihiro@zebra.org>
2643
2644 * vty.c (vty_command): add vty interface.
2645
26461997-10-13 Kunihiro Ishiguro <kunihiro@zebra.org>
2647
2648 * zebra.c: add verbose mode.
2649
26501997-10-12 SonMyong Ho <s-ho@Matrix.IRI.Co.Jp>
2651
2652 * Hydrangea for FreeBSD supported
2653 * in.h: add some prototype.
2654
26551997-10-11 Kunihiro Ishiguro <kunihiro@zebra.org>
2656
2657 * rt_socket.c and rtread.c completely rewritten.
2658
26591997-10-05 Kunihiro Ishiguro <kunihiro@zebra.org>
2660
2661 * rt_socket.c: rename kernel_sock to routing_socket
2662
26631997-10-04 Kunihiro Ishiguro <kunihiro@zebra.org>
2664
2665 * if.c (if_new): interface structure change from linklist to vector.
2666
26671997-10-03 Kunihiro Ishiguro <kunihiro@zebra.org>
2668
2669 * vector.c (vector_init): create vector related function
2670
26711997-09-25 Kunihiro Ishiguro <kunihiro@zebra.org>
2672
2673 * Makefile.in: add tags target
2674
2675 * start IPv6 support for INRIA FreeBSD.
2676