]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'drop_monitor-Better-sanitize-notified-packets'
authorDavid S. Miller <davem@davemloft.net>
Mon, 16 Sep 2019 19:39:27 +0000 (21:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Sep 2019 19:39:27 +0000 (21:39 +0200)
commita71b925ab8a13572b678a75783b058fb6ed39d77
treedb3d398fe5737b425daebfbf7cccb46117cc3bec
parent0f877ef825894b012611b4db78c73c01531d8dd8
parentdb5733fd30656ca055907020abef453048f7bba0
Merge branch 'drop_monitor-Better-sanitize-notified-packets'

Ido Schimmel says:

====================
drop_monitor: Better sanitize notified packets

When working in 'packet' mode, drop monitor generates a notification
with a potentially truncated payload of the dropped packet. The payload
is copied from the MAC header, but I forgot to check that the MAC header
was set, so do it now.

Patch #1 sets the offsets to the various protocol layers in netdevsim,
so that it will continue to work after the MAC header check is added to
drop monitor in patch #2.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>