]> git.puffer.fish Git - matthieu/frr.git/log
matthieu/frr.git
20 years ago2004-11-05 Phil Spagnolo <phillip.a.spagnolo@boeing.com>
gdt [Fri, 5 Nov 2004 18:42:27 +0000 (18:42 +0000)]
2004-11-05 Phil Spagnolo <phillip.a.spagnolo@boeing.com>
       * ospf6_flood.c:  When adding a thread to retransmit an lsa after
    rxmt_interval, the ospf6d used thread_add_event().  However,
    thread_add_event() executes immediately and ignores the delay parameter.
    This was causing unnecesary unicast LSU sends.  Adding the thread has
    been changed to use thread_add_timer() which will expire after delay.
    After the fix results appear consistent with expectation.

20 years agospelling: s/supress/suppress/
ajs [Fri, 5 Nov 2004 13:24:12 +0000 (13:24 +0000)]
spelling: s/supress/suppress/

20 years agoAdjust per-directory vs global ChangeLog to match current practice.
gdt [Fri, 5 Nov 2004 13:17:20 +0000 (13:17 +0000)]
Adjust per-directory vs global ChangeLog to match current practice.

Spelling fixes.

Add Solaris on 64-bit to list of 'supported' platforms.

List NetBSD/sparc64 as a 'future' platform - there aren't enough users
to make it really supported, but it's good at exposing latent bugs
(e.g router advertisement formatting on BSD, and LSA alignment
issues).

Note explicitly that ospf6d and isisd are in 'testing' rather than
'stable'.  (Feel free to correct - just wanted to get more explicit.)

Add note questioning current relevance of isisd.sf.net - is our repo
the canonical place now?

20 years agospelling: s/supress/suppress/
gdt [Fri, 5 Nov 2004 12:59:21 +0000 (12:59 +0000)]
spelling: s/supress/suppress/

20 years ago2004-11-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Fri, 5 Nov 2004 01:25:55 +0000 (01:25 +0000)]
2004-11-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* vty.h: Remove fields in struct vty that were related to VTY_CONTINUE
  capabilities (that were used only in bgpd/bgp_route.c and are now
  removed).  Also remove some other fields that were not being
  used at all.
* vty.c: (vty_execute) Do not test for obsolete status values VTY_START
  and VTY_CONTINUE.
  (vty_read) Remove calls to vty->output_func since that was part
  of the VTY_CONTINUE infrastructure that has been removed.
  (vty_flush) Remove code to support VTY_START and VTY_CONTINUE.
  (vty_close) Remove code to cancel vty->t_output thread, since that
  thread was never actually used.
* bgp_route.c: Remove all code related to VTY_CONTINUE; this feature
  is deprecated because the output did not represent a single point
  in time.  All output needs to be generated inline and buffered
  by the library code.
  (route_vty_out,route_vty_out_tag,damp_route_vty_out,
   flap_route_vty_out) Remove code to count number of lines of output,
   since this was only useful for VTY_CONTINUE behavior.
  (bgp_show_callback) Removed.
  (bgp_show_table) Remove hooks for VTY_CONTINUE callback support.
  As a result, there's a new output_arg argument to this function.
  Make function static.
  (bgp_show) Make function static and add a new output_arg argument.
  Change all functions that call bgp_show or bgp_show_table to
  pass the new output_arg argument (that used to be passed inside
  vty->output_arg).
* bgp_mplsvpn.c: Remove declarations of functions defined in
  bgp_route.c; these declarations belong in bgp_route.h.
* bgp_route.h: Declare 3 global functions used in both bgp_route.c
  and in bgp_mplsvpn.c.

20 years ago2004-11-04 Paul Jakma <paul@dishone.st>
paul [Thu, 4 Nov 2004 20:35:31 +0000 (20:35 +0000)]
2004-11-04 Paul Jakma <paul@dishone.st>

* ospfd.c: (ospf_network_match_iface) revert to previous network
          statement match behaviour.

20 years ago2004-11-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Thu, 4 Nov 2004 19:26:16 +0000 (19:26 +0000)]
2004-11-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* vty.c: Vtysh connections to daemons should use buffering.
  (vty_out) Remove exception for vty_shell_serv, just use buffer_write.
  (vty_new) Increase output buffer size to 4096 rounded up to a
  multiple of pagesize.
  (vtysh_read) After command has been executed and all output buffered,
  call buffer_flush_available and schedule further writes if the
  buffers are not yet empty.
  (vtysh_write) New function to flush output to vtysh when the socket
  is writeable.
  (vty_event) Added new VTYSH_WRITE event for flushing buffers to vtysh
  clients.  Also, should save read thread in vty->t_read so the
  thread can be cancelled in vty_close.
