]> git.puffer.fish Git - matthieu/frr.git/log
matthieu/frr.git
19 years ago[lib/sockunion] trivial: use XSTRDUP.
Paul Jakma [Tue, 21 Feb 2006 01:37:14 +0000 (01:37 +0000)]
[lib/sockunion] trivial: use XSTRDUP.

2006-02-21 Paul Jakma <paul.jakma@sun.com>

* sockunion.c: (sockunion_{su2str,log}) Use XSTRDUP.
  Particularly with _su2str, as that string gets XFREEd,
  which can be annoying if run debug code in memory.c.

19 years ago[bgpd] Add Clrng description to bgp summary state.
Paul Jakma [Tue, 21 Feb 2006 01:14:13 +0000 (01:14 +0000)]
[bgpd] Add Clrng description to bgp summary state.

2006-02-21 Paul Jakma <paul.jakma@sun.com>

* bgp_vty.c: (bgp_show_summary) Add a 'Clrng' sub-description
  to state of peer while it's suppressed due to clearing.

19 years ago[bgpd] Record afi/safi in bgp_table. Serialise peer clear with FSM.
Paul Jakma [Tue, 21 Feb 2006 01:09:01 +0000 (01:09 +0000)]
[bgpd] Record afi/safi in bgp_table. Serialise peer clear with FSM.

2006-02-21 Paul Jakma <paul.jakma@sun.com>

* bgpd.h: move the clear_node_queue to be peer specific.
  Add a new peer status flag, PEER_STATUS_CLEARING.
* bgp_table.h: (struct bgp_table) Add fields to record afi,
          safi of the table.
          (bgp_table_init) Take afi and safi to create table for.
        * bgp_table.c: (bgp_table_init) record the afi and safi.
        * bgp_nexthop.c: Update all calls to bgp_table_init.
        * bgp_vty.c: ditto.
        * bgpd.c: ditto.
        * bgp_fsm.c: (bgp_timer_set) dont bring up a session which is
  clearing.
        * bgp_route.c: (general) Update all bgp_table_init calls.
          (bgp_process_{rsclient,main}) clear_node is serialised
          via PEER_STATUS_CLEARING and fsm now.
          (struct bgp_clear_node_queue) can be removed. struct bgp_node
          can be the queue item data directly, as struct peer can be
          kept in the new wq global user data and afi/safi can be
          retrieved via bgp_node -> bgp_table.
          (bgp_clear_route_node) fix to get peer via wq->spec.data,
          afi/safi via bgp_node->bgp_table.
          (bgp_clear_node_queue_del) no more item data to delete, only
          unlock the bgp_node.
          (bgp_clear_node_complete) only need to unset CLEARING flag
          and unlock struct peer.
          (bgp_clear_node_queue_init) queue attaches to struct peer
          now. record peer name as queue name.
          (bgp_clear_route_table) If queue transitions to active,
          serialise clearing by setting PEER_STATUS_CLEARING rather
          than plugging process queue, and lock peer while queue
          active.
          Update to pass only bgp_node as per-queue-item specific data.

19 years ago[solaris] version depend files, auto-generate. Start zebra when needed.
Paul Jakma [Sun, 19 Feb 2006 18:59:26 +0000 (18:59 +0000)]
[solaris] version depend files, auto-generate. Start zebra when needed.

2006-02-19 Paul Jakma <paul.jakma@sun.com>

* depend.*: renamed to depend.*.in.
* depend.*.in: Add version dependency.
* Makefile.am: Generate depend.* from depend.*.in
  Distribute the depend.*.in files rather than the depend.*
  files.
* quagga.init.in: Enable zebra if one of the link-state
  daemons is started.
  Restart method is not required - SMF handles that.
* quagga.xml.in: Remove restart method details.

19 years ago[doc] Credit Jeroen Simonetti for contributing snmptrap.texi
Paul Jakma [Sun, 19 Feb 2006 07:16:25 +0000 (07:16 +0000)]
[doc] Credit Jeroen Simonetti for contributing snmptrap.texi

2006-02-19 Paul Jakma <paul.jakma@sun.com>

* quagga.info: update auto-built file.
* ChangeLog: Fix old, existing entry for snmptrap.texi addition to
  credit the author, who got in touch with me.
* snmptrap.texi: Add comment line with author's details.

19 years ago[bgpd] trivial readability fix
Paul Jakma [Sat, 18 Feb 2006 10:52:09 +0000 (10:52 +0000)]
[bgpd] trivial readability fix

2006-02-18 Paul Jakma <paul.jakma@sun.com>

* bgp_route.c: (bgp_announce_check) trivial, move declaration
  of two local variables into the only block where they are
  used, to aid the reader.

