diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-02-11 20:47:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-13 14:19:00 -0800 |
commit | 4b8c8cb8cb4b48a351e3349a1d305a555b9c93f8 (patch) | |
tree | 8eaea2f4a123052ca19e991e7fe055492a9260ef /drivers/net/wireguard/socket.c | |
parent | a25ee2347537207bc24a5c51a6e9493a745460b9 (diff) | |
download | wireguard-linux-trimmed-4b8c8cb8cb4b48a351e3349a1d305a555b9c93f8.tar.gz wireguard-linux-trimmed-4b8c8cb8cb4b48a351e3349a1d305a555b9c93f8.zip |
wireguard: device: use icmp_ndo_send helper
Because wireguard is calling icmp from network device context, it should
use the ndo helper so that the rate limiting applies correctly. This
commit adds a small test to the wireguard test suite to ensure that the
new functions continue doing the right thing in the context of
wireguard. It does this by setting up a condition that will definately
evoke an icmp error message from the driver, but along a nat'd path.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireguard/socket.c')
0 files changed, 0 insertions, 0 deletions