* buffer.h: In struct buffer_data, remove unused "parent" field.
  Convert "unsigned char *data" to "unsigned char data[0]" to save
  a malloc.  Declare new function buffer_flush_available that works
  with non-blocking sockets.
* buffer.c: (buffer_data_new) Use a single malloc now that data is
  a variable-size array at end of structure.
  (buffer_data_free) Just a single free now that data is part of the
  structure.
  (buffer_write) Simplify the logic to make behavior more transparent.
  (buffer_flush) Decrease b->length as data is written out.
  (buffer_flush_vty_all) Decrease b->length as buffers are freed.
  (buffer_flush_vty) Decrease b->length as data is written out.
  (buffer_flush_available) New function to flush non-blocking sockets.

20 years ago2004-11-02 Paul Jakma <paul@dishone.st>
paul [Tue, 2 Nov 2004 20:26:45 +0000 (20:26 +0000)]
2004-11-02 Paul Jakma <paul@dishone.st>

* ospf_packet.c: (ospf_write_frags) remove iov arg, msg already points
  to it. Add convenience pointer to msg->msg_iov[1], and use this,
  fixing the unfortunate borkenness introduced in moving of this code
  to a function.
  (ospf_write) remove iovp and fix up call to previous.
  (ospf_ls_upd_packet_new) cast size to long int - unfortunately
          glibc's size_t format modifier is not portable.

20 years ago- Add .arch-ids and .arch-inventory to cvsignore, to allow one to use arch
paul [Tue, 2 Nov 2004 18:59:49 +0000 (18:59 +0000)]
- Add .arch-ids and .arch-inventory to cvsignore, to allow one to use arch
  with CVS trees.

20 years ago2004-11-01 Paul Jakma <paul@dishone.st>
paul [Mon, 1 Nov 2004 08:59:21 +0000 (08:59 +0000)]
2004-11-01 Paul Jakma <paul@dishone.st>

* sockopt.c: (setsockopt_pktinfo) remove, its unused.

20 years ago2004-10-31 Paul Jakma <paul@dishone.st>
paul [Sun, 31 Oct 2004 18:58:09 +0000 (18:58 +0000)]
2004-10-31 Paul Jakma <paul@dishone.st>

* {bgpd,bgp_attr}.c: size_t printf format should be ld.

20 years ago2004-10-31 Paul Jakma <paul@dishone.st>
paul [Sun, 31 Oct 2004 18:01:13 +0000 (18:01 +0000)]
2004-10-31 Paul Jakma <paul@dishone.st>

* ospf_packet.c: (ospf_ls_upd_packet_new) Format for size_t should
          be ld.
* ospf_zebra.c: (ospf_distribute_list_update_timer) Ugly misuse of
  THREAD_ARG to store an integer, but it should at least use same
          same type to retrieve the value. Assert value is sane.

20 years ago2004-10-31 Paul Jakma <paul@dishone.st>
paul [Sun, 31 Oct 2004 16:43:17 +0000 (16:43 +0000)]
2004-10-31 Paul Jakma <paul@dishone.st>

* thread.c: Use XCALLOC and sizeof the type, not the pointer.

20 years ago2004-10-31 Paul Jakma <paul@dishone.st>
paul [Sun, 31 Oct 2004 16:29:50 +0000 (16:29 +0000)]
2004-10-31 Paul Jakma <paul@dishone.st>

* smux.c: fix int to size_t compile warnings

20 years ago2004-10-31 Paul Jakma <paul@dishone.st>
paul [Sun, 31 Oct 2004 16:19:24 +0000 (16:19 +0000)]
2004-10-31 Paul Jakma <paul@dishone.st>

* memory.h: Add MTYPE_THREAD_FUNCNAME and MTYPE_THREAD_STATS
* thread.c: Update stats and funcname alloc/free to use previous
  specific memory type defines

20 years ago2004-10-31 Paul Jakma <paul@dishone.st>
paul [Sun, 31 Oct 2004 16:15:33 +0000 (16:15 +0000)]
2004-10-31 Paul Jakma <paul@dishone.st>

* keychain.c: Convert some more strtoul users to VTY_GET_INTEGER.

20 years ago2004-10-31 Paul Jakma <paul@dishone.st>
paul [Sun, 31 Oct 2004 11:24:51 +0000 (11:24 +0000)]
2004-10-31 Paul Jakma <paul@dishone.st>

