Powered by Apache

CVS log for nsh/routesys.c

[BACK] Up to [local] / nsh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.31 / (download) - annotate - [select for diffs], Fri Jun 5 03:39:05 2009 UTC (2 years, 11 months ago) by chris
Branch: MAIN
CVS Tags: HEAD
Diff to previous 1.30 (colored)

bad pointer math for rtm_hdrlen in one spot

Revision 1.30 / (download) - annotate - [select for diffs], Tue May 26 22:11:25 2009 UTC (2 years, 11 months ago) by chris
Branch: MAIN
Diff to previous 1.29 (colored)

Table empty message is not necessary

Revision 1.29 / (download) - annotate - [select for diffs], Fri May 22 23:51:51 2009 UTC (2 years, 11 months ago) by chris
Branch: MAIN
Diff to previous 1.28 (colored)

add a route flags argument to ip_route() and pass RTF_UP in "show route" so that it shows active routes.  of course more work needs to be done here for situations where multiple routes exist

Revision 1.28 / (download) - annotate - [select for diffs], Mon Mar 2 23:01:14 2009 UTC (3 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.27 (colored)

Sync with OpenBSD - start using rtm_hdrlen from kernel route messages so we have a better chance of working if the kernel and userland are significantly out of sync (such as when the header changes)

Revision 1.27 / (download) - annotate - [select for diffs], Mon Feb 25 00:23:31 2008 UTC (4 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.26 (colored)

from Marc Balmer <marc@msys.ch> fix potential uninitialized pointer use
triggered by 0 sysctl estimate

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

restore SIGINT after monitor mode

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

use (int argc, char **argv) for all show commands, and start introducing
show bgp commands

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

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

Revision 1.23 / (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.22 (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.22 / (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.21 (colored)

type cleanup from cc -W

Revision 1.21 / (download) - annotate - [select for diffs], Thu Dec 27 02:07:13 2007 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.20 (colored)

txpower defaults to 100, not 0 and
more cleanup in route display

Revision 1.20 / (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.19 (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.19 / (download) - annotate - [select for diffs], Wed Dec 26 06:59:00 2007 UTC (4 years, 4 months ago) by chris
Branch: MAIN
Diff to previous 1.18 (colored)

handle multipath routes by always asserting RTF_MPATH when adding new
routes via ip_route()

Revision 1.18 / (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.17 (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.17 / (download) - annotate - [select for diffs], Mon Dec 17 08:57:30 2007 UTC (4 years, 5 months ago) by chris
Branch: MAIN
Diff to previous 1.16 (colored)

User friendly msg for subnet exists

Revision 1.16 / (download) - annotate - [select for diffs], Sat Dec 15 22:39:23 2007 UTC (4 years, 5 months ago) by chris
Branch: MAIN
Diff to previous 1.15 (colored)

update for 64 bit counters in OpenBSD-current (and some other type changes)

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

Simplify life with strtonum() and other little cleanups

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

Clone OpenBSD policy of always using strlcpy, and some other misc source
cleanup, mostly from Vincent Labrecque <vincent@psyfreaks.ca>

Revision 1.12 / (download) - annotate - [select for diffs], Wed Apr 9 07:07:20 2003 UTC (9 years, 1 month ago) by chris
Branch: MAIN
Diff to previous 1.11 (colored)

human parsable message for no such route on delete attempt

Revision 1.11 / (download) - annotate - [select for diffs], Wed Mar 19 09:58:24 2003 UTC (9 years, 2 months ago) by chris
Branch: MAIN
Diff to previous 1.10 (colored)

print with %lu not %d for rmx values

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

add rcs tags to everything

Revision 1.9 / (download) - annotate - [select for diffs], Tue Feb 18 03:24:44 2003 UTC (9 years, 3 months ago) by jose
Branch: MAIN
Diff to previous 1.8 (colored)


almost forgot to change from perror to printf/strerror

Revision 1.8 / (download) - annotate - [select for diffs], Tue Feb 18 03:22:00 2003 UTC (9 years, 3 months ago) by jose
Branch: MAIN
Diff to previous 1.7 (colored)


handle the show monitor system a lot better:
- use signal to catch ^C (SIGINT)
- use select() to poll (1sec granularity) the routing socket reads
- handle ^C or <enter> to escape the loop
- set non-blocking IO on the routing socket reads so we dont choke it.

some assistance fomr lurene grenier with the signal() stuff.

ok chris@

Revision 1.7 / (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.6 (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.6 / (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.5 (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.5 / (download) - annotate - [select for diffs], Mon Feb 10 08:10:27 2003 UTC (9 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.4 (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.4 / (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.3 (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.3 / (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.2 (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.2 / (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.1 (colored)

import of nsh-20020415
-allow cmdrc() to feed interface mode commands
-add -v verbose flag
-add compile notes to show version

Revision 1.1 / (download) - annotate - [select for diffs], Mon Feb 10 07:26:15 2003 UTC (9 years, 3 months ago) by chris
Branch: MAIN

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

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>