Thread (9 messages) 9 messages, 5 authors, 2009-08-05

Re: [PATCH] net: Keep interface binding when sending packets with ipi_ifindex = 0

From: Chia-chi Yeh (葉家齊) <hidden>
Date: 2009-08-04 08:28:36
Also in: lkml

On Tue, Aug 4, 2009 at 3:57 PM, Badalian Vyacheslav[off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help