The program was returning -1 in some cases which is not allowed by the verifier any longer.
Showing the changes to samples (1 of 1 file). Show all
Unified · Split
| @@ -39,8 +39,10 @@ int bpf_cong(struct bpf_sock_ops *skops) · 38 unmodified lines | |||
| 39 | * if neither port numberis 55601 | 39 | * if neither port numberis 55601 |
| 40 | */ | 40 | */ |
| 41 | if (bpf_ntohl(skops->remote_port) != 55601 && | 41 | if (bpf_ntohl(skops->remote_port) != 55601 && |
| 42 | skops->local_port != 55601) | 42 | skops->local_port != 55601) { |
| 43 | return -1; | 43 | skops->reply = -1; |
| 44 | return 1; | ||
| 45 | } | ||
| 44 | 46 | ||
| 45 | op = (int) skops->op; | 47 | op = (int) skops->op; |
| 46 | 48 | ||