Friday, January 12, 2007

its magic... strace

Yes, so a follow up on my yesterday's post. I mentioned how I went thought ethereal's source code to figure out what IOCTLS to use. So I was talking to my co-worker about how toget that information and he told me to:

strace -e ioctl ifconfig

Now, I always liked strace and thought it was cool. But I feel mighty stupid how i didn't think of putting the two tools together. So yea, that spits out all the ioctl calls made by the tool. I found the Solaris equivalent truss.

No comments: