svn commit: r234399 - user/np/toe_iwarp/usr.bin/netstat

Navdeep Parhar np at FreeBSD.org
Tue Apr 17 20:54:33 UTC 2012


Author: np
Date: Tue Apr 17 20:54:32 2012
New Revision: 234399
URL: http://svn.freebsd.org/changeset/base/234399

Log:
  Have netstat display "toe" instead of "tcp" for offloaded connections.

Modified:
  user/np/toe_iwarp/usr.bin/netstat/inet.c

Modified: user/np/toe_iwarp/usr.bin/netstat/inet.c
==============================================================================
--- user/np/toe_iwarp/usr.bin/netstat/inet.c	Tue Apr 17 20:47:11 2012	(r234398)
+++ user/np/toe_iwarp/usr.bin/netstat/inet.c	Tue Apr 17 20:54:32 2012	(r234399)
@@ -461,7 +461,10 @@ protopr(u_long off, const char *name, in
 #endif
 		vchar = ((inp->inp_vflag & INP_IPV4) != 0) ?
 		    "4 " : "  ";
-		printf("%-3.3s%-2.2s ", name, vchar);
+		if (istcp && (tp->t_flags & TF_TOE) != 0)
+			printf("%-3.3s%-2.2s ", "toe", vchar);
+		else
+			printf("%-3.3s%-2.2s ", name, vchar);
 		if (Lflag) {
 			char buf1[15];
 


More information about the svn-src-user mailing list