netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Any suggestions for getting a pcap of traffic over netlink?
@ 2011-03-21 23:15 Sam Roberts
  2011-03-22 10:43 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Sam Roberts @ 2011-03-21 23:15 UTC (permalink / raw)
  To: Netfilter Developer Mailing List

Obviously, there is no net device to pcap - I'm wondering if anybody
knows of ways to watch netlink traffic? I don't know netlink well, I'm
wondering if its possible to do a PF_NETLINK socket that promiscuously
receives all netlink traffic on all sockets?

I can build wireshark dissectors once I've got pcaps, but I'm not too
sure how to get the captures, other than hacking libnfnetlink to dump
all sendmsg/recvmsg payload into a pcap file with a custom link type,
but I'm hoping I'm not the first person to want to do this.

I want to troubleshoot interactions, like when my userspace code
blocks indefinitely waiting for a response from the kernel, but the
sample code I'm looking at doesn't, and I want to understand what I'm
doing differently.

Cheers,
Sam

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-22 10:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-21 23:15 Any suggestions for getting a pcap of traffic over netlink? Sam Roberts
2011-03-22 10:43 ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).