* ospf_packet.c: (ospf_write_frags) Add debug output
  (ospf_write) set type early, so we can pass it to
  ospf_write_frags.
  (ospf_ls_upd_packet_new) print size in debug output when too large
  packet is encountered.

20 years ago- update cvs ignore, ignore quagga.dvi, quagga.ps, etc.
paul [Sun, 31 Oct 2004 11:21:16 +0000 (11:21 +0000)]
- update cvs ignore, ignore quagga.dvi, quagga.ps, etc.

20 years ago2004-10-31 Paul Jakma <paul@dishone.st>
paul [Sun, 31 Oct 2004 02:13:09 +0000 (02:13 +0000)]
2004-10-31 Paul Jakma <paul@dishone.st>

* vty.c: As per Andrew's suggestions..
  (vty_serv_un) remove flags.
  (vtysh_accept) close socket if we cant set NONBLOCK. Add flags.

20 years ago2004-10-29 Paul Jakma <paul@dishone.st>
paul [Fri, 29 Oct 2004 08:29:36 +0000 (08:29 +0000)]
2004-10-29 Paul Jakma <paul@dishone.st>

* vty.c: Move setting of sock to O_NONBLOCK from vty_serv_un
  to vtysh_accept, where sock is the actual fd we wanted to set to
          O_NONBLOCK, ie the /connected/ vtysh unix socket.

20 years ago- lib/ dir shouldnt be conditional, remove bad dir attribute from dev files
paul [Fri, 29 Oct 2004 05:35:43 +0000 (05:35 +0000)]
- lib/ dir shouldnt be conditional, remove bad dir attribute from dev files

20 years ago"show running-daemons" -> "show daemons".
hasso [Thu, 28 Oct 2004 17:43:11 +0000 (17:43 +0000)]
"show running-daemons" -> "show daemons".

20 years agoRemove dead "ip tunnel" command.
hasso [Thu, 28 Oct 2004 17:32:27 +0000 (17:32 +0000)]
Remove dead "ip tunnel" command.

20 years agoFix help of "show debugging ripng" command.
hasso [Tue, 26 Oct 2004 06:39:56 +0000 (06:39 +0000)]
Fix help of "show debugging ripng" command.

20 years ago2004-10-25 Paul Jakma <paul@dishone.st>
paul [Mon, 25 Oct 2004 14:19:15 +0000 (14:19 +0000)]
2004-10-25 Paul Jakma <paul@dishone.st>

* Update with fix in debian bug id 222930.
* bgp_main.c: Add ZCAP_RAW, needed to bind to interfaces.
  bgp_network.c: (....) raise/lower privs around call to
          SO_BINDTODEVICE sockopt.

20 years agoYet another breakage introduced in May with zserv cleanup.
hasso [Sat, 23 Oct 2004 14:26:49 +0000 (14:26 +0000)]
Yet another breakage introduced in May with zserv cleanup.

20 years ago- andrew's service adding change to detect existing entries reliably
paul [Sat, 23 Oct 2004 00:48:51 +0000 (00:48 +0000)]
- andrew's service adding change to detect existing entries reliably

20 years ago- update with andrew's modifications
paul [Sat, 23 Oct 2004 00:05:41 +0000 (00:05 +0000)]
- update with andrew's modifications
- enable irdp by default again

20 years ago2004-10-23 Paul Jakma <paul@dishone.st>
paul [Fri, 22 Oct 2004 23:53:19 +0000 (23:53 +0000)]
2004-10-23 Paul Jakma <paul@dishone.st>

* configure.ac: bump version to 0.97.2, release imminent.

20 years ago2004-10-23 Paul Jakma <paul@dishone.st>
paul [Fri, 22 Oct 2004 23:24:43 +0000 (23:24 +0000)]
2004-10-23 Paul Jakma <paul@dishone.st>

* zebra.h: reserve ZEBRA_ROUTE_HSLS

20 years ago- credit rix for fixing openbsd
paul [Fri, 22 Oct 2004 22:52:33 +0000 (22:52 +0000)]
- credit rix for fixing openbsd

20 years ago2004-10-22 Paul Jakma <paul@dishone.st>
paul [Fri, 22 Oct 2004 17:00:38 +0000 (17:00 +0000)]
2004-10-22 Paul Jakma <paul@dishone.st>

* ospfd/ospf_packet.c: setsockopt_pktinfo -> setsockopt_ifindex
* zebra/irdp_main.c: ditto

20 years ago2004-10-22 Paul Jakma <paul@dishone.st>
paul [Fri, 22 Oct 2004 16:55:10 +0000 (16:55 +0000)]
2004-10-22 Paul Jakma <paul@dishone.st>

