Neale Ferguson writes:
> We have our system up to the stage where we can starting doing some 
> networking stuff. ifconfig lo0 sets up our loopback device. When we ping 
> 127.0.0.1 we never get a response. I've been able to verify that ping 
> successfully executes the sendto() call and is now waiting on  the pollsys 
> syscall. I have verified that the ip module is doing things but I'd like to 
> use dtrace to see exactly what it is up to. Either the packet gets lost or 
> the signal to tell pollsys() that there's some data for it is going screwy or 
> something else entirely.
> 
> Is it possible to setup dtrace to let me see what is happening and if so can 
> you give me an example of the dtrace script to use?

I see that you've already solved your problem, but to close the loop,
here's a dtrace script that will show you what IP is doing when ping
sends a packet.

(In general, you'll probably want to contact either the Dtrace or
Networking communities with questions like this one.)

#!/usr/sbin/dtrace -Fs -

syscall::sendto:entry
/execname == "ping"/
{
        self->trace = 1;
}

fbt:ip::
/self->trace/
{
}

syscall::sendto:return
/self->trace/
{
        self->trace = 0;
}

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to