8000 bpf: test: fix xdp_lb4_forward_to_other_node test by julianwiedmann · Pull Request #23018 · cilium/cilium · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bpf: test: fix xdp_lb4_forward_to_other_node test #23018

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bpf/tests/xdp_nodeport_lb4_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static int build_packet(struct __ctx_buff *ctx)
.ihl = 5,
.tot_len = 40, /* 20 bytes l3 + 20 bytes l4 + 20 bytes data */
.id = 0x5438,
.frag_off = 0x4000,
.frag_off = bpf_htons(IP_DF),
.ttl = 64,
.protocol = IPPROTO_TCP,
.saddr = 0x0F00000A, /* 10.0.0.15 */
Expand Down Expand Up @@ -209,8 +209,8 @@ int test1_check(__maybe_unused const struct __ctx_buff *ctx)

data += sizeof(struct tcphdr);

if (l4->dest != 80)
test_fatal("dst port changed");
if (l4->dest != BACKEND_PORT)
test_fatal("dst port != backend port");

char msg[20] = "Should not change!!";

Expand Down
0