* sockopt.h: Fix elif that should be an else.

20 years ago2004-10-22 Paul Jakma <paul@dishone.st>
paul [Fri, 22 Oct 2004 12:27:44 +0000 (12:27 +0000)]
2004-10-22 Paul Jakma <paul@dishone.st>

* command.h: Cleanup the defines a bit, add helper defines and
  collapse all defines to use those. Add an attribute field to
  cmd_element to support, eg hidden or deprecated commands, add
          defun defines for such. All that's left to do is add logic
          to command.c to check these attributes... ;)

20 years ago2004-10-22 Paul Jakma <paul@dishone.st>
paul [Fri, 22 Oct 2004 12:05:17 +0000 (12:05 +0000)]
2004-10-22 Paul Jakma <paul@dishone.st>

* ospf_network.c: (ospf_sock_init) call neutral setsock_ifindex()
          function.
        * ospf_packet.c: (ospf_read) manually look up ifindex
          if system could not have returned one, eg openbsd.

20 years ago2004-10-22 Paul Jakma <paul@dishone.st>
paul [Fri, 22 Oct 2004 11:51:57 +0000 (11:51 +0000)]
2004-10-22 Paul Jakma <paul@dishone.st>

        * sockopt.c: (setsockopt_pktinfo) unexported
* sockopt.h: Cleanup SOCKOPT_CMSG defines a bit. Add a throwaway
          define for SOPT_SIZE_CMSG_IFINDEX_IPV4 for systems which have
          neither IP_RECVIF nor IP_PKTINFO (eg openbsd).

20 years ago2004-10-13 Paul Jakma <paul@dishone.st>
paul [Fri, 22 Oct 2004 10:54:39 +0000 (10:54 +0000)]
2004-10-13 Paul Jakma <paul@dishone.st>

* sockopt.c: (getsockopt_ipv4_ifindex) no ifindex should be 0, not
          -1.

20 years ago2004-10-22 Paul Jakma <paul@dishone.st>
paul [Fri, 22 Oct 2004 10:27:28 +0000 (10:27 +0000)]
2004-10-22 Paul Jakma <paul@dishone.st>

* ripd.c: Collapse redundant passing of various address structs,
          struct interface and struct connected as arguments to functions
          down to two key arguments, namely struct connected and, possibly,
          address of source/destination. Testing for RIPv1 would be useful.
          (rip_read) lookup struct connected for the received packet, pass
          it on.
        * rip_interface.c: With previous changes, we no longer have to tread
          carefully with struct connected, as it will always be there and
          valid.

20 years ago2004-10-22 Paul Jakma <paul@dishone.st>
paul [Fri, 22 Oct 2004 04:55:05 +0000 (04:55 +0000)]
2004-10-22 Paul Jakma <paul@dishone.st>

* configure.ac: fix up enable help alignment slightly
          Add --enable-gcc-ultra-verbose to set various gcc warnings which
          should one day be fixed but are not serious problems or which
          could be false-positives.

20 years agoDon't popen pager if command is "exit". Fixes "vtysh screws up my terminal
hasso [Wed, 20 Oct 2004 19:07:48 +0000 (19:07 +0000)]
Don't popen pager if command is "exit". Fixes "vtysh screws up my terminal
if I exit" issue.

20 years agoSmall copyright string and hostname related cleanup.
hasso [Tue, 19 Oct 2004 20:40:08 +0000 (20:40 +0000)]
Small copyright string and hostname related cleanup.

20 years agoOK. Here it is - PtP patch from Andrew J. Schorr. No problems with ospfd,
hasso [Tue, 19 Oct 2004 19:44:43 +0000 (19:44 +0000)]
OK. Here it is - PtP patch from Andrew J. Schorr. No problems with ospfd,
ripd might need some more testing though.

20 years ago- From Andrew Schorr, fixup logrotate to use correct path to killall
paul [Tue, 19 Oct 2004 14:41:56 +0000 (14:41 +0000)]
- From Andrew Schorr, fixup logrotate to use correct path to killall
  and use the pid file.

20 years agoFix regression. It seems to me that this code still works only by accident
hasso [Tue, 19 Oct 2004 06:26:01 +0000 (06:26 +0000)]
Fix regression. It seems to me that this code still works only by accident
though. Needs serious cleanup.

20 years agoMissing comma.
hasso [Thu, 14 Oct 2004 23:07:37 +0000 (23:07 +0000)]
Missing comma.

