[dtrace-discuss] Chime in IPS?

Anon Y Mous music_analyst at yahoo.com
Fri Jul 31 22:18:44 PDT 2009


I think the tcpsnoop error in OpenSolaris 2008.11 is being caused by something that's somewhere around these lines of code (I used "cat -n" to add line numbers and sed to pick out specific lines of code):

root at solarisunix:/opt/DTT/Bin# cat -n /opt/DTT/Bin/tcpsnoop | sed -n '151,189p'

   151	#include <sys/socket.h>
   152	#include <sys/socketvar.h>
   153	
   154	/*
   155	 * Print header
   156	 */
   157	dtrace:::BEGIN
   158	{
   159		/* print optional headers */
   160		OPT_time    ? printf("%-14s ", "TIME") : 1;
   161		OPT_timestr ? printf("%-20s ", "STRTIME") : 1;
   162		OPT_zone    ? printf("%4s ", "ZONE") : 1;
   163		OPT_proj    ? printf("%4s ", "PROJ") : 1;
   164	
   165		/* print main headers */
   166		printf("%5s %6s %-15s %5s %2s %-15s %5s %5s %s\n",
   167		    "UID", "PID", "LADDR", "LPORT", "DR", "RADDR", "RPORT", 
   168		    "SIZE", "CMD");
   169	}
   170	
   171	
   172	/*
   173	 * TCP Process inbound connections
   174	 *
   175	 * 0x00200000 has been hardcoded. It was SS_TCP_FAST_ACCEPT, but was
   176	 * renamed to SS_DIRECT around build 31.
   177	 */
   178	fbt:sockfs:sotpi_accept:entry
   179	/(arg1 & FREAD) && (arg1 & FWRITE) && (args[0]->so_state & 0x00200000)/
   180	{
   181		self->sop = args[0];
   182	}
   183	
   184	fbt:sockfs:sotpi_create:return
   185	/self->sop/
   186	{
   187		self->nsop = (struct sonode *)arg1;
   188	}
   189	

root at solarisunix:/opt/DTT/Bin#

Message was edited by: system5
-- 
This message posted from opensolaris.org



More information about the dtrace-discuss mailing list