Parsing ULOG message received on netlink socket
Retesh Chadha
retesh.chadha at gmail.com
Thu Sep 28 06:11:57 CEST 2006
Hi All
I am trying to ULOG certain packets based on a iptable rule.
When the ulog daemon receives data on the netlink socket, it is raw
data, which I dont know how to parse, apart from structure nlmsghdr,
that is its header.
My requirement is to parse the received buffer on netlink socket so as
to get the source IP address of the IP packet. Are there any routines
or macros to do so? I think struct sk_buff is the buffer received on
netlink socket, but not sure.
Please let me know if someone is aware of the same, or some pointers
where I can get this info.
Thanks in advance
With Regards
Retesh Chadha
More information about the netfilter-devel
mailing list