20 years agoMake dump configuration appear in vtysh.
hasso [Wed, 13 Oct 2004 21:32:46 +0000 (21:32 +0000)]
Make dump configuration appear in vtysh.

20 years agoLadies and Gentlemens. This file is dead for years, from 1999 to be exact.
hasso [Wed, 13 Oct 2004 20:59:04 +0000 (20:59 +0000)]
Ladies and Gentlemens. This file is dead for years, from 1999 to be exact.

20 years ago- fix date in changelog of my last commit..
paul [Wed, 13 Oct 2004 14:52:22 +0000 (14:52 +0000)]
- fix date in changelog of my last commit..

20 years ago* zserv.c: Remove useless warnings "forwarding is already on".
hasso [Wed, 13 Oct 2004 12:20:35 +0000 (12:20 +0000)]
* zserv.c: Remove useless warnings "forwarding is already on".

20 years agoMake initializing smux connection configurable - "smux peer OID" command
hasso [Wed, 13 Oct 2004 10:33:26 +0000 (10:33 +0000)]
Make initializing smux connection configurable - "smux peer OID" command
initializes connection, and "no smux peer" command terminates it. Fixes
bugzilla #47 and #112.

20 years agoUnbreak compilation with ospfapi disabled. We should seriously think about
hasso [Wed, 13 Oct 2004 09:32:48 +0000 (09:32 +0000)]
Unbreak compilation with ospfapi disabled. We should seriously think about
reducing various configure options.

20 years agoAll access lists (IPv4 and IPv6) are used by all daemons to limit access to
hasso [Wed, 13 Oct 2004 08:47:32 +0000 (08:47 +0000)]
All access lists (IPv4 and IPv6) are used by all daemons to limit access to
vty.

20 years agoInitialize access lists here as well.
hasso [Wed, 13 Oct 2004 08:36:47 +0000 (08:36 +0000)]
Initialize access lists here as well.

20 years agoFix critical bugzilla #113. Make CMD_ERR_NOTHING_TODO nonfatal.
hasso [Wed, 13 Oct 2004 08:18:07 +0000 (08:18 +0000)]
Fix critical bugzilla #113. Make CMD_ERR_NOTHING_TODO nonfatal.

20 years ago2004-10-13 Paul Jakma <paul@dishone.st>
paul [Wed, 13 Oct 2004 05:22:18 +0000 (05:22 +0000)]
2004-10-13 Paul Jakma <paul@dishone.st>

* (global) more const'ification.
* sockunion.c: (sockunion_su2str) buffer should be sized
          SU_ADDRSTRLEN.
          (sockunion_log) do not return stack variables, strdup buf before
          return.
        * vty.h: Fix up the VTY_GET_INTEGER macros. Testing caller supplied
          values against ULONG_MAX is daft, when caller probably has passed
          a type that can not hold ULONG_MAX. use a temporary long instead.
          Add VTY_GET_LONG, make VTY_GET_INTEGER_RANGE use it, make
  VTY_GET_INTEGER a define for VTY_GET_INTEGER_RANGE.

20 years ago2004-10-13 Paul Jakma <paul@dishone.st>
paul [Wed, 13 Oct 2004 05:06:08 +0000 (05:06 +0000)]
2004-10-13 Paul Jakma <paul@dishone.st>

* (global) more const'ification and fixups of types to clean up code.
* bgp_mplsvpn.{c,h}: (str2tag) fix abuse. Still not perfect,
          should use something like the VTY_GET_INTEGER macro, but without
          the vty_out bits..
        * bgp_routemap.c: (set_aggregator_as) use VTY_GET_INTEGER_RANGE
          (no_set_aggregator_as) ditto.
        * bgpd.c: (peer_uptime) fix unlikely bug, where no buffer is
          returned, add comments about troublesome return value.

20 years agoSome compiler warnings fixes and fix for bugzilla #119.
hasso [Tue, 12 Oct 2004 20:50:58 +0000 (20:50 +0000)]
Some compiler warnings fixes and fix for bugzilla #119.

20 years agoUnbreak "show ip route" command.
hasso [Tue, 12 Oct 2004 15:55:19 +0000 (15:55 +0000)]
Unbreak "show ip route" command.

20 years agoUnbreak ospfclient compilation.
hasso [Tue, 12 Oct 2004 06:13:54 +0000 (06:13 +0000)]
Unbreak ospfclient compilation.

20 years agoospf6d supports SNMP as well now.
hasso [Tue, 12 Oct 2004 06:05:34 +0000 (06:05 +0000)]
ospf6d supports SNMP as well now.

