packet-sniffers

How do I programatically collect packets from passively sniffing?

I want to test the vulnerability of the server I just wrote against man in the middle attacks. How (on Mac OS X) do I analyze packets. (I'll be checking where they are going, pulling information from if they are heading to my server, and seeing what all is available) Then I'll figure out a way to encrypt everything... but first things...

Protect my programs from sniffers?

How do I protect my program's from packet sniffers? E.g. I don't want packet sniffers to be able to see where my program connects to. What is the best way to counter packet sniffing? ...

Easy way to extract print job payload from IPP packets

Is there any tool existing or any shortcut that can be used to extract print job payload from IPP packets(captured via wireshark utility)? Write now I'm manually inspecting/dissecting the packets byte per byte which is kind of excruciating especially with requests which spans several packet exchanges (HTTP Continue). Thanks ...