Skip to content

Commit ef1a7b7

Browse files
committed
ffmuc-ebpf-clat: make icmp offset parameters u32 (possible error cause)
1 parent ad6a461 commit ef1a7b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ffmuc-ebpf-clat/src/clat.bpf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static int update_udp_4to6(struct __sk_buff *skb, __u32 offset) {
9595
return TC_ACT_OK;
9696
}
9797

98-
static int update_icmp_4to6(struct __sk_buff *skb, __u16 offset, struct ipv6hdr *ip6) {
98+
static int update_icmp_4to6(struct __sk_buff *skb, __u32 offset, struct ipv6hdr *ip6) {
9999
if (!ip6) {
100100
return TC_ACT_SHOT;
101101
}
@@ -351,7 +351,7 @@ static int update_udp_6to4(struct __sk_buff *skb, __u32 offset) {
351351
return TC_ACT_OK;
352352
}
353353

354-
static int update_icmp_6to4(struct __sk_buff *skb, __u16 offset, struct iphdr *ip, struct ipv6hdr *ip6) {
354+
static int update_icmp_6to4(struct __sk_buff *skb, __u32 offset, struct iphdr *ip, struct ipv6hdr *ip6) {
355355
if (!ip || !ip6) {
356356
return TC_ACT_SHOT;
357357
}

0 commit comments

Comments
 (0)