20 years ago2004-10-11 Paul Jakma <paul@dishone.st>
paul [Mon, 11 Oct 2004 18:26:59 +0000 (18:26 +0000)]
2004-10-11 Paul Jakma <paul@dishone.st>

* bump version to 0.97.1, release imminent.

20 years ago2004-09-17 Paul Jakma <paul@dishone.st>
paul [Mon, 11 Oct 2004 18:21:55 +0000 (18:21 +0000)]
2004-09-17 Paul Jakma <paul@dishone.st>

* vtysh.c: (vtysh_client_execute) fix the sync fix. The 4th and
  final sync byte is not ASCII NULL, it's actually a status integer,
  and only ASCII NULL if CMD_SUCCESS is returned by daemon.
  Fix pointed out by Hasso.

20 years agoBetter common router-id handling.
hasso [Mon, 11 Oct 2004 17:02:40 +0000 (17:02 +0000)]
Better common router-id handling.

20 years agoUpdate NEWS - apiserver is disabled by default now.
hasso [Mon, 11 Oct 2004 16:29:29 +0000 (16:29 +0000)]
Update NEWS - apiserver is disabled by default now.

20 years agoDisable ospfapi init by default.
hasso [Mon, 11 Oct 2004 16:27:03 +0000 (16:27 +0000)]
Disable ospfapi init by default.

20 years ago2004-10-11 Paul Jakma <paul@dishone.st>
paul [Mon, 11 Oct 2004 14:33:23 +0000 (14:33 +0000)]
2004-10-11 Paul Jakma <paul@dishone.st>

* ospfd.texi: reformat the ospf md5 paragraph, add an additional
  way to work around bad clocks.

20 years agoFix warnings here.
hasso [Mon, 11 Oct 2004 13:20:40 +0000 (13:20 +0000)]
Fix warnings here.

20 years agoSync isisd with changes in lib.
hasso [Mon, 11 Oct 2004 13:11:56 +0000 (13:11 +0000)]
Sync isisd with changes in lib.

20 years agoSync with changes in lib. Make more strings const.
hasso [Mon, 11 Oct 2004 12:57:57 +0000 (12:57 +0000)]
Sync with changes in lib. Make more strings const.

20 years agoSome more const string fixes.
hasso [Mon, 11 Oct 2004 12:53:17 +0000 (12:53 +0000)]
Some more const string fixes.

20 years agoCommas -> dots.
hasso [Mon, 11 Oct 2004 12:14:22 +0000 (12:14 +0000)]
Commas -> dots.

20 years ago2004-10-11 Paul Jakma <paul@dishone.st>
paul [Mon, 11 Oct 2004 11:28:44 +0000 (11:28 +0000)]
2004-10-11 Paul Jakma <paul@dishone.st>

* if.h: mtu's should be unsigned.
* routemap.{c,h}: const char updates
* smux.{c,h}: ditto

20 years ago2004-10-11 Paul Jakma <paul@dishone.st>
paul [Mon, 11 Oct 2004 11:00:30 +0000 (11:00 +0000)]
2004-10-11 Paul Jakma <paul@dishone.st>

* (global) Const char update and signed/unsigned fixes.
* (various headers) size defines should be unsigned.
* ospf_interface.h: remove duplicated defines, include the
  authoritative header - though, these defines should probably
          be moved to a dedicated header, or ospfd.h.
* ospf_lsa.h: (struct lsa) ls_seqnum should be unsigned.
* ospf_packet.c: (ospf_write) cast result of shift to unsigned.

20 years ago2004-10-11 Paul Jakma <paul@dishone.st>
paul [Mon, 11 Oct 2004 10:11:25 +0000 (10:11 +0000)]
2004-10-11 Paul Jakma <paul@dishone.st>

* ospf_dump.c: (ospf_ip_header_dump) Assume header is in host order
  remove ntohs that should have dissappeared. Take struct ip
  as argument, caller has to know there's an IP header at start of
  stream anyway.
* ospf_dump.h: update declaration of ospf_ip_header_dump.
* ospf_packet.c: (ospf_write) correct call to
  sockopt_iphdrincl_swab_htosys which was munging the header.
  (ospf_recv_packet) ip_len is needed for old OpenBSD fixup.
  (ospf_read) sockopt_iphdrincl_swab_systoh ip header as soon as
  we have it.

20 years ago2004-10-11 Paul Jakma <paul@dishone.st>
paul [Mon, 11 Oct 2004 09:40:58 +0000 (09:40 +0000)]
2004-10-11 Paul Jakma <paul@dishone.st>

