Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 2009 05:04:16 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r187007 - user/kmacy/HEAD_fast_net/sbin/route
Message-ID:  <200901100504.n0A54GPQ080543@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Sat Jan 10 05:04:16 2009
New Revision: 187007
URL: http://svn.freebsd.org/changeset/base/187007

Log:
  - more output futzing
  - add show as alias for get

Modified:
  user/kmacy/HEAD_fast_net/sbin/route/keywords
  user/kmacy/HEAD_fast_net/sbin/route/route.c

Modified: user/kmacy/HEAD_fast_net/sbin/route/keywords
==============================================================================
--- user/kmacy/HEAD_fast_net/sbin/route/keywords	Sat Jan 10 04:59:30 2009	(r187006)
+++ user/kmacy/HEAD_fast_net/sbin/route/keywords	Sat Jan 10 05:04:16 2009	(r187007)
@@ -45,6 +45,7 @@ rtt
 rttvar
 sa
 sendpipe
+show
 shutdown
 ssthresh
 static

Modified: user/kmacy/HEAD_fast_net/sbin/route/route.c
==============================================================================
--- user/kmacy/HEAD_fast_net/sbin/route/route.c	Sat Jan 10 04:59:30 2009	(r187006)
+++ user/kmacy/HEAD_fast_net/sbin/route/route.c	Sat Jan 10 05:04:16 2009	(r187007)
@@ -169,6 +169,7 @@ main(argc, argv)
 	if (*argv)
 		switch (keyword(*argv)) {
 		case K_GET:
+		case K_SHOW:
 			uid = 0;
 			/* FALLTHROUGH */
 
@@ -1465,7 +1466,7 @@ print_getmsg(rtm, msglen)
 #define msec(u)	(((u) + 500) / 1000)		/* usec to msec */
 
 	(void) printf("\n%s\n", "\
- recvpipe  sendpipe  ssthresh  rtt,msec    mtu           weight    expire");
+ recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire");
 	printf("%8ld%c ", rtm->rtm_rmx.rmx_recvpipe, lock(RPIPE));
 	printf("%8ld%c ", rtm->rtm_rmx.rmx_sendpipe, lock(SPIPE));
 	printf("%8ld%c ", rtm->rtm_rmx.rmx_ssthresh, lock(SSTHRESH));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901100504.n0A54GPQ080543>