![]()
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.90 / (download) - annotate - [select for diffs], Tue May 26 22:08:06 2009 UTC (2 years, 11 months ago) by chris
Branch: MAIN
CVS Tags: HEAD
Diff to previous 1.89 (colored)
DHCP relay agent suppot (per-interface) I suppose the ctl infrastructure could be "extended" to handle interface stuff if the demand for this type of usage goes up
Revision 1.89 / (download) - annotate - [select for diffs], Wed Mar 25 16:09:04 2009 UTC (3 years, 1 month ago) by chris
Branch: MAIN
Diff to previous 1.88 (colored)
IP multipath sysctl
Revision 1.88 / (download) - annotate - [select for diffs], Tue Mar 10 07:09:23 2009 UTC (3 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.87 (colored)
correct # of arguments
Revision 1.87 / (download) - annotate - [select for diffs], Tue Mar 10 07:01:12 2009 UTC (3 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.86 (colored)
new CARP preempt and esp udpencap buttons, also see IFQ drops in show version
Revision 1.86 / (download) - annotate - [select for diffs], Mon Mar 2 20:54:45 2009 UTC (3 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.85 (colored)
Remove wavelan support (like was done 3 years ago in OpenBSD)
Revision 1.85 / (download) - annotate - [select for diffs], Mon Mar 2 20:29:37 2009 UTC (3 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.84 (colored)
Move to table based sysctl configuration, much better than before. This work was done last year but forgotten. Also replace net.inet.ip.maxqueue (which is the TCP fragment queue) with net.inet.ip.ifq.maxlen (max queued packets per interface) which is really what we wanted from the beginning.
Revision 1.84 / (download) - annotate - [select for diffs], Fri Mar 28 16:48:39 2008 UTC (4 years, 1 month ago) by chris
Branch: MAIN
Diff to previous 1.83 (colored)
-move call_editor handler to use just two arguments, not three -
Revision 1.83 / (download) - annotate - [select for diffs], Mon Mar 10 04:46:03 2008 UTC (4 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.82 (colored)
-support inetd through ctl interface -put ! at bottom of interface conf output instead of the top, like all other conf output already does
Revision 1.82 / (download) - annotate - [select for diffs], Mon Feb 25 06:41:16 2008 UTC (4 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.81 (colored)
make 'show', 'flush' and 'ip' bring up usage if no argument supplied
Revision 1.81 / (download) - annotate - [select for diffs], Wed Feb 20 16:52:07 2008 UTC (4 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.80 (colored)
restore SIGINT after monitor mode
Revision 1.80 / (download) - annotate - [select for diffs], Mon Feb 18 15:46:00 2008 UTC (4 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.79 (colored)
add preliminary support for ftp-proxy enable (through ctl), but it can't handle arguments yet (ftp-proxy XXXX) because nsh has no way of storing arguments during runtime between sessions. we could read the argument list of the command, but it might stop running and then we lose that data for the next nsh 'write'. so a real infrastructure has to be developed to keep state between nsh sessions, between writes. now we just create temp files in /var/run for the time between nsh -i and 'write' but that isn't enough for things like this. there may be a decent way to do this with temp files, or this might be a good time to introduce a new infrastructure which runs in the background. this also adds dns manager support with three options - dns edit, dns local- control, and dns dhcp-control. this requires that /etc/resolv.conf becomes a symlink to /var/run/resolv.conf.symlink. in local-control, nsh symlinks /var/run/resolv.conf.symlink to /var/run/resolv.conf which it also gives you editor/rule control over. in dhcp-control, nsh symlinks to /var/run/resolv.conf.dhcp which is what dhclient-script needs to edit when its in control (instead of trying to edit /etc/resolv.conf directly, which would interfere with local-control mode if you were still using dhclient) also while here, make conf_interfaces avoid specific interfaces during generic run so they can be dumped later (pfsync for instance, so pfsync interfaces can be setup after pf has already started)
Revision 1.79 / (download) - annotate - [select for diffs], Sat Feb 16 22:57:20 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.78 (colored)
Dump StringList based makeargv and revert back to 4.4BSD makeargv, but with cursor_argc/cursor_argo tracking added (for completion) The newer makeargv was painful to read, and didn't handle fgets supplied lines properly. It did have the advantage of dynamically allocating space for new arguments through the use of sl_add. While this was nice, it really isn't necessary. Arguments are always parsed from a char line[]. So, we just set the max arguments to sizeof(line)/2 which is impossible to exceed (an argument must be at least one character, and then it must have another charater, space or \t to delineate.) This ties makeargv() to line[], which, surprise, is already the case.
Revision 1.78 / (download) - annotate - [select for diffs], Thu Feb 14 01:00:59 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.77 (colored)
-SIGINT longjmp back to command() loop -Command completion framework based on ftp client's completion feature -Import StringList library -Import new StringList based makeargv() function with cursor argument locating trick Now we need more command completions, only handles menu and interface name completions at the moment. We also need context sensitive help/usage to pop up for uncompleted command arguments.
Revision 1.77 / (download) - annotate - [select for diffs], Fri Feb 8 03:31:35 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.76 (colored)
Preserve original formatting for rule files (dhcp, pf, etc..) instead
of parsing it into argv and re-writing argv with single spaces in between.
This way configs don't look like shit when they are folded into nshrc
Also rename show stats to show kernel, show stats was awkward
('show kernel mbuf' makes more sense than 'show stats mbuf')
Revision 1.76 / (download) - annotate - [select for diffs], Thu Feb 7 22:48:47 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.75 (colored)
Stop requiring action arguments (pf 'enable', etc..) in mode handlers to be specified on a separate, indented line under a handler 'action' header. It has always bugged me that the config file looked different than the actual way the command was used in the shell itself. THIS CHANGES CONFIGURATION SYNTAX!! (might as well do it now before the next release, since vlan syntax changed slightly too) Any config sections that looked like: pf action enable reload must now look like: pf enable pf reload
Revision 1.75 / (download) - annotate - [select for diffs], Wed Feb 6 22:48:53 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.74 (colored)
convert my copyrights to simpler ISC-style copyright statement
Revision 1.74 / (download) - annotate - [select for diffs], Wed Feb 6 16:51:44 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.73 (colored)
terminate all argument lists parsed through step_optreq() with NULL and not '\0'. step_optreq() still terminates them with '\0' for execv() (as per the exec(3) man page) once it sees the NULL, or when it runs out of arguments to fill in. in step_optreq, change the meaning of the last argument to 'skip' - that is, how many arguments in the beginning of argv do we need to skip to get to the optional arguments that we will fill in OPT or REQ arguments with. now the number of non-OPT/REQ arguments in the compiled in argument can be different than the number of arguments typed in (since they have nothing to do with each other anyways, this flexibility makes sense) this resolves the distaste with this function that I expressed in the last commit message. (step_optreq could be further improved to allow static arguments to be mixed into optional argument lists, but given the limited data available from the table, it's unclear to me how this would work in all cases)
Revision 1.73 / (download) - annotate - [select for diffs], Tue Feb 5 04:39:53 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.72 (colored)
make ctl.c routines more generic, and replace separate routines for each action with tables that contain the command names and argument lists. uses genget in cmdhandler to sort with prefix/ambiguous support. reuses code from commands.c to parse the argument list from the table and fill space allocated from the generic handler (pr_prot1, cmdhandler). this creates step_optreq() which is currently dependant on the interpreted (typed or cmdrc) command having the first two arguments never get copied over to the executed argument list. if you read the structures, then the drawbacks become pretty obvious. this is sort of a bug, or a cheap design trick but it fits the current usage perfectly, so this note is just to remind me to think about it more in the future as the usage of step_optreq() may become more sophisticated.
Revision 1.72 / (download) - annotate - [select for diffs], Mon Feb 4 02:49:46 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.71 (colored)
Destroy inappropriate use of CMP_ARG and rename it to MIN_ARG since is
is really only for comparing that an argument matches a minimum of the
characters supplied to the second position in the macro.
Next move from using half-assed minimum-matching/ambiguous proof to
being truly table driven by using genget everywhere. This is done by
eliminating chains of if (CMP_ARG){...; return;} and using structs
which genget loops around to determine the shortest non-ambiguous
prefix. This doesn't buy command completion yet! But, by using
table driven command sets, it moves in the right direction.
Also replace use of CMP_ARG in places that are not table-driven to
isprefix() (it was already in genget.c) which does matching in the
opposite order, so nsh can know that an argument is "interface"
and match i, in, int, inte, ... but not match iff or other mis-spelled
arguments. (CMP_ARG was just matching against the minimum non-
ambiguous part of the argument as compiled into nsh at any given
time, poor form)
Revision 1.71 / (download) - annotate - [select for diffs], Tue Jan 29 06:17:35 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.70 (colored)
use (int argc, char **argv) for all show commands, and start introducing show bgp commands
Revision 1.70 / (download) - annotate - [select for diffs], Sun Jan 20 07:21:21 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.69 (colored)
why not control ntpd here too?
Revision 1.69 / (download) - annotate - [select for diffs], Sun Jan 20 06:08:49 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.68 (colored)
add snmpd control (before snmp gets built by default in openbsd, so you have to install from /usr/src/usr.sbin/snmpd and /usr/src/usr.sbin/snmpctl manually in order to use it)
Revision 1.68 / (download) - annotate - [select for diffs], Sun Jan 20 05:08:35 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.67 (colored)
implement very basic pager support for 'show run' and 'show start', needs search function and more (or less)
Revision 1.67 / (download) - annotate - [select for diffs], Tue Jan 15 06:10:12 2008 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.66 (colored)
add DHCP daemon control and sasync daemon control to ctl.c and conf.c (they are a natural fit)
Revision 1.66 / (download) - annotate - [select for diffs], Mon Jan 14 09:05:23 2008 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.65 (colored)
Move nshrc<->pfctl interface to ctl.c and duplicate it for ospf, bgp, dvmrp, rip, relayd, and isakmpd/ipsecctl, also make conf_pfrules into generic conf_xrules with two modes - one for commands that require a 'reload' to load ruleset (pfctl, ipsecctl) and the rest for commands that don't. Actually pfctl could load rules on initialization too, but ipsecctl talks over a socket to isakmpd, so the old semantics are fine. This is a first cut and completely untested (Although pf should still work like it has unless I really fucked it up). It's almost easy to collaspe all the handler routines into one, but I'll wait until later to see how things evolve (if at all). the 'show' and 'flush' commands still need to be implemented for everything.
Revision 1.65 / (download) - annotate - [select for diffs], Sun Jan 13 02:27:38 2008 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.64 (colored)
random cleanup and arp set/search support (show arp already works)
Revision 1.64 / (download) - annotate - [select for diffs], Sun Jan 6 18:10:01 2008 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.63 (colored)
get rid of -lutil
Revision 1.63 / (download) - annotate - [select for diffs], Sun Jan 6 17:20:05 2008 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.62 (colored)
Cleanup:
-cleanup conf_route code so IPv4 and IPv6 static routes print without effort,
using functions already available (note that we can't actually set an IPv6
static route yet)
-consolidate p_rttables route dump sysctl into getrtdump()
-move chains of if(errno==blah)elseif(errno==bleh) to switch{case blah:}
-print arp table with 'show arp'
-fix static arp display in nsh configuration (still need arp set support)
Initial cut at supporting new(er) openbsd features:
-interface route labels
-interface groups
-group attribute support
-vlan priority
1. Don't bother to run this without the LATEST 4.2-CURRENT kernel or
YOU WILL PANIC THE KERNEL
2. THIS CHANGES VLAN CONFIGURATION SYNTAX:
vlan <VID> <PARENT>
becomes:
vlan <VID> parent <PARENT>
You must edit nshrc by hand if you are upgrading an existing installation that
uses vlans! Or run the new nsh binary and write out the config before trying
to reboot.
Revision 1.62 / (download) - annotate - [select for diffs], Sat Dec 29 23:11:22 2007 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.61 (colored)
add timeslot and syncpeer commands (from ifconfig)
Revision 1.61 / (download) - annotate - [select for diffs], Thu Dec 27 22:19:39 2007 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.60 (colored)
Add show user/who support, basically a skeleton of usr.bin/who/who.c with some format changes. Also add 'flush line' (like 'clear line' from ciscoworld.) which uses pkill to destroy everything related to the user's pty. We still need to sanity check the flush line argument. When we go to a privsep model, pkill will be called the privileged parent.
Revision 1.60 / (download) - annotate - [select for diffs], Thu Dec 27 03:12:22 2007 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.59 (colored)
type cleanup from cc -W
Revision 1.59 / (download) - annotate - [select for diffs], Thu Dec 27 01:57:56 2007 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.58 (colored)
start using routename() from show.c and abandon routename_sa() also apply other trivial cleanup to show.c for nsh-style display
Revision 1.58 / (download) - annotate - [select for diffs], Wed Dec 26 06:10:47 2007 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.57 (colored)
Remove 'compiledon' superstition Now that we don't read KVM, this is totally useless information
Revision 1.57 / (download) - annotate - [select for diffs], Wed Dec 26 06:00:14 2007 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.56 (colored)
shell out for telnet/ssh
Revision 1.56 / (download) - annotate - [select for diffs], Wed Dec 26 05:19:33 2007 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.55 (colored)
new route print code from /usr/src/sbin/route/show.c (uses sysctl instead of kvm) extinguish all remaining kvm usage from NSH
Revision 1.55 / (download) - annotate - [select for diffs], Tue Dec 25 22:46:14 2007 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.54 (colored)
bring mbuf.c up to date with netstat/mbuf.c (dump kread in favor of sysctl)
Revision 1.54 / (download) - annotate - [select for diffs], Tue Dec 25 22:32:24 2007 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.53 (colored)
bring stats.c up-to-date with netstat/inet.c eliminate kread in favor of sysctl, add carp_stats and pfsync_stats, add new stats to tcp_stats and udp_stats
Revision 1.53 / (download) - annotate - [select for diffs], Mon Dec 17 08:46:16 2007 UTC (4 years, 5 months ago) by chris
Branch: MAIN
Diff to previous 1.52 (colored)
how did quotes ever get around this macro?
Revision 1.52 / (download) - annotate - [select for diffs], Mon Dec 17 06:54:33 2007 UTC (4 years, 5 months ago) by chris
Branch: MAIN
Diff to previous 1.51 (colored)
interface description support also update default MTU table in conf.c
Revision 1.51 / (download) - annotate - [select for diffs], Sun Dec 16 10:42:14 2007 UTC (4 years, 5 months ago) by chris
Branch: MAIN
Diff to previous 1.50 (colored)
carpnode set support also has fairly intuitive carpnode delete support-a bit more flexible than ifconfig (which requries you to specify the full carpnode table on config) also, keep in mind this is not really useful in the kernel yet
Revision 1.50 / (download) - annotate - [select for diffs], Fri Jan 19 09:45:56 2007 UTC (5 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.49 (colored)
add bssid function w/conf output, collapse get_nwpowersave into get_nwinfo, needs testing
Revision 1.49 / (download) - annotate - [select for diffs], Wed Jan 17 09:38:09 2007 UTC (5 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.48 (colored)
rename trunkdevice to trunkport, there's no reason to deviate from the openbsd standard name. while there, also give trunkport the ability to generate multiple interface names on one config line (in conf output) and the ability to read multiple interface names from a trunkport config line. still need to fix: why does trunkproto give bogus output, fix return values to not dump you out of config mode when a trunk command fails, and make show_trunk() hook into show interface properly
Revision 1.48 / (download) - annotate - [select for diffs], Wed Jan 17 06:45:03 2007 UTC (5 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.47 (colored)
Rename mac to lladdr since it could (theoretically) be used on types of media that where the "link level" address has a name other than MAC and (practically) because there's no real reason to deviate from the standard that obsd users would already know. I prefer exsting names from openbsd, cisco or juniper on new commands, whatever fits the shorthand command notation best. OK, maybe this is subjective...
Revision 1.47 / (download) - annotate - [select for diffs], Thu Nov 16 07:35:08 2006 UTC (5 years, 6 months ago) by pata
Branch: MAIN
Diff to previous 1.46 (colored)
o add function inttxpower (wifi interfaces)
Revision 1.46 / (download) - annotate - [select for diffs], Tue Nov 14 18:04:07 2006 UTC (5 years, 6 months ago) by pata
Branch: MAIN
Diff to previous 1.45 (colored)
o adding trunk support (functions: inttrunkport, inttrunkproto, conf_trunk, show_trunk)
Revision 1.45 / (download) - annotate - [select for diffs], Mon Nov 13 12:41:46 2006 UTC (5 years, 6 months ago) by pata
Branch: MAIN
Diff to previous 1.44 (colored)
o add carpdev support (function intcdev)
Revision 1.44 / (download) - annotate - [select for diffs], Mon Nov 13 11:41:00 2006 UTC (5 years, 6 months ago) by pata
Branch: MAIN
Diff to previous 1.43 (colored)
o add function intlladdr (change mac address)
Revision 1.43 / (download) - annotate - [select for diffs], Wed Apr 19 10:37:26 2006 UTC (6 years ago) by pata
Branch: MAIN
Diff to previous 1.42 (colored)
style(9)
Revision 1.42 / (download) - annotate - [select for diffs], Sat Apr 8 19:58:17 2006 UTC (6 years, 1 month ago) by chris
Branch: MAIN
Diff to previous 1.41 (colored)
errno.h cleanup from Manuel Pata <pata@alface.de>
Revision 1.41 / (download) - annotate - [select for diffs], Mon Oct 24 04:23:49 2005 UTC (6 years, 6 months ago) by chris
Branch: MAIN
Diff to previous 1.40 (colored)
From David A de Gruyl <david@bhaermandegruyl.org> Call ping and traceroute
Revision 1.40 / (download) - annotate - [select for diffs], Tue Aug 30 01:43:54 2005 UTC (6 years, 8 months ago) by chris
Branch: MAIN
Diff to previous 1.39 (colored)
dhcp client mode mostly from Mats Mellstrand <mats@exmandato.se>
Revision 1.39 / (download) - annotate - [select for diffs], Sun Jun 12 07:20:41 2005 UTC (6 years, 11 months ago) by chris
Branch: MAIN
Diff to previous 1.38 (colored)
Stepping into a minefield tends to hurt
Revision 1.38 / (download) - annotate - [select for diffs], Tue May 31 08:50:40 2005 UTC (6 years, 11 months ago) by chris
Branch: MAIN
Diff to previous 1.37 (colored)
Completely fix overloaded use of interface() function Before, we basically lost any 'no ....' command that was loaded from an init file into the abyss, which really broke bridging (and anything else where you setup commands like 'int blah' ' no shutdown' to get an interface state up and ready for the show). This is really embarrasing (The entire interface() function, that is)...
Revision 1.37 / (download) - annotate - [select for diffs], Tue May 31 07:56:44 2005 UTC (6 years, 11 months ago) by chris
Branch: MAIN
Diff to previous 1.36 (colored)
Fix a bug that I created with interface create/destroy functionality.
Revision 1.36 / (download) - annotate - [select for diffs], Mon May 30 23:26:06 2005 UTC (6 years, 11 months ago) by chris
Branch: MAIN
Diff to previous 1.35 (colored)
'syncif' became 'syncdev' in openbsd 3.7
Revision 1.35 / (download) - annotate - [select for diffs], Wed Mar 24 09:01:45 2004 UTC (8 years, 1 month ago) by chris
Branch: MAIN
Diff to previous 1.34 (colored)
Bring bridge.c up to date with (almost) current brconfig
Revision 1.34 / (download) - annotate - [select for diffs], Mon Mar 22 11:33:29 2004 UTC (8 years, 1 month ago) by chris
Branch: MAIN
Diff to previous 1.33 (colored)
Implement CARP controls
Revision 1.33 / (download) - annotate - [select for diffs], Mon Mar 22 09:25:57 2004 UTC (8 years, 1 month ago) by chris
Branch: MAIN
Diff to previous 1.32 (colored)
Add support for configuring pfsync interfaces
Revision 1.32 / (download) - annotate - [select for diffs], Mon Mar 22 03:56:29 2004 UTC (8 years, 1 month ago) by chris
Branch: MAIN
Diff to previous 1.31 (colored)
Move enable() into passwd.c, where cyc's new code makes more sense (Anyways, commands.c is already bloated enough) Unfortunately, this makes int priv a global..I tried to move priv, bridge, editing, and verbose into a struct that gets passed around appropriately, but I found that is just going to be damn hard with the current (mis)design (including libedit's need for a prompt function, a function which also needs to know about priv and bridge...) So, a little more thought is necessary, but this is a nice extra cleanup for the moment.
Revision 1.31 / (download) - annotate - [select for diffs], Wed Mar 17 08:09:13 2004 UTC (8 years, 2 months ago) by cyc
Branch: MAIN
Diff to previous 1.30 (colored)
added enable secret. writes password to /var/run/nshpasswd, like pf.conf and others. lot of help and ok from chris@
Revision 1.30 / (download) - annotate - [select for diffs], Sun Mar 7 16:31:57 2004 UTC (8 years, 2 months ago) by cyc
Branch: MAIN
Diff to previous 1.29 (colored)
add command "show startup-config", pulled from jose/OpenSoekris added documentation ok chris@
Revision 1.29 / (download) - annotate - [select for diffs], Wed Mar 3 09:19:40 2004 UTC (8 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.28 (colored)
Add interface creation and removal features. 'interface vlan0' creates, 'no interface vlan0' destroys.
Revision 1.28 / (download) - annotate - [select for diffs], Wed Mar 3 08:46:44 2004 UTC (8 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.27 (colored)
libedit API changed after OpenBSD 3.4, accomodate that...
Revision 1.27 / (download) - annotate - [select for diffs], Thu Sep 18 20:31:38 2003 UTC (8 years, 8 months ago) by chris
Branch: MAIN
Diff to previous 1.26 (colored)
Remove clause 3 from UCB copyrights, a clause which UC Berkeley rescinded in 7/22/1999, also remove clause 3 and 4 from Jason's copyright, which he removed 6/2/2003
Revision 1.26 / (download) - annotate - [select for diffs], Thu Sep 18 19:44:23 2003 UTC (8 years, 8 months ago) by chris
Branch: MAIN
Diff to previous 1.25 (colored)
Clone OpenBSD policy of always using strlcpy, and some other misc source cleanup, mostly from Vincent Labrecque <vincent@psyfreaks.ca>
Revision 1.25 / (download) - annotate - [select for diffs], Fri Jul 25 21:00:04 2003 UTC (8 years, 9 months ago) by chris
Branch: MAIN
Diff to previous 1.24 (colored)
Import pieces of wicontrol to give the user ability to see if_wi power levels, associated stations, and available access points
Revision 1.24 / (download) - annotate - [select for diffs], Wed Apr 23 21:56:40 2003 UTC (9 years ago) by chris
Branch: MAIN
Diff to previous 1.23 (colored)
clean up pf rule handling a little bit: -don't open a rule file and write anything unless there's something to write this has the side effect of not allowing blank lines in the pf configuration, although i think that is desirable -remove any temporary rule file before starting nshrc initialization since it will be appended later, not over-written
Revision 1.23 / (download) - annotate - [select for diffs], Wed Apr 23 16:24:34 2003 UTC (9 years ago) by chris
Branch: MAIN
Diff to previous 1.22 (colored)
fix use of bridge mode from nsh -i /etc/nshrc
Revision 1.22 / (download) - annotate - [select for diffs], Fri Apr 18 00:15:26 2003 UTC (9 years, 1 month ago) by chris
Branch: MAIN
Diff to previous 1.21 (colored)
fix ambiguous/invalid command error creating a continuous loop from interface() when modhvar is present
Revision 1.21 / (download) - annotate - [select for diffs], Thu Apr 17 18:02:32 2003 UTC (9 years, 1 month ago) by chris
Branch: MAIN
Diff to previous 1.20 (colored)
don't block signals if things aren't running interactively
Revision 1.20 / (download) - annotate - [select for diffs], Mon Apr 14 08:44:20 2003 UTC (9 years, 1 month ago) by chris
Branch: MAIN
Diff to previous 1.19 (colored)
Clean up in commands.c a little bit, and add controls for IP-related sysctls (such as enabling ip forwarding)
Revision 1.19 / (download) - annotate - [select for diffs], Fri Mar 28 16:15:19 2003 UTC (9 years, 1 month ago) by chris
Branch: MAIN
Diff to previous 1.18 (colored)
Remove 'rate' command; rate limiting in 3.3 requires that a queuing type is applied and this is done through pf
Revision 1.18 / (download) - annotate - [select for diffs], Thu Mar 27 23:30:54 2003 UTC (9 years, 1 month ago) by chris
Branch: MAIN
Diff to previous 1.17 (colored)
Rename 'shutdown' to 'halt', otherwise it's too close to 'shutdown' under the interface handler...
Revision 1.17 / (download) - annotate - [select for diffs], Tue Mar 18 19:11:37 2003 UTC (9 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.16 (colored)
Add field to the Command table which tells the shell not to escape backslash or quote characters, and instead pass them in the arguments. Use this field for pf so that a user can have these characters in their pf configuration.
Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 12 02:55:36 2003 UTC (9 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.15 (colored)
Tell commands.c that pf is a 'mode handler'
Revision 1.15 / (download) - annotate - [select for diffs], Mon Mar 10 20:10:02 2003 UTC (9 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.14 (colored)
Add Cisco-style line breaks to the configuration
Revision 1.14 / (download) - annotate - [select for diffs], Tue Feb 18 09:39:02 2003 UTC (9 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.13 (colored)
missing \n on shutdown printf
Revision 1.13 / (download) - annotate - [select for diffs], Tue Feb 18 09:29:46 2003 UTC (9 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.12 (colored)
add rcs tags to everything
Revision 1.12 / (download) - annotate - [select for diffs], Tue Feb 18 09:26:17 2003 UTC (9 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.11 (colored)
check reboot() for errors
Revision 1.11 / (download) - annotate - [select for diffs], Tue Feb 11 01:48:17 2003 UTC (9 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.10 (colored)
Get rid of output to stderr. It is unnecessary, and useless to try and output to stderr from what is supposed to be a shell. When stderr is taken out of the equation, useful error logging can be obtained like this: nsh -vi /etc/nshrc | logger -t nsh -p daemon.info Interactive users won't notice this.
Revision 1.10 / (download) - annotate - [select for diffs], Mon Feb 10 08:20:42 2003 UTC (9 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.9 (colored)
import of nsh-20030208 -make static work as static <mac> <member> not the other way around -that way you can do no static <mac> without specifying a member -use void where we don't need anything else -add pfctl handling so that you can edit pf rules, flush pf, save pf.conf in nshrc (this helps with the goal of keeping all the configuration in one file, although calling pfctl to begin with is a compromise since pfctl is too much of a moving target to try and integrate) -add a manual -exit if fork fails -add commands to reboot and shutdown (jose) -add command to save config (jose) -add tunnel to conf() output -add pf to conf() output -make default mtu table nicer -same for interface types -make rtdump easier to handle correctly -fix botched strlcat conversion in ieee80211 stuff -improve method to get hardware address for an interface -/dev/altq/altq becomes /dev/pf
Revision 1.9 / (download) - annotate - [select for diffs], Mon Feb 10 08:10:26 2003 UTC (9 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.8 (colored)
import of nsh-20020619 -use a more macros for better enjoyment -fix up the toilet flusher to handle arps and routes -make show route display a specific destination like 'route get' if you specify an additional argument -add media types in conf() output -add powersave to conf() output -add routes/arps to conf() output -add media type and hardware address to show interface -same for network key/powersaving time -add function that "suprisingly actually works" to get hardware address -merge ip/netmask/bitmask parser to parse_ip() instead of duplicating code -strtoul vs atoi becomes an issue -add capability to setup vlans from interface mode -get rid of mrtd code from routesys.c and go back to berkeley rtmsg() -whoops, i forgot to 'cvs add' bridge.c in the last commit!!
Revision 1.8 / (download) - annotate - [select for diffs], Mon Feb 10 07:56:54 2003 UTC (9 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.7 (colored)
import of nsh-20020607 -bridge config support from brconfig -rant on openbsd routers -extend interface mode handler to bridges as well (of course, they are interfaces anyways) but in a rather hackish way -add broadcast address to conf() output (not displayed if the user did not make it non-default) -fix up rate output while there -add bridge commands to conf() output -get rid of unused kern_routes() -start passing a socket along to interface mode support routines instead of opening and closing them each time -explain broadcast or pointtopoint in show interface -display vlan and rate information in show interface -display average input and output sizes in show interface -display flags on show interface if verbose -add a function to find the network address given an IP and netmask -add a function to find the broadcast address given an IP and netmask -stop using strlen() where it is completely unnecessary
Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 10 07:47:55 2003 UTC (9 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.6 (colored)
import of nsh-20020531 -ieee 802.11 interface config support from ifconfig -add metric to conf() output -add 802.11 nwid/nwkey to conf() output -add link flags and no arp to conf() output -nwid and powersave commands for interface mode
Revision 1.6 / (download) - annotate - [select for diffs], Mon Feb 10 07:43:48 2003 UTC (9 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.5 (colored)
import of nsh-20020521 -make help() autosize output columns -gently remind users that there is no 'config' command -add interface mode command to set an ip address -add interface mode command to set mtu, metric, link flags, and other flags -have config generator dump metric, link flags, debug flag and have it only show mtu if it is not a default setting for the interface
Revision 1.5 / (download) - annotate - [select for diffs], Mon Feb 10 07:37:31 2003 UTC (9 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.4 (colored)
import of nsh-20020510 -start at configuration generator conf() -use -ledit for command line editing and history -add flush commands -is_valid_ifname() walks if_nameindex for the lazy
Revision 1.4 / (download) - annotate - [select for diffs], Mon Feb 10 07:31:58 2003 UTC (9 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.3 (colored)
import of nsh-20020415 -allow cmdrc() to feed interface mode commands -add -v verbose flag -add compile notes to show version
Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 10 07:26:15 2003 UTC (9 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.2 (colored)
import of nsh-20020412 -add some -W gems -get rid of \r\n crap -add interface mode handler -vlan stats for show interface -make rate() work with interface mode handler -route.c moves to routepr.c -add route.c as a way to add routes with netmask or bitmask
Revision 1.2 / (download) - annotate - [select for diffs], Mon Feb 10 07:16:16 2003 UTC (9 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.1 (colored)
import of nsh-20020304 -add README and TODO -add routing statistics from netstat -initialize nlist correctly
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Mon Feb 10 07:06:50 2003 UTC (9 years, 3 months ago) by chris
Branch: nsh
CVS Tags: initial
Diff to previous 1.1 (colored)
import of nsh-20020212
Revision 1.1 / (download) - annotate - [select for diffs], Mon Feb 10 07:06:50 2003 UTC (9 years, 3 months ago) by chris
Branch: MAIN
Initial revision