summaryrefslogtreecommitdiff
path: root/drivers/net/wireguard/receive.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-02-11 20:47:08 +0100
committerMichael Bestas <mkbestas@lineageos.org>2020-12-31 19:40:42 +0200
commit51b17cf35e64e676154fb21780821b9ac0d596f4 (patch)
treeab09bea1a966d09e9c46f53300e3b711ac5a4c0e /drivers/net/wireguard/receive.c
parentaec1e3cedb601f00e4a765060004598b5d08c7ec (diff)
UPSTREAM: 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> (cherry picked from commit a12d7f3cbdc72c7625881c8dc2660fc2c979fdf2) Bug: 152722841 Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: Ifb36defa0c8d6dc7d51884078826f5b6ca793bfd
Diffstat (limited to 'drivers/net/wireguard/receive.c')
0 files changed, 0 insertions, 0 deletions