* thread.c: (funcname_thread_add_timer)
  (funcname_thread_add_timer_msec) Fix mistakes from last change.
  Pointed out by Liu Xin in [quagga-dev 1609].

20 years ago2004-10-10 Paul Jakma <paul@dishone.st>
paul [Sun, 10 Oct 2004 12:54:58 +0000 (12:54 +0000)]
2004-10-10 Paul Jakma <paul@dishone.st>

* ospf6_route.c: Add const qualifier to various char arrays of
          constants. signed/unsigned fixes.
          (ospf6_linkstate_table_show) argv is const
        * ospf6_snmp.c: listnode typedef is dead.
          (ospf6_snmp_init) Take struct thread_master arg, needed for
          smux_init.
        * ospf6_snmp.h: update ospf6_snmp_init declaration.
        * ospf6d.c: (ospf6_init) add const qualifier to sargv, pass master
          to ospf_snmp6_init.
* ospf6_asbr.c: const char update.
* ospf6_interface.c: ditto, plus signed/unsigned fixes.
  (ipv6_ospf6_cost) Check whether cost fits in u_int32_t and use
          strtoul.
* ospf6_intra.c: const char update. Parenthesise expression.
* ospf6_lsa.c: signed/unsigned and const char updates.
* ospf6_proto.c: ditto.
* ospf6_message.c: ditto.
* ospf6_lsdb.c: signed/unsigned update.
* ospf6_main.c: const char update.
* ospf6_neighbor.c: ditto.
* ospf6_spf.c: ditto.
* ospf6_top.c: ditto.

20 years ago2004-10-10 Paul Jakma <paul@dishone.st>
paul [Sun, 10 Oct 2004 11:56:56 +0000 (11:56 +0000)]
2004-10-10 Paul Jakma <paul@dishone.st>

* version.h.in: (pid_output*) add const qualifier.
* command.h: Change DEFUN func to take const char *[] rather
          than char **, to begin process of fixing compile warnings in lib/.
          Nearly all other changes in this commit follow from this change.
        * buffer.{c,h}: (buffer_write) pointer-arithmetic is gccism, take
          const void * and cast an automatic const char *p to it.
          (buffer_putstr) add const
        * command.c: (zencrypt) const qualifier
          (cmd_execute_command_real) ditto
          (cmd_execute_command_strict) ditto
          (config_log_file) ditto.
          Fix leak of getcwd() returned string.
        * memory.{c,h}: Add MTYPE_DISTRIBUTE_IFNAME for struct dist ifname.
        * distribute.{c,h}: Update with const qualifier.
          (distribute_free) use MTYPE_DISTRIBUTE_IFNAME
          (distribute_lookup) Cast to char *, note that it's ok.
          (distribute_hash_alloc) use MTYPE_DISTRIBUTE_IFNAME.
          (distribute_get)  Cast to char *, note that it's ok.
        * filter.c: Update with const qualifier.
        * if.{c,h}: ditto.
        * if_rmap.{c,h}: ditto.
          (if_rmap_lookup) Cast to char *, note that it's ok.
          (if_rmap_get) ditto.
        * log.{c,h}: Update with const qualifier.
        * plist.{c,h}: ditto.
        * routemap.{c,h}: ditto.
        * smux.{c,h}: ditto. Fix some signed/unsigned comparisons.
        * sockopt.c: (getsockopt_cmsg_data) add return for error case.
        * vty.c: Update with const qualifier.

20 years ago2004-10-10 Paul Jakma <paul@dishone.st>
paul [Sun, 10 Oct 2004 08:07:29 +0000 (08:07 +0000)]
2004-10-10 Paul Jakma <paul@dishone.st>

* Makefile.am: fix listing of ospf_snmp.c in noinst_HEADERS

20 years ago2004-10-05 Paul Jakma <paul@dishone.st>
paul [Sun, 10 Oct 2004 08:03:18 +0000 (08:03 +0000)]
2004-10-05 Paul Jakma <paul@dishone.st>

* version.h.in: (pid_output*) add const qualifier.

20 years agoMerge svn revisions 1065 and 1066 from Zebra CVS.
hasso [Fri, 8 Oct 2004 12:04:21 +0000 (12:04 +0000)]
Merge svn revisions 1065 and 1066 from Zebra CVS.

20 years agoCompiler warnings fixes round 1.
hasso [Fri, 8 Oct 2004 08:17:22 +0000 (08:17 +0000)]
Compiler warnings fixes round 1.

20 years agoArgh, fix typo.
hasso [Fri, 8 Oct 2004 06:40:24 +0000 (06:40 +0000)]
Argh, fix typo.