19 years ago[bug #89] Fix leak of community when set community is used
Paul Jakma [Sat, 18 Feb 2006 10:49:04 +0000 (10:49 +0000)]
[bug #89] Fix leak of community when set community is used

2006-02-18 Paul Jakma <paul.jakma@sun.com>

* bgp_routemap.c: (route_set_community) Quick, very hacky, fix
  for the set-community leak, bug #89. True fix will be to
  detangle the web of *_intern caching and provide saner object
  caching for Quagga, future work.

19 years ago[bgpd] trivial fix for gcc warning
paul [Sun, 5 Feb 2006 17:55:35 +0000 (17:55 +0000)]
[bgpd] trivial fix for gcc warning

2006-02-05 Paul Jakma <paul.jakma@sun.com>

* bgp_aspath.c: (aspath_gettoken) fix gcc warning about
  possible uninitialised usage.

19 years ago[bgpd] Fix peer prefix counts and make it slightly more robust
paul [Sun, 5 Feb 2006 17:51:19 +0000 (17:51 +0000)]
[bgpd] Fix peer prefix counts and make it slightly more robust

2006-02-05 Paul Jakma <paul.jakma@sun.com>

* bgp_route.h: Add BGP_INFO_COUNTED to track whether
  prefix has been counted or not.
* bgp_route.c: (bgp_pcount_{inc,dec}rement) new helpers, to
  centralise inc/dec of prefix-count,
  (bgp_rib_remove) Remove pcount decrement, use helper.
  (bgp_rib_withdraw) ditto, additionally use previous function
  too.
  (bgp_update_main) Use pcount helpers.
  (bgp_clear_route_node) ditto, aslo REMOVED routes don't need
  clearing.

19 years ago[lib/workqueue] remove the useless 'delay' factor.
paul [Thu, 2 Feb 2006 17:50:19 +0000 (17:50 +0000)]
[lib/workqueue] remove the useless 'delay' factor.

2006-02-02 Paul Jakma <paul.jakma@sun.com>

* workqueue.h: (struct work_queue) Remove the delay field.
  It served no purpose and just introduced bad behaviour.
  Should be excised before its allowed to escape into 1.0.
  This removes need for the 'flood' and runs_since_clear
  fields.
* workqueue.c: (general) excise delay factor between queue
  runs, hence the 'flood' crap too.. See above.
* bgp_route.c: (bgp_{clear_node,process}_queue_init) delay
  field is removed from workqueue spec.

19 years ago[zebra] Display flags on their line in 'show interface'.
paul [Thu, 2 Feb 2006 17:27:13 +0000 (17:27 +0000)]
[zebra] Display flags on their line in 'show interface'.

2006-02-02 Paul Jakma <paul.jakma@sun.com>

* interface.c: (if_dump_vty) move flags to their line, neater.

19 years ago[build system] cleanup --enable-snmp by removing ucd-snmp cruft
paul [Tue, 31 Jan 2006 10:09:27 +0000 (10:09 +0000)]
[build system] cleanup --enable-snmp by removing ucd-snmp cruft

2006-01-31 Paul Jakma <paul.jakma@sun.com>

* configure.ac: Cleanup the hideous {net,ucd}-snmp section
  by removing ucd-snmp. Hence fixing detection where
  net-snmp is installed in /usr/local (Boris Kovalenko reported
  the problem).

19 years agoripd.c: correct bug that allowed route learnt through RIP to take precedence over...
vincent [Mon, 30 Jan 2006 18:12:42 +0000 (18:12 +0000)]
ripd.c: correct bug that allowed route learnt through RIP to take precedence over connected routes

19 years ago[zebra] Fix pauls zebra_rib/rib_process commit mistakes, again.
paul [Mon, 30 Jan 2006 14:08:51 +0000 (14:08 +0000)]
[zebra] Fix pauls zebra_rib/rib_process commit mistakes, again.

2006-01-30 Paul Jakma <paul.jakma@sun.com>

* zebra_rib.c: (rib_process) Fourth time lucky on this jinxed
  commit, last commit had a hole that could allow connected
  route selection to escape beyond the connected route logic.
  This time I cross-checked with Gunnar first. ;)

19 years ago[zebra] Fix incorrect changes made in RIB metric selection patch
paul [Wed, 25 Jan 2006 06:31:04 +0000 (06:31 +0000)]
[zebra] Fix incorrect changes made in RIB metric selection patch

2006-01-25 Gunnar Stigen <gunnar.stigen@axxessit.no>

* zebra_rib.c: (rib_process) Application of Gunnar's earlier
  metric selection RIB change included incorrect tidy-ups made
  by commiter. Fix. (NB: any errors here are again due to paul).

19 years ago[zebra/solaris] Interface state fixups for Solaris.
paul [Wed, 25 Jan 2006 04:31:40 +0000 (04:31 +0000)]
[zebra/solaris] Interface state fixups for Solaris.

2006-01-25 Paul Jakma <paul.jakma@sun.com>

* (general) More solaris PF_ROUTE hacks. The IFF_UP mangling
  for solaris was incomplete on the PF_ROUTE side. fix it.
  This changeset generally uglifies things. For some future
  work I'd like to see the state changes seperated out from
  the details of the code. Differences between systems might
  then be slightly easier to implement without convoluted
  hacks.
  Changes should be specific to Solaris mostly, however
  also tested on FreeBSD 6.
* if_ioctl_solaris.c: (interface_list_ioctl) ignore ~IFF_UP
  interfaces, we'll hear about them when/if interface goes up
  through NEWADDR.
  Update flags explicitely at end of it to kick mangling.
* ioctl_solaris.c: (if_mangle_up) removed to interface.c, in
  kind.
  (lifreq_set_name) more convenient to take the string, than
  the ifp.
  (if_get_flags_direct) new convenience function, returns
  the actual flags. Used during bootstrap in if_ioctl_solaris.c
  to peek at flags of logical interfaces to see whether or
  not to ignore them.
  (if_get_flags) ENXIO means it's gone, poke out IFF_UP and
  kick flags update.
  (if_{un,}set_flags) flags argument should be 64bit.
* ioctl.{c,h}: flags argument should be 64bit.
* interface.h: Add a 'primary_state' flag to struct zebra_if on
  SUNOS_5.
  Export if_flags_update.
* interface.c: (if_flags_mangle) moved over in kind from
  ioctl_solaris.c. Nasty kludge to try get IFF_UP right, as
  much as is possible. Also keep track of the actual IFF_UP
  value for the primary interface, so we can know when the ifp
  must be deleted.
  (if_flags_update) Take a new interface flags value, apply it
  to the interface, and take whatever actions are required due
  to flag transitions.
  (if_refresh) flag state change logic is moved out to
  previous. Just call if_get_flags, which will end up using
  previous to effect the update of flags.
  (if_flag_dump_vty) IFF_IPV{4,6} aren't interesting, VIRTUAL
  and NOXMIT are though.
* kernel_socket.c: (ifm_read) Down->Down transitions shouldn't
  create ifp, for non-IFANNOUNCE systems.
  Use if_flags_update to update flags.
  flag transition logic is now handled automatically through
  if_flags_update.
  (ifam_read) Better to call if_refresh *after* adding
    connected addresses, as connected count affects IFF_UP on
    IFF_UP-mangled systems.
    On Solaris, Up->Down due to DELADDR means we need to delete
  the ifp - the IFINFO might already have been and gone.
* rt.h: include other dependent headers.

19 years ago[cvs] update cvsignore file.
paul [Thu, 19 Jan 2006 20:33:47 +0000 (20:33 +0000)]
[cvs] update cvsignore file.

19 years ago[version] bump configure.ac version number to 0.99.3
paul [Thu, 19 Jan 2006 20:26:17 +0000 (20:26 +0000)]
[version] bump configure.ac version number to 0.99.3

2006-01-19 Paul Jakma <paul.jakma@sun.com>

* configure.ac: Bump to 0.99.3
* doc/quagga.info: update auto-built file.

19 years ago[lib/stream] small compile fix, use uint64_t, not u_int64_t.
paul [Thu, 19 Jan 2006 20:22:16 +0000 (20:22 +0000)]
[lib/stream] small compile fix, use uint64_t, not u_int64_t.

2006-01-19 Paul Jakma <paul.jakma@sun.com>

* stream.c: (stream_getq_from) should use POSIX uint64_t
  not u_int64_t. Latter is neither a traditional BSD type, nor
  a POSIX type.

19 years ago[compiler] miscellaneous trivial compiler warning fixes
paul [Thu, 19 Jan 2006 20:16:55 +0000 (20:16 +0000)]
[compiler] miscellaneous trivial compiler warning fixes

2006-01-19 Paul Jakma <paul.jakma@sun.com>

        * (general) various miscellaneous compiler warning fixes.
          Remove redundant break statements from switch clauses
          which return.
          return from main, not exit, cause it annoys SOS.
          Remove stray semi-colons which cause empty-statement
          warnings.
* zebra/main.c: (sighup) remove private declaration of external
  function.

19 years ago[ospfd] Add support for oversized LSAs.
paul [Wed, 18 Jan 2006 15:07:38 +0000 (15:07 +0000)]
[ospfd] Add support for oversized LSAs.

2006-01-18 Juergen Kammer <j.kammer@eurodata.de>

* ospf_lsa.c: (ospf_router_lsa_new) dont take reference to the
  stream data until it is constructed, data reference is
  volatile due to the potential resize in link_info_set

2006-01-18 Paul Jakma <paul.jakma@sun.com>

* ospf_lsa.c: (link_info_set) Resize the stream if required and
  possible. Return number of links added.
  (lsa_link_*_set) use return value from previous.
* ospf_lsa.h: Add OSPF_ROUTER_LSA_LINK_SIZE define.

19 years ago2006-01-18 Gunnar Stigen <gunnar.stigen@axxessit.no>
paul [Wed, 18 Jan 2006 14:52:52 +0000 (14:52 +0000)]
2006-01-18 Gunnar Stigen <gunnar.stigen@axxessit.no>

* zebra_rib.c: Take interface metric into account.

19 years ago2006-01-17 Vincent Jardin <vincent.jardin@6wind.com>
vincent [Tue, 17 Jan 2006 23:39:04 +0000 (23:39 +0000)]
2006-01-17 Vincent Jardin <vincent.jardin@6wind.com>

        * md5.c: Don't forget to keep const.
        * regex.c: Cleanup code and remove warnings.

19 years ago[zebra] Record NEWADDR metric on PF_ROUTE, print CACHEINFO debug on netlink
paul [Tue, 17 Jan 2006 18:03:04 +0000 (18:03 +0000)]
[zebra] Record NEWADDR metric on PF_ROUTE, print CACHEINFO debug on netlink

2006-01-17 Paul Jakma <paul.jakma@sun.com>

* kernel_socket.c: (ifam_read) Read metric from RTM_NEWADDR.
  If interface is an alias, pass the alias as a label for
  connected_add_ipv{4,6}.
* rt_netlink.c: (netlink_interface_addr) print out
  IFA_CACHEINFO info, if present, when debugging kernel
  messages.

19 years ago[zebra] Defensive if_getaddrs bug fix.
paul [Tue, 17 Jan 2006 17:59:11 +0000 (17:59 +0000)]
[zebra] Defensive if_getaddrs bug fix.

2006-01-17 Gunnar Stigen <gunnar.stigen@axxessit.no>

* if_ioctl.c: (if_getaddrs) Be defensive about assuming
  that struct ifaddrs will have ifa_addr filled in.

19 years ago[zebra] Include metric on connected routes.
paul [Tue, 17 Jan 2006 17:56:18 +0000 (17:56 +0000)]
[zebra] Include metric on connected routes.

2006-01-17 Gunnar Stigen <gunnar.stigen@axxessit.no>

* connected.c: (connected_up_ipv{4,6}) Include interface metric on
  connected routes.

19 years ago[ospfd/zserv] adjust to new format
paul [Tue, 17 Jan 2006 17:49:53 +0000 (17:49 +0000)]
[ospfd/zserv] adjust to new format

2006-01-17 Paul Jakma <paul.jakma@sun.com>

* ospf_packet.c: (ospf_verify_header) print out the types
  involved if there's a mismatch.
* ospf_zebra.c: (ospf_zebra_add) Adjust to new zserv format.

19 years ago[lib/zclient] Export zclient_create_header
paul [Tue, 17 Jan 2006 17:43:18 +0000 (17:43 +0000)]
[lib/zclient] Export zclient_create_header

2006-01-17 Paul Jakma <paul.jakma@sun.com>

* zclient.{c,h}: (zclient_create_header) export this, seems others
  could use it (in lieu of more complete zserv helpers).

19 years ago[lib/vty] Add 'no terminal monitor' alias
paul [Tue, 17 Jan 2006 17:42:03 +0000 (17:42 +0000)]
[lib/vty] Add 'no terminal monitor' alias

2006-01-17 Paul Jakma <paul.jakma@sun.com>

* vty.c: (no_terminal_monitor_cmd) New ALIAS for
  terminal_no_monitor, in the more normal negating format,
  to be kind to my fingers.
  (vty_init) install new ALIAS.

19 years ago[lib/md5] md5_loop should take void pointer for more useful caller warnings.
paul [Tue, 17 Jan 2006 17:40:45 +0000 (17:40 +0000)]
[lib/md5] md5_loop should take void pointer for more useful caller warnings.

2006-01-17 Paul Jakma <paul.jakma@sun.com>

* md5.{c,h}: (md5_loop) Is better off taking a void * and doing
  cast to byte wise type internally, avoids needs for casts
  in users.

19 years ago[zserv] fix up custom isisd and bgpd Zserv functions for new format.
paul [Tue, 17 Jan 2006 17:33:46 +0000 (17:33 +0000)]
[zserv] fix up custom isisd and bgpd Zserv functions for new format.

2006-01-17 Paul Jakma <paul.jakma@sun.com>

* bgp_nexthop.c: (zlookup_read*) convert to new Zserv format.
  (zlookup_query_ipv6) ditto.
  (bgp_import_check) ditto.
* isis_zebra.c: (isis_zebra_route_add_ipv4) fix for new
  zserv format.

19 years ago[ripd] Fix verification of received MD5 authenticated packets
paul [Tue, 17 Jan 2006 17:26:25 +0000 (17:26 +0000)]
[ripd] Fix verification of received MD5 authenticated packets

2006-01-17 Paul Jakma <paul.jakma@sun.com>

* ripd.c: (rip_auth_md5) remove pdigest, not needed.
  Use a local buffer for the auth_str, where it can be properly
  nul padded. Do so, hence fixing MD5 authentication.
  Key looked up via key ring should be used in preference to
  the RIPv1 simple password, not other way around.
  No need to copy around digests, we can reference them
  directly.
  The auth_len received can't be trusted, some implementations
  lie (e.g. older ripd).
  (rip_auth_md5_ah_write) rename len local variable to doff
  to be consistent with other functions.
  (rip_auth_header_write) add the missing return.
  (rip_auth_md5_set) use the proper constructs to access stream.

19 years ago2006-01-16 Paul Jakma <paul.jakma@sun.com>
paul [Mon, 16 Jan 2006 12:06:00 +0000 (12:06 +0000)]
2006-01-16 Paul Jakma <paul.jakma@sun.com>

* aspath_test.c: (validate) free the temporary aspaths.
  (empty_get_test) ditto.

19 years ago[bgpd] add aspath_finish, static resource cleanup function.
paul [Mon, 16 Jan 2006 12:01:29 +0000 (12:01 +0000)]
[bgpd] add aspath_finish, static resource cleanup function.

2006-01-16 Paul Jakma <paul.jakma@sun.com>

* bgp_aspath.c:
  (aspath_snmp_pathseg) move the static stream pointer out to
  file scope, so it can be freed.
  (aspath_finish) new function, free aspath resources.
* bgp_aspath.h: (aspath_finish) export.

19 years ago[bgpd] fix some leaks introduced in aspath rewrite.
paul [Mon, 16 Jan 2006 11:13:27 +0000 (11:13 +0000)]
[bgpd] fix some leaks introduced in aspath rewrite.

2006-01-16 Paul Jakma <paul.jakma@sun.com>

* bgp_aspath.c: (assegment_append_asns) XREALLOC can return
  NULL theoretically, take care not to lose the allocated data.
  (aspath_hash_alloc) aspath_dup already set the aspath
  string - fix leak.
  (aspath_parse) aspath_hash_alloc dupes the entire aspath,
  including segments, but we forgot to free the temporary
  assegment.

19 years ago[zserv] Extend Zserv header with version information and marker field
paul [Mon, 16 Jan 2006 01:54:02 +0000 (01:54 +0000)]
[zserv] Extend Zserv header with version information and marker field

2006-01-16 Paul Jakma <paul.jakma@sun.com>

* lib/zclient.h: Update the Zserv protocol header with a version
  field.  Define the old command field to be a 'marker', to
  allow old Zserv and updated Zserv to be differentiated.
  Future updates will bump the version field obviously. New
  command field is made wider.  Try to stop using the
  'zebra_size_t' typedef in the callbacks.
* lib/zclient.c: Update to read/write new format header.
* zebra/zserv.c: Ditto

19 years ago[zserv] Update interface flags to 8 bytes wide.
paul [Wed, 11 Jan 2006 01:59:04 +0000 (01:59 +0000)]
[zserv] Update interface flags to 8 bytes wide.

2006-01-11 Paul Jakma <paul.jakma@sun.com>

* if.h: (struct interface) expand flags to 8 bytes.
* zclient.c: (zebra_interface_{add,state}_read) stream read of
  interface flags now need to use stream_getq.
  (zebra_interface_if_set_value) ditto

2006-01-11 Paul Jakma <paul.jakma@sun.com>

* zserv.c: (zsend_interface_{add,delete,update}) if flags are
  8 bytes now, update to write out with stream_putq.

19 years ago2006-01-11 Erik Smit <zoiah@zoiah.net>
paul [Wed, 11 Jan 2006 01:38:25 +0000 (01:38 +0000)]
2006-01-11 Erik Smit <zoiah@zoiah.net>

* vtysh.c: (vtysh_config_from_file) fix regression from
  a previous cleanup, vtysh_client.flags and cmd->daemon are
  bitwise flags, bitwise & was meant to be used. Fixes breakage
  of integrated config file reading.

19 years ago[ospfd] Bug #234. Fix nbr_self reinitialisation after down/up.
paul [Wed, 11 Jan 2006 01:08:19 +0000 (01:08 +0000)]
[ospfd] Bug #234. Fix nbr_self reinitialisation after down/up.

2006-01-10 Len Sorensen <lennartsorensen@ruggedcom.com>

* (general) Bug #234, see also [quagga-dev 3902].
  Fix problem with nbr_self not being properly reinitialised
  when an interface comes up, after having been down.
  Some re-arrangement done by Paul Jakma, any bugs introduced
  on top of Len's suggested changes are his.
* ospf_neighbor.c: (ospf_nbr_add_self) centralise
  initialisation of nbr_self parameters here.
* ospf_interface.c: (ospf_if_new) deleting initialisation of
  parameters of nbr_self, just rely on call to
  ospf_nbr_add_self.
  (ospf_if_cleanup) ditto.
* ospfd.c: (ospf_network_run) ditto.

19 years ago[ospfd] fix undefined effect expression
paul [Tue, 10 Jan 2006 23:27:05 +0000 (23:27 +0000)]
[ospfd] fix undefined effect expression

2006-01-10 Juris Kalnins <juris@mt.lv>

* ospf_packet.c: (ospf_make_md5_digest) fix odd, if not
  undefined effect, assignment of an increment expression.

19 years ago[bgpd] remove export of long defunct function
paul [Tue, 10 Jan 2006 22:15:45 +0000 (22:15 +0000)]
[bgpd] remove export of long defunct function

2006-01-10 Juris Kalnins <juris@mt.lv>

* bgpd.h: (bgp_router_id_unset) ex-function, remove.

19 years ago[ospfd] fix rare leak of struct connected, in an error path.
paul [Tue, 10 Jan 2006 22:11:54 +0000 (22:11 +0000)]
[ospfd] fix rare leak of struct connected, in an error path.

2006-01-10 Juris Kalnins <juris@mt.lv>

* ospf_zebra.c: (ospf_interface_address_delete) fix rare leak of
  struct connected in an error case.

19 years ago[ospfd] trim redundant strings
paul [Tue, 10 Jan 2006 20:36:49 +0000 (20:36 +0000)]
[ospfd] trim redundant strings

2006-01-10 Paul Jakma <paul.jakma@sun.com>

* ospf_vty.c: (config_write_ospf_distribute) trim down
  redundant strings.

19 years ago[ospfd] fix automatic router-id and network enable bug.
paul [Tue, 10 Jan 2006 20:34:46 +0000 (20:34 +0000)]
[ospfd] fix automatic router-id and network enable bug.

2006-01-10 Paul Jakma <paul.jakma@sun.com>

* ospfd.c: (ospf_network_run) checking to see if router-id
  is set should be on ospf->router_id, not router_id_static.
  This was causing ospfd to not start if router-id had not
  been configured statically.
  (ospf_if_update) ditto.

19 years ago[tests] Add small unit test for the new stream functions
paul [Tue, 10 Jan 2006 14:49:04 +0000 (14:49 +0000)]
[tests] Add small unit test for the new stream functions

2006-01-10 Paul Jakma <paul.jakma@sun.com>

* test-stream.c: new file, small unit test for new
  resize and {put,get}-quad stream functions.
* Makefile.am: build teststream unit test.

19 years ago[stream] Add quad-word support and stream_resize
paul [Tue, 10 Jan 2006 14:35:19 +0000 (14:35 +0000)]
[stream] Add quad-word support and stream_resize

2006-01-10 Paul Jakma <paul.jakma@sun.com>

* stream.c: (stream_new) Allocate stream data as seperate object.
  (stream_free) free the data.
  (stream_resize) new function, resize stream to new size.
  (stream_{get,put}q*) new functions to get/put quad word size
  types.
* stream.h: (struct stream) make data seperate from the stream.
  Export new stream_resize and quad-word get/put functions.

19 years agoremove dead code (from David Young)
gdt [Thu, 29 Dec 2005 16:04:53 +0000 (16:04 +0000)]
remove dead code (from David Young)

19 years ago2005-12-29 Greg Troxel <gdt@fnord.ir.bbn.com>
gdt [Thu, 29 Dec 2005 16:03:32 +0000 (16:03 +0000)]
2005-12-29  Greg Troxel  <gdt@fnord.ir.bbn.com>

        * vty.c (vty_hello): add cast to quiet lint (from David Young)

(patch-lint)

19 years ago2005-12-29 Greg Troxel <gdt@fnord.ir.bbn.com>
gdt [Thu, 29 Dec 2005 15:59:57 +0000 (15:59 +0000)]
2005-12-29  Greg Troxel  <gdt@fnord.ir.bbn.com>

        * rt_socket.c (kernel_rtm_ipv4): Use AF_INET rather than AF_UNSPEC
        for mask.  From David Young.

19 years agoshell script and hints for building on NetBSD. (gdt deleted private
gdt [Thu, 29 Dec 2005 15:40:49 +0000 (15:40 +0000)]
shell script and hints for building on NetBSD.  (gdt deleted private
copy by accident when getting a fresh checkout, and on recovery would
like to have it safe, and also it may be useful to others.)

19 years ago[ospfd] rename graceful to deferred, fix a tiny compile warning.
paul [Sat, 26 Nov 2005 13:31:11 +0000 (13:31 +0000)]
[ospfd] rename graceful to deferred, fix a tiny compile warning.

2005-11-26 Paul Jakma <paul.jakma@sun.com>

* (general) s/graceful/deferred/ in all files, the former term
   is confusing wrt OSPF Graceful-Restart.
* ospfd.c: (ospf_deferred_shutdown_check) dont return
  a function which returns void. SOS complains about this.
  (ospf_finish)

19 years ago[c99] change gcc zero-length array to C99 flexible array declaration
paul [Sat, 26 Nov 2005 09:21:43 +0000 (09:21 +0000)]
[c99] change gcc zero-length array to C99 flexible array declaration

2005-11-26 Paul Jakma <paul.jakma@sun.com>

* buffer.c: (struct buffer_data) change gcc zero array
  declaration to C99 incomplete array.
* stream.h: (struct stream) same
* ospf_api.c: (struct opaque_lsa) same

19 years ago[zebra] fix connected_add_ipv6 declarations, label should be const.
paul [Sat, 26 Nov 2005 09:14:07 +0000 (09:14 +0000)]
[zebra] fix connected_add_ipv6 declarations, label should be const.

2005-11-26 Paul Jakma <paul.jakma@sun.com>

* connected.{c,h}: (connected_add_ipv6) label should have
  const qualifier, fix declarations.

19 years ago[build] Set default CFLAGS for SunPro, rationalise CFLAGS defaults.
paul [Sat, 26 Nov 2005 08:28:00 +0000 (08:28 +0000)]
[build] Set default CFLAGS for SunPro, rationalise CFLAGS defaults.

2005-11-26 Paul Jakma <paul.jakma@sun.com>

* configure.ac: Collect together CFLAGS based on compiler
  detected a bit. Recognise and set default CFLAGS for SunPro /
  SOS10.

19 years ago2005-11-25 Paul Jakma <paul.jakma@sun.com>
paul [Fri, 25 Nov 2005 20:23:46 +0000 (20:23 +0000)]
2005-11-25 Paul Jakma <paul.jakma@sun.com>

* texinfo.tex: update to newer version, seems to now properly
  scale the diagramme images in PDF output.

19 years ago[zebra] Fix mistake in previous commit and further compile warnings/errors.
paul [Thu, 24 Nov 2005 15:15:17 +0000 (15:15 +0000)]
[zebra] Fix mistake in previous commit and further compile warnings/errors.

2005-11-24 Paul Jakma <paul.jakma@sun.com>

* kernel_socket.h: New header for functions exported to sysctl
  methods.
* kernel_socket.c: include previous.
  Remove static qualifier from couple of functions which are
  used by sysctl methods, incorrectly added in previous commit.
  Add a workaround for a bogus gcc warning to the RTA_ macros.
* Makefile.am: Add kernel_socket.h to noinst_HEADERS
* if_sysctl.c: include rt.h and kernel_socket.h and remove
  redundant prototypes.
* rtread_sysctl.c: ditto.
  (route_read) fix mismatch of return values.
* {rt,zserv,rib}.h: Include lib headers depended on.

19 years ago[lib/zebra.h] fix Linux compile error
paul [Thu, 24 Nov 2005 12:51:24 +0000 (12:51 +0000)]
[lib/zebra.h] fix Linux compile error

2005-11-24 Paul Jakma <paul.jakma@sun.com>

* zebra.h: s/u_int/unsigned int/, u_int is a BSD type, defining
  __USE_BSD on Linux pulls in further things from netinet/ip.h
  which dont preprocess for some reason. There is no C99
  shorthand type directly equivalent to u_int afaict, so don't
  use it.

19 years ago[privs/solaris] Fix unused variable and incorrect format string.
paul [Thu, 24 Nov 2005 12:47:17 +0000 (12:47 +0000)]
[privs/solaris] Fix unused variable and incorrect format string.

2005-11-24 Paul Jakma <paul.jakma@sun.com>

* privs.c: (zcaps2sys/solaris) remove unused variable.
  (zprivs_state_caps/solaris) Format string missing a
  specifier.

19 years ago[ospfclient] add static qualifier
paul [Thu, 24 Nov 2005 12:40:39 +0000 (12:40 +0000)]
[ospfclient] add static qualifier

2005-11-24 Paul Jakma <paul.jakma@sun.com>

* ospf_apiclient.c: add static qualifier to relevant functions.
* ospfclient.c: ditto

19 years ago[zebra] fix some small compile errors, mark several functions static
paul [Wed, 23 Nov 2005 13:02:08 +0000 (13:02 +0000)]
[zebra] fix some small compile errors, mark several functions static

2005-11-23 Paul Jakma <paul.jakma@sun.com>

* (general) fix some small compile errors, and mark several
          functions as static.
        * kernel_socket.c: (ifan_read) should be static.
          fix missing brackets.
          (ifm_read,ifam_read,rtm_read_mesg,kernel_read) Make static
          (ifam_read_mesg) make static. fix incorrect variable name.
          (rtm_read) make static. Fix call to rib_delete_ipv4 which
          should be rib_delete_ipv6.
          (routing_socket,kernel_init) should be static. Void argument
          should be specified as such, not left incomplete.
        * rt_netlink.c: rt.h should be included, contains prototypes of
          exported functions.
          (kernel_delete_ipv6_old) fix sign of index argument.
        * rt_socket.c: Exact same as previous. Also, make various
          functions static.
        * rtread_getmsg.c: Include zserv.h, which prototypes
          route_read. Make static.
        * rtread_sysctl.c: zserv.h and rt.h should be included.
          fix definition of route_read.

19 years ago[tests] Add empty-path and sequence+1ASN test data to aspath_test.c
paul [Wed, 23 Nov 2005 02:48:14 +0000 (02:48 +0000)]
[tests] Add empty-path and sequence+1ASN test data to aspath_test.c

2005-11-23 Paul Jakma <paul.jakma@sun.com>

* aspath_test.c: Add an empty aspath to test segments, and to
  compare tests.
  Add a segment identical to seq1, but with one extra asn.
  Fix bogus free of stream in make_aspath for case where
  no stream was allocated (empty path data).

19 years ago[bgp] Fix SEGV if empty path is confed-compared ([quagga-users 5968])
paul [Wed, 23 Nov 2005 02:47:02 +0000 (02:47 +0000)]
[bgp] Fix SEGV if empty path is confed-compared ([quagga-users 5968])

2005-11-23 Paul Jakma <paul.jakma@sun.com>

* bgp_aspath.c: (assegments_parse) should be static

2005-11-23 Juergen Kammer <j.kammer@eurodata.de>

* bgp_aspath.c: (aspath_cmp_left_confed) fix SEGV for case
  where one or both paths are empty.

19 years ago2005-11-20 Paul Jakma <paul.jakma@sun.com>
paul [Sun, 20 Nov 2005 14:54:12 +0000 (14:54 +0000)]
2005-11-20 Paul Jakma <paul.jakma@sun.com>

        * ospf_abr.c: (ospf_abr_announce_network_to_area) check
          returned LSA of ospf_summary_lsa_refresh and print warning if
          it failed.
          (ospf_abr_announce_network_to_area) similar
          (ospf_abr_announce_rtr_to_area) similar
        * ospf_lsa.c: (ospf_router_lsa_new) check LSA returned is valid.
          (ospf_router_lsa_originate) similar
          (ospf_router_lsa_refresh, ospf_network_lsa_new) similar
          (ospf_summary_lsa_new) Check ID is valid.
          (ospf_summary_lsa_originate) ditto, and check returned LSA from
           previous function is !NULL.
          (ospf_summary_lsa_refresh) check ospf_summary_lsa_new return
           is !NULL.
          (ospf_summary_asbr_lsa_new) ID valid check.
          (ospf_summary_asbr_lsa_originate) similar.

19 years ago2005-11-20 Paul Jakma <paul.jakma@sun.com>
paul [Sun, 20 Nov 2005 14:50:45 +0000 (14:50 +0000)]
2005-11-20 Paul Jakma <paul.jakma@sun.com>

        * ospfd.h: remove the OSPF_ROUTER_ID_UPDATE_DELAY define
          (struct ospf) remove the router_id timer thread.
          remove export of ospf_router_id_update_timer.
        * ospfd.c: (ospf_router_id_update) call ospf_if_update to
          poke interfaces into action after ID has been configured.
          (ospf_router_id_update_timer) removed.
          (ospf_finish_final) t_router_id_update timer is gone.
          (ospf_network_run) router-id update timer gone.
          call ospf_router_id_update directly if ID not configured.
          In the per-iface loop, don't ospf_if_up interfaces if
          ID is still not configured. The update function will call
          ospf_if_update anyway.
          (ospf_if_update) ID update timer is gone. Just return if no
          ID is set.
        * ospf_vty.c: (ospf_router_id) call ospf_router_id_update, no
          timer needed.
        * ospf_zebra.c: (ospf_router_id_update_zebra) call
          ospf_router_id_update directly, not via timer.

19 years ago[isisd] remove includes of common system headers.
paul [Sun, 20 Nov 2005 02:15:50 +0000 (02:15 +0000)]
[isisd] remove includes of common system headers.

2005-11-20 Paul Jakma <paul.jakma@sun.com>

        * (general) remove includes of very common system headers,
          these are already picked up by zebra.h. Further, including
          them before zebra.h messes up all our lovely (sarcasm)
          autoconf'd detecting of platform specific things. Recent
          addition of stdint.h to configure.ac and zebra.h appears
          particularly to throw up this problem.

19 years ago- quagga.spec.in: Release sub-rev now release_rev macro, for rpmbuild -D
paul [Sun, 20 Nov 2005 02:09:32 +0000 (02:09 +0000)]
- quagga.spec.in: Release sub-rev now release_rev macro, for rpmbuild -D

19 years ago[ospfd] Standardize buffer sizes used for displaying timers.
ajs [Wed, 16 Nov 2005 20:17:52 +0000 (20:17 +0000)]
[ospfd] Standardize buffer sizes used for displaying timers.
2005-11-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_dump.h: Define OSPF_TIME_DUMP_SIZE as appropriate buffer size
  for use with ospf_timer_dump and ospf_timeval_dump.
* ospf_vty.c: Change all buffer sizes used with ospf_timer_dump and
  ospf_timeval_dump to have size OSPF_TIME_DUMP_SIZE.
  (show_ip_ospf_interface_sub) Fix possible buffer overflow in
  call to ospf_timer_dump.

19 years ago[ospfd] Make OSPF_ISM_TIMER_OFF macro safer.
ajs [Wed, 16 Nov 2005 19:33:22 +0000 (19:33 +0000)]
[ospfd] Make OSPF_ISM_TIMER_OFF macro safer.
2005-11-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_ism.h: (OSPF_ISM_TIMER_OFF) Improve macro syntax by enclosing
  in 'do {...} while(0)'.

19 years ago[workqueue] Update workqueue users callbacks to additional arguments
paul [Mon, 14 Nov 2005 14:46:35 +0000 (14:46 +0000)]
[workqueue] Update workqueue users callbacks to additional arguments

2005-11-14 Paul Jakma <paul.jakma@sun.com>

* (general) pass struct work-queue to callback functions.
* workqueue.h: (struct work_queue) move the state flag
  variables to end.
  Add an opaque pointer to spec, for user-data global to the
  queue.
  Pass reference to work_queue to all callbacks.
* workqueue.c: (work_queue_item_remove) pass ref to workqueue
  to user callbacks.
  (work_queue_run) ditto.

19 years ago2005-11-14 Paul Jakma <paul.jakma@sun.com>
paul [Mon, 14 Nov 2005 14:31:49 +0000 (14:31 +0000)]
2005-11-14 Paul Jakma <paul.jakma@sun.com>

* zebra_rib.c: (rib_process) convert to new workqueue specs and
  shut up gcc, which complains about cast from void via
  function parameters, for some dumb reason. Do the cast
  inside the function instead.
  (rib_queue_qnode_del) ditto.
  (rib_queue_init) no need for the casts anymore.

19 years ago[bug #231] check and include stdint.h, also add std=c99 to gcc CFLAGS
paul [Mon, 14 Nov 2005 14:05:35 +0000 (14:05 +0000)]
[bug #231] check and include stdint.h, also add std=c99 to gcc CFLAGS

2005-11-14 Paul Jakma <paul.jakma@sun.com>

* configure.ac: Tell gcc we like C99.
  [bug #231] Check and test for stdint.h.
* lib/zebra.h: [bug #231] include stdint, if its there.

19 years ago2005-11-14 Paul Jakma <paul.jakma@sun.com>
paul [Mon, 14 Nov 2005 12:07:47 +0000 (12:07 +0000)]
2005-11-14 Paul Jakma <paul.jakma@sun.com>

* (general) Add state to detect queue floods.  There's no sense
  trying to be sparing of CPU resources, if the queue is
  flooding and using ever more memory resources. we should just
  get on with clearing the queue.
  The sense of delay and hold were wrong way around, fix.
* workqueue.h: (struct work_queue) Add status bitfield.  Add
  'flood' integer to workqueue spec.  Add runs_since_clear
  counter to workqueue.
* workqueue.c: (work_queue_new) set defaults for delay, hold
  and flood.
  (work_queue_add) initial schedule should use delay, not hold.
  (show_work_queues) Print flood field, conserve whitespace.
  (work_queue_unplug) use delay, not hold.
  (work_queue_run) consecutive runs should be seperated by hold
  time, not delay.
  Keep track of number of consecutive runs, go into 'overdrive'
  if queue is being flooded, we can't avoid making heavy use of
  resources, better to use CPU than ever more RAM.

19 years ago[ospfd] misc small fixes. Fix default stub router setting. no opaque compile.
paul [Mon, 14 Nov 2005 11:11:11 +0000 (11:11 +0000)]
[ospfd] misc small fixes. Fix default stub router setting. no opaque compile.

2005-11-14 Paul Jakma <paul.jakma@sun.com>

* ospfd.c: (ospf_new) stub-shutdown should just default to
  unconfigured, too strange otherwise.
  (ospf_finish_final) t_opaque_lsa_self TIMER_OFF should be
  preprocessor conditional on HAVE_OPAQUE_LSA.
* ospfd.h: (struct ospf) remove the SHUTDOWN_DEFAULT define.
  no longer used, plus it wasn't in range that the command
  accepted.
* ospf_zebra.h: Depends on vty.h, include it.

19 years ago[solaris] Extra debug and cross-checks for kernel_socket, two Sol9 fixes.
paul [Sat, 12 Nov 2005 22:55:10 +0000 (22:55 +0000)]
[solaris] Extra debug and cross-checks for kernel_socket, two Sol9 fixes.

2005-11-12 Alexander Gall <gall@switch.ch>

* See [quagga-dev 1815]
* kernel_socket.c: (rtm_write) Use SAROUNDUP when HAVE_SIN_LEN
  is not available.
* rt_socket.c: (kernel_rtm_ipv6(_multipath)) set family to
  AF_INET6 on ipv6 routes.

2005-11-12 Paul Jakma <paul.jakma@sun.com>

* kernel_socket.c: Add RTA_NAME_GET macro to extract name from
  sockaddr_dl. Add some more RTF_ flags.
* (ifan_read) Add some debug messages.
* (ifm_read) Add more debug messages. More robust cross-checks
  of index against name.
  Fall back to by-name lookup if the index lookup fails, future
  proofing more than anything else.
  (ifam_read_mesg) Read RTA_IFP. Add debug messages.
  (ifam_read) More debug. If there's an RTA_IFP and it isn't
  the name of the interface, save it as the label.
  (rtm_read_mesg) Read RTA_IFP.
  (rtm_read) allow name to be retrieved.
  (rtmsg_debug) expand on the debug message.

19 years ago[lib] 'show route-map' should print call action seperate from exit policy
paul [Sat, 12 Nov 2005 22:36:41 +0000 (22:36 +0000)]
[lib] 'show route-map' should print call action seperate from exit policy

2005-11-12 Paul Jakma <paul.jakma@sun.com>

* routemap.c: (vty_show_route_map_entry) call action is
  seperate from exit action, latter should still be printed
  regardless of whether a call is specified.

19 years ago[ospfd] SPF ospf_canonical_nexthops_free bugfix.
paul [Fri, 11 Nov 2005 12:10:03 +0000 (12:10 +0000)]
[ospfd] SPF ospf_canonical_nexthops_free bugfix.

19 years ago[doc] quagga.info updated /again/ due to version bump, d'oh.
paul [Fri, 11 Nov 2005 11:16:11 +0000 (11:16 +0000)]
[doc] quagga.info updated /again/ due to version bump, d'oh.

19 years ago2005-11-11 Paul Jakma <paul.jakma@sun.com>
paul [Fri, 11 Nov 2005 10:28:59 +0000 (10:28 +0000)]
2005-11-11 Paul Jakma <paul.jakma@sun.com>

* NEWS: Update.
* configure.ac: Bump to 0.99.2

19 years ago- commit the actual file..
paul [Fri, 11 Nov 2005 09:59:10 +0000 (09:59 +0000)]
- commit the actual file..

19 years ago[trivia] update quagga.info, auto-built file
paul [Fri, 11 Nov 2005 09:58:35 +0000 (09:58 +0000)]
[trivia] update quagga.info, auto-built file

2005-11-11 Paul Jakma <paul.jakma@sun.com>

* quagga.info: update auto-built file. Methinks it's time to
  remove from CVS..

19 years ago[zebra] Fix warning and small connected-label changes merge error.
paul [Fri, 11 Nov 2005 09:52:40 +0000 (09:52 +0000)]
[zebra] Fix warning and small connected-label changes merge error.

2005-11-11 Paul Jakma <paul.jakma@sun.com>

* kernel_socket.c: (ifm_read) arithmetic on void pointer
  warning.
  (ifam_read) Fix error from connected-with-label merge,
  something crept in from the pending Solaris kernel_socket.c
          patch which shouldn't have.

19 years ago2005-11-10 Paul Jakma <paul.jakma@sun.com>
paul [Thu, 10 Nov 2005 10:21:19 +0000 (10:21 +0000)]
2005-11-10 Paul Jakma <paul.jakma@sun.com>

* HACKING: Add recommendation to provide a single Subject
  style description to the commit message.
  Add some recommendations for ChangeLog.

19 years ago[doc] List snmptrap.texi as a source, so it gets included in dist
paul [Mon, 7 Nov 2005 03:19:51 +0000 (03:19 +0000)]
[doc] List snmptrap.texi as a source, so it gets included in dist

2005-11-07 Paul Jakma <paul.jakma@sun.com>

* Makefile.am: snmptrap.texi needs to be listed as a source,
  not disted otherwise.

19 years ago- Makefile.am: quagga.pam.stack should be in dists
paul [Sat, 5 Nov 2005 16:29:54 +0000 (16:29 +0000)]
- Makefile.am: quagga.pam.stack should be in dists
- quagga.spec.in: introduce dist variable to allow for differences
  e.g in buildreqs, pam config files. etc.

19 years ago2005-11-04 Paul Jakma <paul.jakma@sun.com>
paul [Fri, 4 Nov 2005 21:53:59 +0000 (21:53 +0000)]
2005-11-04 Paul Jakma <paul.jakma@sun.com>

* quagga.info: Update auto-built file
* ospf6d.texi: Add example config
* bgpd.texi: Add example configs. Couple of cleanups of format
  and macros.
* routemap.texi: Add an explanation of how route-maps work.
  Document the call and exit-policy commands.

19 years ago2005-11-04 Paul Jakma <paul.jakma@sun.com>
paul [Fri, 4 Nov 2005 12:48:25 +0000 (12:48 +0000)]
2005-11-04 Paul Jakma <paul.jakma@sun.com>

* snmptrap.texi: Contributed documentation, contributors name
  is lost (please get in touch). Configuring SNMP for logging
  traps.
* snmp.texi: Minor formatting changes.
* quagga.info: Update auto-built file

19 years ago2005-11-04 Paul Jakma <paul.jakma@sun.com>
paul [Fri, 4 Nov 2005 12:34:06 +0000 (12:34 +0000)]
2005-11-04 Paul Jakma <paul.jakma@sun.com>

* prototype.dev.in: lib/md5-gnu.h is now lib/md5.h

19 years ago2005-11-04 Paul Jakma <paul.jakma@sun.com>
paul [Fri, 4 Nov 2005 12:31:39 +0000 (12:31 +0000)]
2005-11-04 Paul Jakma <paul.jakma@sun.com>

* ospf_{dump,spf,vty}.c: Oops, use the internal tv_sub
  function rather than unportable timersub.

19 years ago- quagga.pam: pam_stack.so module is deprecated, use 'include' instead.
paul [Fri, 4 Nov 2005 12:25:23 +0000 (12:25 +0000)]
- quagga.pam: pam_stack.so module is deprecated, use 'include' instead.
- quagga.pam.stack: the old pam_stack way, kept to allow spec file to
  backwards compatible (changes to spec file pending local testing)

19 years ago- bah, fix likkle typo.
paul [Thu, 3 Nov 2005 13:09:10 +0000 (13:09 +0000)]
- bah, fix likkle typo.

19 years ago2005-11-03 Paul Jakma <paul.jakma@sun.com>
paul [Thu, 3 Nov 2005 13:00:54 +0000 (13:00 +0000)]
2005-11-03 Paul Jakma <paul.jakma@sun.com>

* memtypes.h: Update auto-built file.

19 years ago2005-11-03 Paul Jakma <paul.jakma@sun.com>
paul [Thu, 3 Nov 2005 12:52:18 +0000 (12:52 +0000)]
2005-11-03 Paul Jakma <paul.jakma@sun.com>

* bgp_damp.c: (bgp_reuse_timer) struct bgp can be retrieved via
  the struct bgp_damp_info, no need to guess by using
  bgp_get_default().

19 years ago2005-11-03 Paul Jakma <paul.jakma@sun.com>
paul [Thu, 3 Nov 2005 12:35:21 +0000 (12:35 +0000)]
2005-11-03 Paul Jakma <paul.jakma@sun.com>

* connected.{c,h}: Include memory.h
  (connected_add_ipv4) Use MTYPE for ifc label.
  (connected_add_ipv6) Also should accept label. Store it in ifp.
  (connected_del_ipv4) Taking label as argument is pointless.
* rt_netlink.c: (netlink_interface_addr) update label usage
  for connected_{add,delete} functions.
* if_ioctl.c: (if_getaddrs) NULL label for connected_add_ipv6.
* if_ioctl_solaris.c: (interface_list_ioctl) Pass LIFC_NOXMIT
  so we also find out about NOXMIT interfaces like VNI.
  Bit of hackery to turn interface names into the primary
  interface name, later with routing socket messages we only
  will about primary interfaces anyway, so we must normalise
  the name.
  (if_get_addr) take label as argument, so it can
  be passed to connected_add.
  If label is provided, then it is interface name to issue the
  ioctl for address information on, not the ifp name.
  (interface_list) List AF_UNSPEC too, just in case.
* if_proc.c: (ifaddr_proc_ipv6) label for connected_add_ipv6.
* interface.c: (if_addr_wakeup) Some very bogus code - sets
  IFF_RUNNING - add comment.
  (if_refresh)
  (ip_address_install) Use MTYPE for ifc label.
* ioctl_solaris.c: (if_mangle_up) New function. Hackery to make
  IFF_UP reflect whether any addresses are left on the
  interface, as we get signalled for IFF_UP flags change on the
  primary interface only. Logical interfaces dont generate
  IFINFO, but we do get an RTM_DELADDR.
  (if_get_flags) Call if_mangle_up before return.
* kernel_socket.c: (ifam_read) Fixup calls to
  connected_{add,delete} to match above changes. Rename gate
  variable to brd, less confusing.
  Pass the interface name as a label, if it is not same name
  as ifp->name.

19 years ago2005-11-03 Paul Jakma <paul.jakma@sun.com>
paul [Thu, 3 Nov 2005 11:15:44 +0000 (11:15 +0000)]
2005-11-03 Paul Jakma <paul.jakma@sun.com>

* ospf_packet.c: Change level of some warnings to
  informational.

19 years ago2005-11-03 Paul Jakma <paul.jakma@sun.com>
paul [Thu, 3 Nov 2005 11:04:07 +0000 (11:04 +0000)]
2005-11-03 Paul Jakma <paul.jakma@sun.com>

* if.c: (connected_free) use MTYPE for connected label.
  memtypes.c: Add MTYPE_CONNECTED_LABEL

19 years ago2005-11-03 Paul Jakma <paul.jakma@sun.com>
paul [Thu, 3 Nov 2005 09:08:29 +0000 (09:08 +0000)]
2005-11-03 Paul Jakma <paul.jakma@sun.com>

* ospf_apiserver.c: (apiserver_sync_callback) stray semi-colon
* ospf_packet.c: include checksum.h, remove the in_cksum extern
* prototypes.
* ospf_te.h: Add braces, quell warning.

19 years ago2005-11-03 Paul Jakma <paul.jakma@sun.com>
paul [Thu, 3 Nov 2005 09:00:23 +0000 (09:00 +0000)]
2005-11-03 Paul Jakma <paul.jakma@sun.com>

* zebra.h: BSD BYTE_ORDER define isn't available everywhere,
  define if needs be.
* checksum.h: new file. checksum.c exports in_cksum, provide
  a header for it.
* checksum.c: (in_cksum) callers shouldn't have to know it uses
  a u_short internally, change to void *.
* Makefile.am: Add checksum.h
* command.h: remove bogus trailling slash.
* md5.c: (general) Update it for the twentieth century. ANSI
  declarations are widely supported now.. Don't include system
  headers, only include zebra.h. Use POSIX types (the
  alternative is to define u_int64_t in a portable way - rest
  of Quagga needs same cleanup).
  Make endian-conditional code be compiler conditional rather
  than preprocessor conditional, so that breakage gets noticed
  quicker.
* md5.h: POSIX types. Get rid of the odd __P() non-ANSI capable
  compiler compatibility hack.

19 years ago2005-10-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Sun, 30 Oct 2005 23:51:32 +0000 (23:51 +0000)]
2005-10-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ripd.c: (rip_response_process) Instead of calling
  rip_interface.c:if_valid_neighbor(), call the equivalent
  library function if_lookup_address().
* rip_interface.c: (if_valid_neighbor) Remove function, since it is
  essentially equivalent to the if_lookup_address() library function.
* ripd.h: (if_valid_neighbor) Remove function declaration.

19 years ago2005-10-29 Paul Jakma <paul@dishone.st>
paul [Sat, 29 Oct 2005 20:19:49 +0000 (20:19 +0000)]
2005-10-29 Paul Jakma <paul@dishone.st>

* ospfd.texi: Document the new spf and max-metric commands, and
  the additional form of dead-interval. Add documentation for
  various other commands. Cleanup misc stuff, citations, etc.
  Add some example configurations.
* overview.texi: RFC3137 support added.
* Makefile.am: Make quagga.pdf depend on the _TEXINFOS
  variable, this still doesn't fix the dependency though,
  sadly.

19 years ago2005-10-29 Paul Jakma <paul.jakma@sun.com>
paul [Sat, 29 Oct 2005 12:50:09 +0000 (12:50 +0000)]
2005-10-29 Paul Jakma <paul.jakma@sun.com>

* (general) RFC3137 stub-router support
* ospfd.h: Add OSPF_OUTPUT_COST_INFINITE define.
  (struct ospf_master) Add a OSPF_MASTER_SHUTDOWN flag for
  options, to allow shutdown to distinguish between complete
  shutdown and shutdown of a subset of ospf instances.
  (struct ospf)
  Add stub_router_{startup,shutdown_}time, configuration of startup
  and shutdown time for stub-router.
  Add t_graceful_shutdown struct thread, timer for graceful
  shutdown, if needed.
  (struct ospf_area) Add stub_router_state - run time state of
  stub-router for an area. Add flags for ADMIN, IS and WAS
  states.
  Add t_stub_router, timer thread to resend router-lsa for an
  area.
* ospf_lsa.c: (ospf_link_cost) new simple function to spit out
  either the given lnks cost or infinite cost if stub-router is
  in effect.
  (lsa_link_{ptop,broadcast,virtuallink,ptomp}_set) use
  previous function for transit-links.
  (ospf_stub_router_timer) timer thread for end of startup stub
  router. Change state as required for the area and setup
  re-origination of router-lsa.
  (ospf_stub_router_check) Check/do whether stub-router should be
  enabled, and whether it requires timer to be setup.
  (ospf_router_lsa_new) call previous function at top.
  (ospf_router_lsa_originate) no external callers, made static.
* ospf_lsa.h: (ospf_router_lsa_originate) removed.
* ospf_main.c: (sigint) make static.
  remove call to exit, as ospf_terminate now deals with
  exiting.
* ospf_route.c: (ospf_terminate) removed, now in ospfd.c.
* ospf_vty.c: (show_ip_ospf_area) print out state of
  stub-router, if active.
  (show_ip_ospf) print out configuration of stub-router
  support, and details of graceful-shutdown if the timer is
  active.
  ((no)?ospf_max_metric_router_lsa_{admin,startup,shutdown}) new
  commands to (de-)?configure stub-router support.
  (config_write_stub_router) write out config of stub-router.
  (ospf_config_write) call previous.
  (ospf_vty_init) install the new stub-router commands.
* ospfd.c: various functions made static.
  (ospf_new) Set defaults for stub-router. Graceful shutdown
  is made to default on, just to be adventerous.
  (ospf_graceful_shutdown_finish) new function, final part of
  shutdown.
  (ospf_graceful_shutdown_timer) timer thread wrapper for
  graceful-shutdown.
  (ospf_graceful_shutdown_check) check whether to setup timer
  for shutdown or proceed directly to final shutdown.
  (ospf_terminate) moved here from ospf_route.c, call
  ospf_finish for each instance.
  (ospf_finish) renamed to ospf_finish_final and made static.
  (ospf_finish) new function, exported wrapper around
  ospf_graceful_shutdown_check.
  (ospf_finish_final) complete shutdown of an instance.
  Add missing TIMER_OFF's of two timer threads.
  (ospf_area_free) opaque self lsa timer should be turned off.