diff --git a/Makefile b/Makefile index aa63913..b20b954 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ SUBDIRS := encap-forward SUBDIRS += ktrace-CO-RE SUBDIRS += lsm-nobpf SUBDIRS += nat64-bpf +SUBDIRS += preserve-dscp SUBDIRS += traffic-pacing-edt .PHONY: check_submodule help clobber distclean clean $(SUBDIRS) diff --git a/preserve-dscp/preserve-dscp.c b/preserve-dscp/preserve-dscp.c index 9192d12..8c66186 100644 --- a/preserve-dscp/preserve-dscp.c +++ b/preserve-dscp/preserve-dscp.c @@ -84,7 +84,7 @@ int main(int argc, char *argv[]) return err; } - while ((map = bpf_map__next(map, obj))) { + while ((map = bpf_object__next_map(obj, map))) { if (strstr(bpf_map__name(map), ".rodata")) { int ip_only = (iftype == ARPHRD_NONE); bpf_map__set_initial_value(map, &ip_only, sizeof(ip_only));