20 years agoThere is no warnings here any more.
hasso [Fri, 8 Oct 2004 06:36:38 +0000 (06:36 +0000)]
There is no warnings here any more.

20 years agoOnly warning left is the known lvalue problem in ripng_nexthop.c.
hasso [Fri, 8 Oct 2004 06:32:23 +0000 (06:32 +0000)]
Only warning left is the known lvalue problem in ripng_nexthop.c.

20 years agoMore const strings.
hasso [Fri, 8 Oct 2004 06:29:12 +0000 (06:29 +0000)]
More const strings.

20 years agoAlthough we don't look at current directory for config any more, it's nice
hasso [Fri, 8 Oct 2004 06:27:23 +0000 (06:27 +0000)]
Although we don't look at current directory for config any more, it's nice
to have modified config file here for development.

20 years ago2004-10-05 Paul Jakma <paul@dishone.st>
paul [Fri, 8 Oct 2004 01:36:54 +0000 (01:36 +0000)]
2004-10-05 Paul Jakma <paul@dishone.st>

* version.h.in: print_version declaration is here, not in autoconf
  generated version.h.

20 years ago- ospfclient should be in -devel package, if anywhere.
paul [Fri, 8 Oct 2004 00:49:09 +0000 (00:49 +0000)]
- ospfclient should be in -devel package, if anywhere.

20 years agoVtysh compiles cleanly as well.
hasso [Thu, 7 Oct 2004 21:40:25 +0000 (21:40 +0000)]
Vtysh compiles cleanly as well.

20 years agoEven more const strings and fix to bugfix.
hasso [Thu, 7 Oct 2004 21:32:14 +0000 (21:32 +0000)]
Even more const strings and fix to bugfix.

20 years ago2004-10-07 Paul Jakma <paul@dishone.st>
paul [Thu, 7 Oct 2004 20:38:44 +0000 (20:38 +0000)]
2004-10-07 Paul Jakma <paul@dishone.st>

* ChangeLog: commit this too...
* bump version to 0.97.0, release imminent.

20 years agoFix warnings. Didn't even look at files not compiled in Linux though.
hasso [Thu, 7 Oct 2004 20:29:24 +0000 (20:29 +0000)]
Fix warnings. Didn't even look at files not compiled in Linux though.

20 years agoNo warnings here any more.
hasso [Thu, 7 Oct 2004 20:07:40 +0000 (20:07 +0000)]
No warnings here any more.

20 years ago2004-10-07 Greg Troxel <gdt@claude.ir.bbn.com>
gdt [Thu, 7 Oct 2004 19:38:20 +0000 (19:38 +0000)]
2004-10-07  Greg Troxel  <gdt@claude.ir.bbn.com>

        * ospf_apiserver.c (ospf_apiserver_unregister_opaque_type): Don't
        use of variable names 'node' and 'nextnode' to avoid possible
        conflict with list macros.  Move variable declaration inside for
        loop after a statement to top of function.

20 years agoMake more strings const.
hasso [Thu, 7 Oct 2004 19:33:46 +0000 (19:33 +0000)]
Make more strings const.

20 years ago2004-10-07 Paul Jakma <paul@dishone.st>
paul [Thu, 7 Oct 2004 16:25:49 +0000 (16:25 +0000)]
2004-10-07 Paul Jakma <paul@dishone.st>

* bump version to 0.97.0, release imminent.

20 years ago- make specfile actually work
paul [Thu, 7 Oct 2004 16:23:36 +0000 (16:23 +0000)]
- make specfile actually work

20 years ago2004-10-07 Paul Jakma <paul@dishone.st>
paul [Thu, 7 Oct 2004 14:19:36 +0000 (14:19 +0000)]
2004-10-07 Paul Jakma <paul@dishone.st>

* ospf_snmp.c: Missed list typedef update
* ospf_dump.c: Include sockopt.h for header swab functions.

20 years ago2004-10-07 Greg Troxel <gdt@sunpal7.mit.edu>
gdt [Thu, 7 Oct 2004 13:53:29 +0000 (13:53 +0000)]
2004-10-07  Greg Troxel  <gdt@sunpal7.mit.edu>

        * configure.ac: remove -Wpacked; 2.95.3 doesn't support it.

20 years agoNumber of warnings is down to 3 again in lib directory. A lot of const's
hasso [Tue, 5 Oct 2004 21:01:23 +0000 (21:01 +0000)]
Number of warnings is down to 3 again in lib directory. A lot of const's
added to strings and a lot of int -> unsigned int changes.