amt: drop unexpected advertisement message
authorTaehee Yoo <ap420073@gmail.com>
Sun, 17 Jul 2022 16:09:07 +0000 (16:09 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 19 Jul 2022 10:37:02 +0000 (12:37 +0200)
commit40185f359fbabaa61da754cc29d12f3a41e0a987
tree920ca83069e757cee32832c996ed9c9da43d6e54
parent627f16931bf3cb20d50274d9341380ac2c3035fd
amt: drop unexpected advertisement message

AMT gateway interface should not receive unexpected advertisement messages.
In order to drop these packets, it should check nonce and amt->status.

Fixes: cbc21dc1cfe9 ("amt: add data plane of amt interface")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/amt.c