Commit Graph

95 Commits

Author SHA1 Message Date
hasso
320ec10a24 Removing code which looked at current dir for config file before attempting
to read system one.
2004-06-20 19:54:37 +00:00
hasso
ca7769881f OK, here it is - irdp support. But don't expect me to fix any bugs in it. 2004-06-12 14:33:05 +00:00
paul
d26ca6a976 CVS ignore Linux NFS silly-delete .nfs* files 2004-06-06 15:25:35 +00:00
hasso
3e31cded7f Router advertisement cleanup. Removed compatibility command because it's
very annoying to have both obsolete "prefix-advertisement" and "prefix" in
completion. We will break configuration anyway with secondary cleanup, so
just remember mention it in release notes.
2004-05-18 11:58:59 +00:00
paul
c50ae8baf6 2004-05-11 Paul Jakma <paul@dishone.st>
* ioctl.h: Add if_ioctl_ipv6 prototype and AF_IOCTL for SOLARIS_IPV6
        * kernel_socket.c: Fix SAROUNDUP, compiler doesnt like do..while
          RHS in assignments :)
        * redistribute.c: (zebra_interface_delete_update) only used
          if RTM_IFANNOUNCE and NETLINK is available.
2004-05-11 11:31:07 +00:00
paul
48a46fa0c3 2004-05-11 Paul Jakma <paul@dishone.st>
* Makefile.am: support for IOCTL_METHOD, as per Sowmini's patch.
        * if_ioctl_solaris.c: Fixup some erroneous privilege changes and
          add privs.h header.
        * ioctl_solaris.c: ditto
