Skip to content

Commit

Permalink
fix(filter): fix outgoing packet udp csum
Browse files Browse the repository at this point in the history
  • Loading branch information
spumer committed Mar 16, 2020
1 parent 2de9f99 commit 65828d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-ebpf/redirect.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int outgoing(struct __sk_buff *skb) {
if (value != 0) {
u16 gameserver_port = *value;

incr_cksum_l4(&udp->crc, udp->sport, gameserver_port, 1);
incr_cksum_l4(&udp->crc, udp->sport, gameserver_port, 2);
udp->sport = gameserver_port;
}

Expand Down

0 comments on commit 65828d3

Please sign in to comment.