Re: [PATCH] net: Keep interface binding when sending packets with ipi_ifindex = 0
From: Chia-chi Yeh (èåé)
Date: Tue Aug 04 2009 - 04:28:43 EST
On Tue, Aug 4, 2009 at 3:57 PM, Badalian Vyacheslav<slavon@xxxxxxxxxxxxx> wrote:
>
> Hello
> Sorry if its my mistake or i someone not understand :)
>
> if (ipc->oif && info->ipi_ifindex != ipc->oif)
> // if match: info->ipi_ifindex != ipc->oif
> return ...
> else
> // else match: info->ipi_ifindex == ipc->oif
> // but you do
> ipc->oif = info->ipi_ifindex;
> // why if you else match allready check for it?
>
> Thanks
Hi Badalian,
Consider ipc->oif = 0 before the if-condition. :)
Chia-chi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/