[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensolaris-dtrace-discuss
Subject:    Re: [dtrace-discuss] Chime in IPS?
From:       Anon Y Mous <music_analyst () yahoo ! com>
Date:       2009-07-31 22:18:44
Message-ID: 1314161079.621249103954610.JavaMail.Twebapp () sf-app1
[Download RAW message or body]

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@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@solarisunix:/opt/DTT/Bin#

Message was edited by: system5
-- 
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic