Thread (30 messages) flat view 30 messages, 5 authors, 2020-03-20

Re: [PATCH bpf-next 5/7] selftests: bpf: add test for sk_assign

From: Martin KaFai Lau <hidden>
Date: 2020-03-17 07:31:05
Also in: bpf

On Thu, Mar 12, 2020 at 04:36:46PM -0700, Joe Stringer wrote:
From: Lorenz Bauer <redacted>

Attach a tc direct-action classifier to lo in a fresh network
namespace, and rewrite all connection attempts to localhost:4321
to localhost:1234.

Keep in mind that both client to server and server to client traffic
passes the classifier.

Signed-off-by: Lorenz Bauer <redacted>
Signed-off-by: Joe Stringer <redacted>
---
 tools/testing/selftests/bpf/.gitignore        |   1 +
 tools/testing/selftests/bpf/Makefile          |   3 +-
 .../selftests/bpf/progs/test_sk_assign.c      | 127 +++++++++++++
 tools/testing/selftests/bpf/test_sk_assign.c  | 176 ++++++++++++++++++
Can this test be put under the test_progs.c framework?
 tools/testing/selftests/bpf/test_sk_assign.sh |  19 ++
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help