Signed-off-by: Felix Fietkau <nbd@nbd.name>
{
struct bpf_map *map = NULL;
- while ((map = bpf_map__next(map, obj)) != NULL) {
+ while ((map = bpf_object__next_map(obj, map)) != NULL) {
if (!strstr(bpf_map__name(map), ".rodata"))
continue;
return -1;
}
- prog = bpf_object__find_program_by_title(obj, "classifier");
+ prog = bpf_object__find_program_by_name(obj, "classify");
if (!prog) {
fprintf(stderr, "Can't find classifier prog\n");
return -1;
return 0;
}
-SEC("classifier")
+SEC("tc")
int classify(struct __sk_buff *skb)
{
bool ingress = module_flags & QOSIFY_INGRESS;