diff options
author | Lorenz Bauer <[email protected]> | 2020-03-29 15:53:41 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-03-30 13:45:05 -0700 |
commit | 2d7824ffd25ce041db952d713567d54314cb7c29 (patch) | |
tree | b4174abd7a7e99a44e12942bb6027fd1b206b8fd /lib/test_overflow.c | |
parent | 7ae215d23c12a939005f35d1848ca55b6109b9c0 (diff) |
selftests: bpf: Add test for sk_assign
Attach a tc direct-action classifier to lo in a fresh network
namespace, and rewrite all connection attempts to localhost:4321
to localhost:1234 (for port tests) and connections to unreachable
IPv4/IPv6 IPs to the local socket (for address tests). Includes
implementations for both TCP and UDP.
Keep in mind that both client to server and server to client traffic
passes the classifier.
Signed-off-by: Lorenz Bauer <[email protected]>
Signed-off-by: Joe Stringer <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Co-authored-by: Joe Stringer <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions