What you could probably do is
The packet that you have in ip_input is an skb. You could examine the IP
header using skb->data which I assume would be pointing to the IP header
at this stage. You would also be having access to the struct sock * sk.
sk->saddr and sk->daddr would be storing the IP address (source and
destination respectively). Just check whether sk->daddr = IP header's
destination address (from the skb). That should work
Akshay
On Tue, 8 Feb 2000, Javier Castillo wrote:
> Hello,
>
> I am writting some code in ip_input.c. My question: is there an easy
> way(a function) to know if a packet(into skb) is for our machine
> (local_delivery) without use the code of route.c?.
>
>
> Thanks.
> --
> Javier Castillo Alc�bar. [EMAIL PROTECTED]
> Alhambra Systems, S.A. http://www.alhsys.es
> Telf: 34 - 1 - 91 304 18 00
> Fax: 34 - 1 - 91 327 31 31
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]