diff options
| author | Toshiaki Makita <[email protected]> | 2018-07-06 02:49:00 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2018-07-07 22:25:35 +0000 |
| commit | d8d7218ad842e18fc6976b87c08ed749e8d56313 (patch) | |
| tree | 57cdc7f8d2c55996b0ca1b6e74a8de8fa997b29f /net/nsh/nsh.c | |
| parent | Merge branch 'sockhash-fixes' (diff) | |
| download | kernel-d8d7218ad842e18fc6976b87c08ed749e8d56313.tar.gz kernel-d8d7218ad842e18fc6976b87c08ed749e8d56313.zip | |
xdp: XDP_REDIRECT should check IFF_UP and MTU
Otherwise we end up with attempting to send packets from down devices
or to send oversized packets, which may cause unexpected driver/device
behaviour. Generic XDP has already done this check, so reuse the logic
in native XDP.
Fixes: 814abfabef3c ("xdp: add bpf_redirect helper function")
Signed-off-by: Toshiaki Makita <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions
