]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Trap IPv4 packets with Router Alert option
authorIdo Schimmel <idosch@mellanox.com>
Mon, 17 Jul 2017 12:15:30 +0000 (14:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jul 2017 16:19:39 +0000 (09:19 -0700)
commit69fd0dc4a7311b43dacfa81076f55ac87457ec10
tree476438ff20cf05698250f544c4fdc5fa3365793b
parentaa9033c9369b27e7eb253eb8a0e5cd00b1a48e71
mlxsw: spectrum: Trap IPv4 packets with Router Alert option

In case local sockets have the IP_ROUTER_ALERT socket option set, then
they expect to get packets with the Router Alert option.

Trap such packets, so that the kernel could inspect them and potentially
send them to interested sockets.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/trap.h