Hi All,
I am sure this has been asked before (in fact, I think I asked it over 2 
years ago).
I am snooping tcp traffic on the e1000g using dtrace.  Almost everything 
works (I print mac header,
ip header, and tcp header).  I would like to use something like 
tracemem() to dump the payload.
However, tracemem() won't let me specify anything but a constant as the 
length.  Has anyone
succeeded in dumping an arbitrary number of hex bytes?  What I want is 
something
like:
    tracemem(mp->b_rptr+offset, mp->b_wptr-(mp->b_rptr+offset));

Or maybe there is a way to do this with printf???

thanks,
max

_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to