summaryrefslogtreecommitdiffstats
path: root/vtysh
Commit message (Collapse)AuthorAgeFilesLines
* * extract.pl.in: Ignore "router zebra".hasso2005-04-072-0/+2
|
* * Makefile.am: Remove rebuild4 target, it's not used any more by buildhasso2005-04-072-15/+19
| | | | procedure. Define vtysh_cmd_FILES. Use EXTRA_DIST.
* 2005-04-07 Paul Jakma <paul.jakma@sun.com>quagga.post.listloop.cleanuppaul2005-04-072-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * (global): Fix up list loops to match changes in lib/linklist, and some basic auditing of usage. * configure.ac: define QUAGGA_NO_DEPRECATED_INTERFACES * HACKING: Add notes about deprecating interfaces and commands. * lib/linklist.h: Add usage comments. Rename getdata macro to listgetdata. Rename nextnode to listnextnode and fix its odd behaviour to be less dangerous. Make listgetdata macro assert node is not null, NULL list entries should be bug condition. ALL_LIST_ELEMENTS, new macro, forward-referencing macro for use with for loop, Suggested by Jim Carlson of Sun. Add ALL_LIST_ELEMENTS_RO for cases which obviously do not need the "safety" of previous macro. LISTNODE_ADD and DELETE macros renamed to ATTACH, DETACH, to distinguish from the similarly named functions, and reflect their effect better. Add a QUAGGA_NO_DEPRECATED_INTERFACES define guarded section with the old defines which were modified above, for backwards compatibility - guarded to prevent Quagga using it.. * lib/linklist.c: fix up for linklist.h changes. * ospf6d/ospf6_abr.c: (ospf6_abr_examin_brouter) change to a single scan of the area list, rather than scanning all areas first for INTER_ROUTER and then again for INTER_NETWORK. According to 16.2, the scan should be area specific anyway, and further ospf6d does not seem to implement 16.3 anyway.
* * extract.pl.in: Use SNMP_INCLUDES to avoid warnings if compiling withhasso2005-03-282-1/+6
| | | | snmp support.
* 2005-03-14 Paul Jakma <paul.jakma@sun.com>paul2005-03-142-4/+4
| | | | | | | | | | * (global) update all c files to match the lib/vector.h rename of (struct vector).active to max, and vector_max macro to vector_active. * lib/vector.h: Rename to (struct vector).max to slightly less confusing active, for the number of active slots, distinct from allocated or active-and-not-empty. Rename vector_max to vector_active for same reason.
* * vtysh_config.c: Move password commands to the AAA_NODE. Ithasso2005-03-092-5/+13
| | | | | | | | quarantees that they will appear after SERVICE_NODE to make sure that encrypted passwords will work ("service password-encryption" command). [backport candidate]
* 2005-01-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-283-160/+135
| | | | | | | | | | | | | | | | | | | | | | * vtysh.h: Remove obsolete VTYSH_INDEX_* defines. Fix many prototypes for functions with no arguments (must specify argument list as void). * vtysh.c: Enhance vtysh_client array to include the daemon's name and bitmask and socket path (in addition to the fd). This allows us to use loop constructs for various operations that need to be applied to all client daemons, and it facilitates better error messages. Also fix some prototypes with void argument lists. (vclient_close) Issue a warning message indicating which daemon's socket is being closed. (vtysh_execute_func,vtysh_config_from_file) Use a for loop to call vtysh_client_execute. (vtysh_write_terminal,write_config_integrated) Use a for loop to call vtysh_client_config. (vtysh_write_memory) Use a for loop to call vtysh_client_execute. (vtysh_show_daemons) Use a for loop. (vtysh_connect) The struct vtysh_client is now statically initialized, so do not initialize it here. (vtysh_connect_all) Use a for loop to call vtysh_connect. Set ripd_client pointer for use in vtysh_exit_ripd_only.
* * lib/command.[ch]: Make node_parent() function nonstatic. vtyh.c willhasso2005-01-232-2/+47
| | | | | | use it as well. * vtysh/vtysh.c: Implement walkup in node tree for vtysh as it already works in vty.
* * vtysh.conf.sample: Fix typo "integrated-vtysh-conf" ->hasso2005-01-232-1/+6
| | | | "integrated-vtysh-config".
* * command.[ch], vty.c: cmd_execute_command() function must not attempthasso2005-01-162-2/+8
| | | | | | | | | | | | to walk up in the node tree if called from vtysh. Different daemons might have commands with same syntax in different nodes (for example "router-id x.x.x.x" commands in zebra/ospfd/ospf6d daemons). * vtysh.c: Reflect changes in lib. cmd_execute_command() should know now that it's called from vtysh and must not attempt to walk up in the node tree. [pullup candidate]
* More cosmetical vtysh fixes.hasso2004-12-222-3/+9
|
* No delimiter between "ip forwarding" and "ipv6 forwarding".hasso2004-12-222-1/+6
|
* 2004-12-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-092-4/+5
| | | | | * vtysh.c: (vtysh_connect) No reason to call geteuid and getegid, the results were never used.
* 2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-072-28/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bgp_main.c: (main) The 2nd argument to openzlog has been removed. * isis_main.c: (main) The 2nd argument to openzlog has been removed. * ospf6_main.c: (main) The 2nd argument to openzlog has been removed. Note that stdout logging will no longer be enabled by default when not running as a daemon. * ospf_main.c: (main) The 2nd argument to openzlog has been removed. * rip_main.c: (main) The 2nd argument to openzlog has been removed. * ripng_main.c: (main) The 2nd argument to openzlog has been removed. * main.c: (main) The 2nd argument to openzlog has been removed. So stdout logging will no longer be enabled by default. * irdp_main.c: (irdp_finish) Reduce severity of shutdown message from LOG_WARNING to LOG_INFO. * vtysh.c: Make several functions static instead of global. Added several commands to support destination-specific logging levels. (vtysh_completion) This function is unused, so comment it out. * basic.texi: Document new logging features. Separate basic config commands from basic VTY commands. * log.h: Replace struct zlog flags and maskpri fields with maxlvl array to support individual logging levels for each destination. Remove the 2nd argument to openzlog since the default logging config should be standardized inside the library. Replaced the zlog_set_flag and zlog_reset_flag functions with zlog_set_level. And zlog_set_file now requires an additional log_level argument. Declare zlog_proto_names for use inside command.c in the "show logging" command. Added defines useful for command construction. * log.c: (vzlog) Decide where to send the message based on the individual logging levels configured for each destination. Remove support for ZLOG_STDERR since it was never actually used. Support record-priority for terminal monitors. (zlog_signal,zlog_backtrace_sigsafe) Support destination-specific logging levels. Remove stderr support (was never used). Added support for terminal monitor logging. (_zlog_assert_failed) Increase message severity to LOG_EMERG. (openzlog) Remove 2nd argument since default config should be standardized in library. By default, terminal monitoring is set to debug, and all other logging is disabled. (zlog_set_flag,zlog_reset_flag) Removed. (zlog_set_level) New function to replace zlog_set_flag and zlog_reset_flag. Supports destination-specific logging levels. (zlog_set_file,zlog_reset_file) Support file-specific logging level. (zlog_rotate) Log an error message if fopen fails, and support new file-specific logging level. * command.h: Change DEFUN_CMD_FUNC_DECL and DEFUN_CMD_FUNC_TEXT so that command functions will be static instead of global. Remove declarations for config_exit and config_help. Define new macros DEFUNSH_ATTR, DEFUNSH_HIDDEN, and DEFUNSH_DEPRECATED so we can have deprecated commands in vtysh. Similarly, for completeness, define macros ALIAS_SH, ALIAS_SH_HIDDEN, and ALIAS_SH_DEPRECATED. Also, fix bug in ALIAS_ATTR macro (didn't matter because it was never used). * command.c: Make many functions static instead of global. (facility_name,facility_match,level_match) New functions to support enhanced destination-specific logging levels. (config_write_host) Support new destination-specific logging levels. (config_logmsg) Added new "logmsg" command to help test logging system. (show_logging) Added "show logging" command to show the current configuration of the logging system. (config_log_stdout_level) Support explicit stdout logging level. (no_config_log_stdout) Now takes optional LEVEL arg. (config_log_monitor,config_log_monitor_level,no_config_log_monitor) New commands creating new "log monitor" commands to set terminal monitoring log level. (config_log_file_level) Support explicit file logging level. (config_log_syslog_level) Support explicit syslog logging level. (config_log_facility,no_config_log_facility) Implement new "log facility" command. (cmd_init) Add hooks for new commands: "show logging", "logmsg", "log stdout <level>", "log monitor", "log monitor <level>", "no log monitor", "log file <filename> <level>", "no log file <filename> <level>", "log syslog <level>", "log facility", and "no log facility". * vty.h: Added a "level" argument to vty_log so it can support "log record-priority". Declare new function vty_log_fixed for use in signal handlers. * vty.c: (vty_log,vty_log_out) Added a "level" argument to support "log record-priority" for vty terminal monitors. (vty_down_level) Use config_exit_cmd.func instead of calling config_exit directly (since command functions will now be static instead of global). (vty_log_fixed) New function to send terminal monitor messages from inside a signal handler.
* 2004-11-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-11-201-6/+7
| | | | | * global: Replace strerror with safe_strerror. And vtysh/vtysh.c needs to include "log.h" to pick up the declaration.
* 2004-11-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-11-112-8/+12
| | | | | * vtysh.c: (vtysh_client_execute) Fix flaws in detecting trailing '\0' chars and command return code.
* - Add .arch-ids and .arch-inventory to cvsignore, to allow one to use archpaul2004-11-021-0/+2
| | | | with CVS trees.
* "show running-daemons" -> "show daemons".hasso2004-10-282-5/+11
|
* Don't popen pager if command is "exit". Fixes "vtysh screws up my terminalhasso2004-10-202-1/+9
| | | | if I exit" issue.
* - fix date in changelog of my last commit..paul2004-10-131-1/+1
|
* All access lists (IPv4 and IPv6) are used by all daemons to limit access tohasso2004-10-132-5/+6
| | | | vty.
* 2004-09-17 Paul Jakma <paul@dishone.st>paul2004-10-112-4/+14
| | | | | | | * 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.
* Fix warnings here.hasso2004-10-113-4/+9
|
* Vtysh compiles cleanly as well.hasso2004-10-075-19/+22
|
* Big vtysh cleanup. See changelogs for details.hasso2004-10-038-148/+279
|
* Compiler warning fix.hasso2004-09-262-1/+5
|
* 2004-09-17 Paul Jakma <paul@dishone.st>paul2004-09-172-11/+31
| | | | | * vtysh.c: (vtysh_client_execute) trailling NULLs can be arbitrarily split across reads, dont get confused by this and block forever.
* 2004-09-13 Paul Jakma <paul@dishone.st>paul2004-09-133-3/+7
| | | | | | * Makefile.am: remove zebra/irdp.c from list - dead. * extract.pl.in: Substitute in the autoconf srcdir/builddir paths for includes to cpp.
* 2004-09-13 Paul Jakma <paul@dishone.st>bgp.rserver.beforepaul2004-09-133-2/+8
| | | | | | | * Makefile.am: extract.pl isnt in srcdir, it's always in the builddir. * extract.pl.in: match on end of filenames, filename could contain various preamble due to out of tree builds.
* remove zebra/irdp.c because it is no longer in the source tree.gdt2004-08-311-1/+1
|
* Port ospf6d to sigevent and rename signal handling functions in vtysh not tohasso2004-08-282-7/+13
| | | | conflict the ones in lib/sigevent.c. Fixes compiling with --disable-shared.
* Brown paperbag, please. Don't segfault if VTYSH_PAGER isn't defined.hasso2004-08-271-2/+7
|
* Make "terminal length <0-512>" command work in vtysh.hasso2004-08-272-2/+61
|
* More vtysh fixes. Specifying configuration from command line works now.hasso2004-08-265-35/+35
|
* Vtysh cleanup part 2. No any functional changes yet except VTYSH_INTERFACE.hasso2004-08-266-299/+314
|
* Cleaning up whitespace mess mostly caused by my patches. Biggerhasso2004-08-253-79/+79
| | | | reorganization of this spagetti will follow soon.
* add .libsgdt2004-07-231-0/+1
|
* (somewhat unrelated cleanups, but all are very minor)gdt2004-07-231-1/+1
| | | | | | | | | | | | | | | 2004-07-23 Greg Troxel <gdt@poblano.ir.bbn.com> * */Makefile.am: Use ../dir/libfoo.la, rather than "-L../dir -lfoo", to avoid linking against installed libraries from a previous version. * {lib,ospfd,ospfclient}/Makefile.am: explicitly define the shared library version number to be 0.0 * configure.ac: remove spurious , so extract.pl is chmod'd +x. * HACKING: explain shared library versioning rules
* more cvsignorespaul2004-07-091-0/+1
|
* Add libtool support.gdt2004-06-301-1/+1
| | | | | | | | | | | | | | | | libzebra and libospfapiclient are now built shared, and linked shared with the daemons. This reduces the memory needed when running multiple daemons; each daemon is at least 150k smaller. Static libraries are still built, and libtool should use them on platforms which don't have shared libaries. As with autoconf, the user of a distribution does not need libtool; one just needs that to build from CVS. libospf.a is still a non-shared library, and still installed, not because that makese sense, but because I don't understand why it is the way it is now. Note that the tree was tagged 'libtool-before' just before this commit.
* Make vtysh work on NetBSD, and minor cleanups:gdt2004-06-303-1/+8
| | | | | | | | | | | | | | if --enable-vtysh, look for perl, and substitute into vtysh/extract.pl, rather than assuming perl is in /usr/bin Look for tputs in libtermcap and libcurses, in addition to previously-searched locations. Follow GNU readlines search order. Clean up --enable-vtysh definition in configure.ac. Add vtysh/vtysh_cmds.c to CLEANFILES. This is important if extract.pl fails, so that 'make clean && make' will regenerate vtysh_cmds.c rhather than using the old zero-length file.
* Zebra daemon has access lists.hasso2004-06-202-2/+6
|
* CVS ignore Linux NFS silly-delete .nfs* filespaul2004-06-061-0/+1
|
* Workaround for Bugzilla #58.hasso2004-05-092-0/+6
|
* Vtysh fixes:hasso2004-04-062-6/+23
| | | | | | * replace -e with -c * don't save command in history if last line is the same one * doc/help fixes
* 2004-03-16 David Young <dyoung@pobox.com>gdt2004-03-161-1/+1
| | | | | | | | | * (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
* Many warning fixes from PC Drew ([quagga-dev 940]) and removing using PAGERhasso2004-03-042-5/+7
| | | | from vtysh ([quagga-dev 932]).
* 2004-01-15 Paul Jakma <paul@dishone.st>paul2004-01-152-1/+5
| | | | * vtysh_config.c: Fix up strlen to use correct string.
* Changelog entry about isisd integration. Sorry about previous commithasso2003-12-231-0/+5
| | | | without message. Fingers worked faster than brain ;(.
* *** empty log message ***hasso2003-12-235-8/+70
|