Re: [RFC] SPD basic actions per netdev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: jamal
Date: Thursday, April 1, 2010 - 5:00 am

On Thu, 2010-04-01 at 14:47 +0300, Timo Teräs wrote:


So this is the part i am missing i think. If i look at:

int ip_forward(struct sk_buff *skb)
{
.....
        if (!xfrm4_policy_check(NULL, XFRM_POLICY_FWD, skb))
                goto drop;
....
........later forwarding happens here ...
        if (!xfrm4_route_forward(skb))
                goto drop;
...
}

On entry we have a legit skb->skb_iif.
The validity check is before forwarding decision (where the interface
the packet is being forwarded to is recognized).


I agree if what you say earlier is true.

cheers,
jamal

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] SPD basic actions per netdev, jamal, (Wed Mar 31, 9:37 am)
Re: [RFC] SPD basic actions per netdev, jamal, (Wed Mar 31, 3:58 pm)
Re: [RFC] SPD basic actions per netdev, Herbert Xu, (Wed Mar 31, 5:33 pm)
Re: [RFC] SPD basic actions per netdev, jamal, (Wed Mar 31, 7:35 pm)
Re: [RFC] SPD basic actions per netdev, Herbert Xu, (Wed Mar 31, 7:52 pm)
Re: [RFC] SPD basic actions per netdev, =?ISO-8859-1?Q?Timo_ ..., (Wed Mar 31, 9:52 pm)
Re: [RFC] SPD basic actions per netdev, Herbert Xu, (Wed Mar 31, 11:01 pm)
Re: [RFC] SPD basic actions per netdev, =?ISO-8859-1?Q?Timo_ ..., (Wed Mar 31, 11:20 pm)
Re: [RFC] SPD basic actions per netdev, Herbert Xu, (Wed Mar 31, 11:28 pm)
Re: [RFC] SPD basic actions per netdev, =?ISO-8859-1?Q?Timo_ ..., (Wed Mar 31, 11:32 pm)
Re: [RFC] SPD basic actions per netdev, Herbert Xu, (Wed Mar 31, 11:39 pm)
Re: [RFC] SPD basic actions per netdev, jamal, (Thu Apr 1, 4:29 am)
Re: [RFC] SPD basic actions per netdev, =?UTF-8?B?VGltbyBUZX ..., (Thu Apr 1, 4:47 am)
Re: [RFC] SPD basic actions per netdev, jamal, (Thu Apr 1, 5:00 am)
Re: [RFC] SPD basic actions per netdev, =?UTF-8?B?VGltbyBUZX ..., (Thu Apr 1, 5:10 am)
Re: [RFC] SPD basic actions per netdev, jamal, (Thu Apr 1, 5:34 am)