]> git.baikalelectronics.ru Git - kernel.git/commit
pppoe: only process PADT targeted at local interfaces
authorGuillaume Nault <gnault@redhat.com>
Thu, 14 May 2020 10:15:39 +0000 (12:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 May 2020 20:02:50 +0000 (13:02 -0700)
commit7b5ab7796ae99fee59191572c3dce5dea945cd3c
treeada9e79715c07e93c9ce28549f7fa76eb31b2dea
parent3b86bdd88ee3a642cf4b4f6e2909937e50ce7553
pppoe: only process PADT targeted at local interfaces

We don't want to disconnect a session because of a stray PADT arriving
while the interface is in promiscuous mode.
Furthermore, multicast and broadcast packets make no sense here, so
only PACKET_HOST is accepted.

Reported-by: David Balažic <xerces9@gmail.com>
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/pppoe.c