]> 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)
commit29c666945f55f414353bdee602581f662fafb91e
tree476438ff20cf05698250f544c4fdc5fa3365793b
parent4b3d711d863b8c1c552624017bd629903595e781
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