summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 2003-07-26 Paul Jakma <paul@dishone.st>paul2003-07-261-1/+1
| | | | | | * lib/command.c: Add config_log_syslog_facility_cmd, to set syslog facility. This was a commit to zebra.org on May 20, merge in to zebra-pj.
* 2003-07-15 Paul Jakma <paul@dishone.st>paul2003-07-152-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | * 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-11 Vsevolod Sipakov <zebra@vs.megalink.ru>paul2003-07-111-0/+12
| | | | | * lib/command.c: Add missing HAVE_IPV6 defines. see bug id #23: http://bugzilla.dishone.st/show_bug.cgi?id=23
* 2003-07-8 Chris Andrews <chris@nodnol.org>paul2003-07-081-0/+3
| | | | | | | * zebra/kernel_socket.c: Update for new zebrad global struct * zebra/ipforward_solaris.c: Add missing privs.h include. Uncomment /dev/ip define. * lib/zebra.h: Add typedefs for SunOS.
* 2003-06-19 Paul Jakma <paul@dishone.st>paul2003-06-192-5/+11
| | | | | * Fix lib/smux.c's reliance on daemons exporting struct thread_master *master.
* 2003-06-15 Paul Jakma <paul@dishone.st>paul2003-06-153-6/+13
| | | | | | | | * lib/vty.{c,h}: Remove vty layer depending on a 'master' global, pass the thread master in explicitly to vty_init. Sort out some header dependency problems with lib/command.h * zebra/: Move globals to struct zebrad. Update vty_init(). * (.*)/\1_main.c: update call to vty_init().
* 2003-06-11 Paul Jakma <paul@dishone.st>paul2003-06-111-14/+21
| | | | | | * lib/privs.h (zprivs_init): do not use zlog() as it depends on vty having been initialised (zlog calls vty_log). print to stderr directly instead.
* 2003-06-07 Paul Jakma <paul@dishone.st>paul2003-06-063-60/+16
| | | | | * Revert Cougar's sort interface names patch, causes problems with enabling of interfaces for OSPF in ospfd.
* Patch from Cougar - sort iflist by name.hasso2003-06-053-16/+60
|
* Paul forgot probably to commit privs.[c|h] changes. Had to reorder includeshasso2003-06-043-44/+86
| | | | in zebra.h to make it compile in debian.
* 2003-06-04 Paul Jakma <paul@dishone.st>paul2003-06-044-4/+27
| | | | * Merge of zebra privileges
* Paul Jakma:paul2003-06-043-0/+30
| | | | | | lib/debug.{c,h}: glibc backtrace printing function (from the glibc info page) configure.ac: check for glibc backtrace and set define lib/zebra.h: glibc backtrace support
* lib/table.c: Fix the SET_LINK macro. (not that its of any worth)paul2003-05-291-2/+2
|
* Add back support for null0 interface blackhole routes.paul2003-05-252-19/+32
|
* Last fixes from 6Wind patch.hasso2003-05-253-0/+20
|
* Route (reject|blackhole) support from 6Wind patch.hasso2003-05-252-13/+1
|
* Ripngd part of 6Wind patch.hasso2003-05-252-2/+34
|
* RIP has now "route-map x [in|out] <interface>" as well.hasso2003-05-251-4/+26
|
* Revert my http://hasso.linux.ee/zebra/ht-ifrmap-14042003.patch patch. Usedhasso2003-05-243-2/+355
| | | | | same idea as in lib/distribute.c to allow extract.pl to pick up commands for vtysh.
* From: rivo nurges <rix@estpak.ee>paul2003-05-241-3/+0
| | | | | | Subject: solaris compile patch types defined for SUNOS_5 were already defined in config.h
* Update changelog -> fix from Anil Madhavapeddypaul2003-05-241-0/+4
|
* Fix incorrect buffer bounds.paul2003-05-241-4/+4
| | | | Reported by Anil Madhavapeddy to bug-zebra.
* From: Hasso Tepper <hasso@estpak.ee>paul2003-05-241-2/+6
| | | | ensure only interfaces that are inactive or do not exist can be deleted
* From: Hasso Tepper <hasso@estpak.ee>paul2003-05-232-0/+27
| | | | | | | | Add the 'no interface' command to all the daemons and vtysh. now it's possible to delete interface from routeing daemons as well only if it doesn't exist in os. http://hasso.linux.ee/zebra/ht-no_interface_fix.patch
* Undo Hasso last patch, about to apply a slightly updated patch.paul2003-05-232-27/+0
|
* Allow group access to vty socket.paul2003-05-231-1/+1
|
* From: Hasso Tepper <hasso@estpak.ee>paul2003-05-232-0/+27
| | | | | | http://hasso.linux.ee/zebra/ht-no_interface-23052003.patch Add the 'no interface' command to all the daemons and vtysh.
* Add additional system capabilitiespaul2003-05-222-1/+9
|
* Fix stray comment and using pwentry for group info.paul2003-05-201-5/+5
|
* Undo revision 1.3, revert back to zebra_org 1.1.1.2.paul2003-05-201-0/+4
| | | | | asm/types.h is required for netlink. Later glibc's seem to have resolved the warning.
* Fix several small caps related errors.paul2003-05-201-15/+16
|
* Privilege support files for zebra.paul2003-05-202-0/+426
| | | | Linux capabilities enabled (if libcap is enabled).
* From: Paul Jakma <paul@clubi.ie>paul2003-05-191-4/+46
| | | | | | | | | | | | | Subject: [zebra 19097] HAVE_ASM_TYPES does anyone know why lib/zebra.h has: #ifdef HAVE_ASM_TYPES_H #include <asm/types.h> #endif /* HAVE_ASM_TYPES_H */ There's no need for it that i can see (least not on linux) and it causes compile warnings. Is it needed? If so, why?
* Update Changelogspaul2003-05-161-0/+9
|
* From: Sergiy Vyshnevetskiy <serg @ vostok.net>paul2003-05-081-7/+31
| | | | | | Subject: [zebra 19019] [PATCH] daemons -A option Works now. Patch attached. Not tested for IPv6, but should work there too.
* Hasso Tepperpaul2003-04-191-11/+92
| | | | | | http://hasso.linux.ee/zebra/ht-distribute-18042003.patch Allows to extract.pl to pickup "distribute-list ..." commands for vtysh (ripngd and ripd).
* Hasso Tepperpaul2003-04-193-354/+2
| | | | | | | http://hasso.linux.ee/zebra/ht-ifrmap-14042003.patch Allows to extract.pl to pickup "route-map xxx in/out dev" commands for vtysh (ripngd). As lib/if_rmap.[c|h] are used in ripngd only, I moved them to the ripngd/ directory.
* Add Makefile.in to the remaining .cvsignore'spaul2003-04-091-0/+1
| | | | Add ospfclient to ospfclient/.cvsignore
* Remove auto* files from the repository.paul2003-04-071-412/+0
| | | | | | | | | Developers working with the repository should have the appropriate tools. Out-of-sync files cause far too many problems with users as well as auto* scripts not being half as portable across systems as they ought to be. make-dist exists for a reason. Todo: make the CVS snapshot script do make-dist, and use the resulting tarball as the snapshot.
* 2003-04-04 Paul Jakma <paul@dishone.st>paul2003-04-041-2/+2
| | | | | | | | | * Sync to Zebra CVS * Fix lib/thread.h leak * Fix small Opaque LSA leak * Do not configure OSPF interfaces for secondary addresses * vtysh fixes from Hasso * Dave Watson's missing ntohs fix
* Need to free the defunct funcname if we grab a thread from the unused list.paul2003-03-271-1/+7
|
* 2003-03-25 Paul Jakma <paul@dishone.st>paul2003-03-251-178/+236
| | | | | | | | * sync to latest zebra CVS * spec file: updated and added define for ospf-api/client NB: OSPF-API has been broken by the zebra.org changes, which has added struct ospf * as a new arg to many functions
* Fix build for net-snmppaul2003-03-181-1/+3
|
* Amir Guindehi <amir@datacore.ch>paul2003-03-171-1/+1
| | | | | | | | -------------------------------- I've attached a small patch for zebra-pj, which adds the installation of libospf.a libzebra.a, libospfapi.a and the needed headers for ospfapi clients. the headers get installed to /usr/include/ospfd/* and /usr/include/ospfapi.
* Update auto files.paul2003-03-171-227/+182
| | | | No doubt builds will now break for everyone. (works here - autoconf 2.13)
* Fix memory leak in 'show thread cpu' command.paul2003-03-121-1/+2
|
* Sync to Zebra.org 20030301paul2003-03-011-122/+52
|
* Revert to zebra.org automake filespaul2003-02-171-51/+121
|
* Update auto* build filespaul2003-02-131-121/+51
|
* This patch adds Yon's CLI 'walk back up tree' patch. Following are emailpatch_z17218_cli_walk_uppaul2003-01-181-112/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | describing original patch and a shorter email describing changes to an updated patch, the one which is applied: From havanna_moon@gmx.net Sat Jan 18 00:37:13 2003 Date: Mon, 9 Dec 2002 05:32:58 +0100 (CET) From: Yon Uriarte <havanna_moon@gmx.net> To: "the list(tm) Zebra" <zebra@zebra.org> Subject: [zebra 16671] [PATCH] CLI extensions. Hi, this patch adds 2 improvements to the CLI (lib/command.c): #1) When in subconfig mode (router XXX, interface XXX, ...) commands that fail for that node are tried on the main CONFIG_NODE. This is great for configuring interfaces or changing the sub-config mode quickly, without the need to type 'exit' between commands: ospfd(config)# int eth1 ospfd(config-if)# ip ospf cost 9 ospfd(config-if)# ip ospf prio 101 ospfd(config-if)# router ospf ospfd(config-router)# network 1.1.1.0/24 area 51 ospfd(config-router)# int eth2 ospfd(config-if)# ip ospf authentication message-digest ospfd(config-if)# ^Z ospfd# Is this IOS-like or does IOS try to walk up the tree of config sub-modes instead of directly trying the command on CONFIG_NODE? CAVEATS: "?" and "TAB" don't work. IIRC IOS doesnt show that help neither. NON-CAVEATS: This wont break much, as config_from_file() already does try a failed command on the parent node of the actual vty->node. If changing the code to walk the node tree instead of directly trying the command on the ENABLE_NODE the same semantics would be in use and no future bugs could creep in. #2) When in config or subconfig mode use the "do " prefix to execute commans of the ENABLE_NODE. "?" and "TAB" work. The space after the "do" is needed: ospfd(config-router)# do<?> % There is no matched command. ospfd(config-router)# do <?> clear Reset functions configure Configuration from vty interface copy Copy configuration debug Debugging functions (see also 'undebug') disable Turn off privileged mode command end End current mode and change to enable mode. exit Exit current mode and down to previous mode help Description of the interactive help system list Print command list no Negate a command or set its defaults quit Exit current mode and down to previous mode show Show running system information terminal Set terminal line parameters who Display who is on vty write Write running configuration to memory, network, or terminal ospfd(config-router)# do sho<TAB> ospfd(config-router)# do show me<TAB> ospfd(config-router)# do show memory r<TAB> ospfd(config-router)# do show memory rip RIP structure : 0 RIP route info : 0 RIP interface : 0 RIP peer : 0 RIP offset list : 0 RIP distance : 0 ospfd(config-router)# ^Z ospfd# CAVEATS: I don't have access to an IOS with this feature, so I implemented it from the comments on this mailing list (in fact my personal motivation was to implement feature #1, which I missed on zebra. But #2 sounded like a nice one to have, and xemacs was already parked on command.c ...). Is this IOS-like or are there differences? I will happily change this patch to mimick IOS or the mailing-list consensus on CLI-usability. regards, yon From havanna_moon@gmx.net Sat Jan 18 01:13:11 2003 Date: Sat, 11 Jan 2003 23:36:51 +0100 (CET) From: Yon Uriarte <havanna_moon@gmx.net> To: zebra@zebra.org Subject: [zebra 17218] Re: [PATCH] CLI extensions. Hi, [redacted] > I prefer the IOS way for the node "up walking". This patch should walk the tree upwards: bgpd(config)# router bgp 1 bgpd(config-router)# address-family ipv4 multicast bgpd(config-router-af)# access-list 1 remark hola que tal bgpd(config)# I cant test all combinations, so I cant rule out some bugs. I'd love to get (long and explicit) bug reports. [redacted]