2004-05-11 10:55:22 +00:00
paul
19877dd2dc 2004-05-11 Paul Jakma <paul@dishone.st>
* configure.ac: Add solaris support for the zebra/*_solaris
          method's, based on Sowmini's patches.
        * zebra/Makefile.am: support for IOCTL_METHOD, as per Sowmini's
          patch.
2004-05-11 10:49:35 +00:00
paul
8842468c7a 2004-05-09 Paul Jakma <paul@dishone.st>
* if_ioctl_solaris.c: Add zprivs support.
	* ioctl_solaris.c: ditto.

2004-05-09 Sowmini Varadhan <sowmini.varadhan@sun.com>

	* if_ioctl_solaris.c: New file, Solaris interface ioctl methods.
	* ioctl_solaris.c: New file, Common solaris ioctl methods.
2004-05-09 18:21:35 +00:00
paul
66e9488cae 2004-05-09 Sowmini Varadhan <sowmini.varadhan@sun.com>
* ipforward_solaris.c: fix typo of ND variable.
2004-05-09 17:19:24 +00:00
paul
44145db3ae 2004-05-09 Paul Jakma <paul@dishone.st>
* ioctl.c: (if_get_mtu) set mtu6 to mtu
	* mtu_kvm.c: (if_kvm_get_mtu) set mtu6 to mtu
	* rt_netlink.c: (netlink_interface) set mtu6 to mtu
	  (netlink_link_change) ditto

2004-05-09 Sowmini Varadhan <sowmini.varadhan@sun.com>

	* interface.c: (if_delete_update) only used with HAVE_NETLINK
	  and RTM_IFANNOUNCE.
	  (if_flag_dump_vty) Solaris IFF_IPV4 and IFF_IPV6 if flags
	  (if_dump_vty) print mtu6 if not same as mtu
2004-05-09 11:00:23 +00:00
paul
b9df2d25fc 2004-05-09 Paul Jakma <paul@dishone.st>
* zserv.c: (zsend_route_multipath) Set the nexthop_num
	  field correctly. Add NEXTHOP_TYPE_IPV6_IFNAME for v6.
	  Conditionally set ZAPI_MESSAGE_METRIC flag - only for adds.
	  (zsend_ipv4_add) cruft, deleted.
	  (zsend_ipv4_delete) ditto.
	  (zsend_ipv6_add) ditto.
	  (zsend_ipv6_delete) ditto.

2004-05-09 Sowmini Varadhan <sowmini.varadhan@sun.com>

	* zserv.c: (zsend_ipv{4,6}_{add,delete}_multipath) collapsed
	  into single zsend_route_multipath function.
	  (zsend_interface_{up,down}) collapsed into zsend_interface_update.
	  (zsend_interface_address_{add,delete}) collapsed into
	  zsend_interface_address.
	  (zsend_interface_add) send mtu6.
	  (zsend_interface_delete) ditto.
	  (zebra_write) remove unused function.
	  (various) Apply static qualifier. Add comments.
	* zserv.h: Definitions changed as per above.
	* redistribute.c: Changes as per zserv.c.
2004-05-09 09:09:59 +00:00
hasso
34195bf6dd [quagga-dev 1002]. Also fix date of previous commit in Chanelog. 2004-04-06 12:07:06 +00:00
hasso
41d3fc9695 * Fixed lowering privileges in proc ipforward method.
* Fixed "(no) ipv6 forwarding" command logic.
* Added --disable-capabilities switch to configure.
2004-04-06 11:59:00 +00:00
hasso
f571dab0c6 Readded SIGTERM handling into sigevent stuff. Fixes bugzilla #85. 2004-03-22 08:55:25 +00:00
hasso
f1d92e17ab Temorary secondary-label fix. Real fix from Gilad will follow after release. 2004-03-18 15:40:33 +00:00
hasso
8c903fbb11 Fix bugzilla #82. 2004-03-17 20:39:18 +00:00
gdt
5e4fa1646c 2004-03-16 David Young <dyoung@pobox.com>
* (many) reference <lib/version.h> rather than "version.h",
	because version.h is a generated file and not present in the
	source tree when using objdir builds.

(committed by gdt)
works fine with normal builds; didn't try objdir
2004-03-16 14:38:36 +00:00
hasso
e23949c0e7 Fix help. "ipv6 ..." commands are for IPv6. 2004-03-11 15:54:02 +00:00
hasso
5707ccee87 Fix warning. Approved by Amir. 2004-03-04 19:20:44 +00:00
hasso
fa2b17e394 Many warning fixes from PC Drew ([quagga-dev 940]) and removing using PAGER
from vtysh ([quagga-dev 932]).
2004-03-04 17:45:00 +00:00
hasso
55906724d8 Added "ipv6 forwarding" command and fixed "no ipv6 forwarding" help. 2004-02-11 22:42:16 +00:00
paul
2d75d05218 2004-01-19 Paul Jakma <paul@dishone.st>
* tests/test-sig.c: New file, regression test for sigevents.
        * lib/Makefile.am: add sigevent.{c,h}
        * (isis|rip|ripng|ospf|ospf6|bgp)d/\1_main.c: modify for sigevents.
        * zebra/main.c: ditto.
2004-01-19 21:31:15 +00:00
gdt
b27900b7c0 2004-01-08 Greg Troxel <gdt@fnord.ir.bbn.com>
* kernel_socket.c (kernel_read): Use sockaddr_storage in buffer
        for reading kernel messages to ensure enough space (necessary on
        Solaris due to sockaddr_dl being large).  Thanks to Sowmini
        Varadhan for help with this change.
2004-01-08 15:44:29 +00:00
gdt
9ccabd1cdb change perror to zlog_err 2004-01-06 18:23:02 +00:00
gdt
4bfbea8cc3 2004-01-05 Greg Troxel <gdt@fnord.ir.bbn.com>
* kernel_socket.c (ifm_read): Major cleanup.  Use Sowmini's code
        to find the sockaddr_dl in all cases, narrowing the Solaris ifdef
        to just the accomodation of broken kernels.  Check sockaddr_dl
        carefully up front, and later assume any non-NULL sdl pointer is
        valid.  Clean up types and variable declarations, and rename
        WRAPUP to SAROUNDUP to make the name fit the behavior.
2004-01-06 01:13:05 +00:00
gdt
dbee01fe8b increase buffer size for kernel reads 2004-01-06 00:36:51 +00:00
gdt
cb42c035cc Fix incorrect test in previous commit; thanks to Sowmini Varadhan for
catching this.
2004-01-05 17:55:46 +00:00
gdt
da26e3b654 2004-01-05 Greg Troxel <gdt@ahi.ir.bbn.com>
* kernel_socket.c (kernel_read): Look up interfaces by index
        first, so that state changes which do not include a sockaddr_dl
        now work.  Add many sanity checks.  In
        particular, do not assume that a sockaddr_dl follows a message
        without checking the ifm_addrs flags, and do not trust the length
        in a sockaddr_dl.  Add/clarify many comments.
2004-01-05 17:20:59 +00:00
jardin
9e867fe663 Merge isisd into the Quagga's framework:
- add privs support
  - use misc quagga's definitions
  - make it compile"able"
  - fix segfault cases related to hostname()
  - add debug isis xxx command

This patch has been approved by Paul Jakma.
2003-12-23 08:56:18 +00:00
gdt
4b5e1359cf reorder includes to avoid warning.
fixes rest of bug #62
2003-12-03 17:54:34 +00:00
gdt
d6b72f7ab1 Add support for --enable-exampledir to specify where to place example
files, defaulting to sysconfdir (matching previous behavior).

This is needed to support (cleanly) NetBSD pkgsrc, which requires that
example config files go in $(prefix)/share/examples/pkgname, rather
than in $(prefix)/etc/pkgname.
2003-12-03 17:24:27 +00:00
paul
b84d3a1b6e 2003-11-17 Jay Fenlason <fenlason@redhat.com>
* zebra/rt_netlink.c: netlink_parse_info() ignore messages which are
	  not from kernel. Reported to RH by Herbert Xu. See
	  http://rhn.redhat.com/errata/RHSA-2003-307.html and CAN-2003-0858.
2003-11-17 10:31:01 +00:00
paul
b5f4502146 2003-11-02 Krzysztof Oledzki <oleq@ans.pl>
* zebra/zebra_rib.c: Revert patch (dating from zebra.org) which
          caused zebra to read all routes in all tables, rather than just
          the main table. See [quagga-dev 280].
2003-11-02 07:28:05 +00:00
paul
6baeb98892 2003-10-27 Gilad Arnold <gilad.arnold@terayon.com>
* zebra/zebra_rib.c: (nexthop_active_update) Check for multipath
          limit when setting changed flag to avoid spurious changes.
          (static_install_ipv{4,6}) dont uninstall by default, might not be
          required - avoid spurious uninstalls.
          (static_uninstall_ipv{4,6}) only uninstall the route if its
	  actually FIB route.
2003-10-28 03:47:15 +00:00
paul
04bd484bf2 2003-10-24 Paul Jakma <paul@dishone.st>
* configure.ac: Check for fcntl()
        * {bgpd,ospf,ospf6d,ripd,ripngd}/Makefile.am: Install conf file via
          regular automake means, not magic install incantations, see
          bug #38.
        * lib/Makefile.am: install the headers, needed to link libzebra.a
          (and hence libospf.a, OSPF-API, etc.)
2003-10-24 04:24:39 +00:00
paul
30be80287a 2003-10-22 Paul Jakma <paul@dishone.st>
* zebra/kernel_socket.c: HAVE_IPV6 conditional for WRAPUP when
          HAVE_SA_LEN is not defined. bcopy -> memcpy, bcopy is not
          portable.
2003-10-22 02:51:38 +00:00
paul
d1724b6555 2003-10-22 Paul Jakma <paul@dishone.st>
* lib/regex.c: bzero -> memset
        * zebra/ioctl.c: ditto. bzero is not portable.
2003-10-22 02:41:52 +00:00
paul
2fe28bbb7b 2003-10-13 Douglas Fraser <doug+quagga@idmf.net>
* zebra/connected.c: PtP revert fixup. Zebra was not creating
	connected route for PtP peer.
2003-10-13 08:59:40 +00:00
paul
44ebf843d7 2003-10-07 Tarhon-Onu Victor <mituc@iasi.rdsnet.ro>
* zebra/ipforward_proc.c: (ipforward) Close the fd for
	/proc/net/snmp. See [quagga-dev 284]
2003-10-07 05:58:48 +00:00
paul
143a385f0c 2003-09-29 Gilad Arnold <gilad.arnold@terayon.com>
* zebra/zebra_rib.c: Fix possible dangling reference to rib
 	route_nodes - unlock it the appropriate number of times. (twice,
	because of the implicit lock). see [quagga-dev 251].
2003-09-29 20:06:13 +00:00
paul
31a476c7e9 2003-09-29 Paul Jakma <paul@dishone.st>
* zebra/connected.c: revert the 'generic PtP' patch as it causes
	far too many problems. People who use FreeSWAN should investigate
	native linux ipsec.
	* zebra/rt_netlink.c: ditto
	* lib/if.c: ditto
	* ripd/ripd.h: ditto
	* ripd/ripd.c: ditto
	* ripd/rip_interface.c: ditto
	* ospfd/ospfd.c: ditto
	* ospfd/ospf_snmp.c: ditto
	* bgpd/bgp_nexthop.c: ditto
2003-09-29 19:54:53 +00:00
paul
3e95a0741f 2003-09-24 sowmini.varadhan@sun.com
* zebra/kernel_socket.c: Fix up WRAPUP macro to deal with multiple
          address families in the absence of sa_len element in struct
          sockaddr.
          (ifm_read): Handle solaris 9 if_msghdr_t.
          Deal with interfaces which are incomplete, lookup on name rather
          than the placeholder interface index of -1.
2003-09-24 00:05:45 +00:00
paul
537d8ea92b 2003-08-27 Jay Fenlason <fenlason@redhat.com>
* bgpd/bgp_routemap.c: attr->med is type u_in32_t, should be
	  compared with UINT32_MAX
	* ospfd/ospfd.c: remove redundant assert
	* zebra/rtadv.c: add missing include for zebra/rib.h
2003-08-27 06:45:32 +00:00
paul
fd6ff2fc6b 2003-08-27 Jay Fenlason <fenlason@redhat.com>
* lib/Makefile.am: Do not use a lib (libcap) as a dependency
	* zebra/Makefile.am: Link in libcap
2003-08-27 06:17:18 +00:00
paul
d81fadfd88 2003-08-14 Paul Jakma <paul@dishone.st>
* zebra/main.c: Fixup ZEBRA_{GROUP,USER} defines ->
	  QUAGGA_{USER,GROUP}
	* bgpd/bgp_main.c: ditto
	* ospf6d/ospf6_main.c: ditto
	* ospfd/ospf_main.c: ditto
	* ripd/rip_main.c: ditto
	* ripngd/ripng_main.c: ditto
	* zebra/main.c: ditto
2003-08-14 05:32:12 +00:00
paul
96735eeafe 2003-08-10 amir <amir@datacore.ch>
* Add missing 'i' to getopts, short form of --pid_file.
	  see http://bugzilla.quagga.net/show_bug.cgi?id=25
2003-08-10 02:51:22 +00:00
paul
106d2fd572 2003-08-01 Cougar <cougar@random.ee>
* lib/if.c: (if_cmp_func) new function, compare interface names in
	alphabetical order.
	(if_create) Take name as argument and add interface in sorted order.
	(if_get_by_name),(interface_cmd) fixup calls to if_create - see
	above.
	(if_init) register list comparison function.
	* lib/if.h: Add comparison function, modify if_create prototype.
	* lib/zclient.c: Modify call to if_create.
	* ospfd/ospf_interface.c: (ospf_vl_new) modify call to if_create.
	change sprintf to snprintf.
	* zebra/kernel_socket.c: (ifm_read) modify call to if_create.
2003-08-01 00:24:13 +00:00
paul
7021c425a9 2003-07-15 Paul Jakma <paul@dishone.st>
* lib/version.h: add ZEBRA_URL (unused for now)
        * lib/vty.c: CMD_ERR_NOTHING_TODO when reading conf file should not
          be fatal. slight reformating.
        * ospfd/ospf_zebra.c: ignore reject/blackhole routes if zebra sends
          these type of routes. probably should be a new type of route to
          allow daemons to more easily choose whether to redistribute them
          - rathen than just a flag (eg for reject/blackhole).
          reorder the is_prefix_default test for ZEBRA_IPV4_ROUTE_DELETE to
          avoid the inverted test - slightly more readable.
        * redhat/zebra.spec.in: Add ospfapi port to services file, if
          with_ospfapi.
        * zebra/rib.h: Change nexthop types to an enum.
        * zebra/rt_netlink.c: run it through indent -nut.
          Add nexthop_types_desc[] descriptive array for nexthop types.
          (netlink_route_multipath) debug statements indicate which branch
          they are in and print out nexthop type.
        * zebra/zebra_rib.c: slight reformatting.
        * zebra/zebra_vty.c: Pass ZEBRA_FLAG_BLACKHOLE flag to
          static_add_ipv4() if Null0 route is configured. print out Null0 if
          STATIC_IPV4_BLACKHOLE route, and ignore flags (shouldnt be
          possible to set flags from vty) for config and show route.
2003-07-15 12:52:22 +00:00
paul
7f809942da 2003-07-12 Matthias Ferdinand <mferd@sanet.de>
* zebra/if_proc.c: zebra does not close the file after reading
          /proc/net/dev for retrieving interface names and statistics.
          call fclose(fp) before returning from ifstat_update_proc()
          or interface_list_proc()
2003-07-12 21:49:25 +00:00
paul
53db0feeb8 2003-06-11 Paul Jakma <paul@dishone.st>
* zebra/if_ioctl.c: Fix missing declaration for if_fake_index.
	  See bug id #24: http://bugzilla.dishone.st/show_bug.cgi?id=24
	  reported by Vsevolod Sipakov.
2003-07-11 17:42:09 +00:00