From: "Retesh Chadha" Subject: Parsing ULOG message received on netlink socket Date: Thu, 28 Sep 2006 09:41:57 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: To: netfilter-devel@lists.netfilter.org Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org 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