Powered by Apache

CVS log for nsh/bridge.c

[BACK] Up to [local] / nsh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.15 / (download) - annotate - [select for diffs], Sun Mar 1 01:29:31 2009 UTC (3 years, 2 months ago) by chris
Branch: MAIN
CVS Tags: HEAD
Diff to previous 1.14 (colored)

From Stuart Henderson <stu@spacehopper.org>
- only include ifprio/ifcost for interfaces with stp enabled,
  avoids an error message at startup time.

Revision 1.14 / (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.13 (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.13 / (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.12 (colored)

random cleanup and arp set/search support (show arp already works)

Revision 1.12 / (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.11 (colored)

type cleanup from cc -W

Revision 1.11 / (download) - annotate - [select for diffs], Tue Apr 11 12:29:01 2006 UTC (6 years, 1 month ago) by pata
Branch: MAIN
Diff to previous 1.10 (colored)

bridge.c cleanup and moved the clr_ifflag function declaration from externs.h
At the moment the function clr_ifflag isn't used anywhere.

Revision 1.10 / (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.9 (colored)

errno.h cleanup
from Manuel Pata <pata@alface.de>

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jun 12 07:47:58 2005 UTC (6 years, 11 months ago) by chris
Branch: MAIN
Diff to previous 1.8 (colored)

Simplify life with strtonum() and other little cleanups

Revision 1.8 / (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.7 (colored)

Bring bridge.c up to date with (almost) current brconfig

Revision 1.7 / (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.6 (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.6 / (download) - annotate - [select for diffs], Wed Apr 23 06:17:53 2003 UTC (9 years ago) by chris
Branch: MAIN
Diff to previous 1.5 (colored)

Fix bridge config output for learning/discover.

Revision 1.5 / (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.4 (colored)

Clean up in commands.c a little bit, and add controls for IP-related sysctls
(such as enabling ip forwarding)

Revision 1.4 / (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.3 (colored)

add rcs tags to everything

Revision 1.3 / (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.2 (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.2 / (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.1 (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.1 / (download) - annotate - [select for diffs], Mon Feb 10 08:10:26 2003 UTC (9 years, 3 months ago) by chris
Branch: MAIN

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!!

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>