Skip to content
Snippets Groups Projects
Commit ff1f3e0d authored by NGUYEN Do Duc Anh's avatar NGUYEN Do Duc Anh
Browse files

fix bug

parent 2d80707a
No related branches found
No related tags found
No related merge requests found
......@@ -277,6 +277,7 @@ int inter_op_ebpf(struct xdp_md *ctx)
{
ip->daddr = *saved_daddr;
// bpf_trace_printk("Change dest");
asm volatile("" ::: "memory");
ip->check = iph_csum(ip, data_end);
tcp->check = tcp_checksum(ip, tcp, data_end);
}
......@@ -284,6 +285,7 @@ int inter_op_ebpf(struct xdp_md *ctx)
{
ip->saddr = *saved_saddr;
// bpf_trace_printk("Change src");
asm volatile("" ::: "memory");
ip->check = iph_csum(ip, data_end);
tcp->check = tcp_checksum(ip, tcp, data_end);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment