protocol info in hard_start_xmit (fwd)

Natchu Vishnu Priya (vishnu@cs.iitm.ernet.in)
Sat, 19 Apr 1997 14:37:20 +0530 (IST)


Resending to linux-kernel since I got no response from linux-net

---------- Forwarded message ----------
Date: Thu, 17 Apr 1997 11:52:22 +0530 (IST)
From: Natchu Vishnu Priya <vishnu@cs.iitm.ernet.in>
To: linux-net@vger.rutgers.edu
Subject: protocol info in hard_start_xmit

Hi.

Is there a fool proof way to get protocol information from skb buff,
I mean like source ip, dest ip.. and port from the frames in the skb buff

I need a method that will work irrespective of the encapsulation of the
packet it is check, like if ipip tun is used it has to check the right
header to find the info about the encapsulated packet..

How can I do this and be sure it'll work for all kinds of encapsualtion
and packets.

-vishnu