@@ -200,7 +200,7 @@ int xdp_redirect_prog(struct xdp_md *ctx)
200200 }
201201 event .dport = tcph -> dest ;
202202 event .sport = tcph -> source ;
203- tun_state_key .sport = tcph -> dest ;;
203+ tun_state_key .sport = tcph -> dest ;
204204 tun_state_key .dport = tcph -> source ;
205205 }else if (protocol == IPPROTO_UDP ){
206206 struct udphdr * udph = (struct udphdr * )((unsigned long )iph + sizeof (* iph ));
@@ -209,7 +209,7 @@ int xdp_redirect_prog(struct xdp_md *ctx)
209209 }
210210 event .dport = udph -> dest ;
211211 event .sport = udph -> source ;
212- tun_state_key .sport = udph -> dest ;;
212+ tun_state_key .sport = udph -> dest ;
213213 tun_state_key .dport = udph -> source ;
214214 }
215215 tun_state_key .type = 4 ;
@@ -256,7 +256,7 @@ int xdp_redirect_prog(struct xdp_md *ctx)
256256 }
257257 event .dport = tcph -> dest ;
258258 event .sport = tcph -> source ;
259- tun_state_key .sport = tcph -> dest ;;
259+ tun_state_key .sport = tcph -> dest ;
260260 tun_state_key .dport = tcph -> source ;
261261 }else if (protocol == IPPROTO_UDP ){
262262 struct udphdr * udph = (struct udphdr * )((unsigned long )ip6h + sizeof (* ip6h ));
@@ -265,7 +265,7 @@ int xdp_redirect_prog(struct xdp_md *ctx)
265265 }
266266 event .dport = udph -> dest ;
267267 event .sport = udph -> source ;
268- tun_state_key .sport = udph -> dest ;;
268+ tun_state_key .sport = udph -> dest ;
269269 tun_state_key .dport = udph -> source ;
270270 }
271271 struct tun_state * tus = get_tun (tun_state_key );
0 commit comments