]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix dev_fill_forward_path with pppoe + bridge
authorFelix Fietkau <nbd@nbd.name>
Mon, 9 May 2022 12:26:15 +0000 (14:26 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 16 May 2022 10:58:55 +0000 (12:58 +0200)
commitc00dcd670adcd5a3051a55eb175887cb8e8fd207
treec9c35f8edca78eae03688115ce9cb5ea9993fdd5
parent997d246c960f87336d83063b7189b53abc4d9736
net: fix dev_fill_forward_path with pppoe + bridge

When calling dev_fill_forward_path on a pppoe device, the provided destination
address is invalid. In order for the bridge fdb lookup to succeed, the pppoe
code needs to update ctx->daddr to the correct value.
Fix this by storing the address inside struct net_device_path_ctx

Fixes: 4911b3702b67 ("net: ppp: resolve forwarding path for bridge pppoe devices")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
drivers/net/ppp/pppoe.c
include/linux/netdevice.h
net/core/dev.c