diff --git a/examples/bpf/README b/examples/bpf/README index 42472578..1bbdda3f 100644 --- a/examples/bpf/README +++ b/examples/bpf/README @@ -1,13 +1,8 @@ eBPF toy code examples (running in kernel) to familiarize yourself with syntax and features: - - bpf_prog.c -> Classifier examples with using maps - bpf_shared.c -> Ingress/egress map sharing example - bpf_tailcall.c -> Using tail call chains - bpf_cyclic.c -> Simple cycle as tail calls - bpf_graft.c -> Demo on altering runtime behaviour - -User space code example: - - - bpf_agent.c -> Counterpart to bpf_prog.c for user - space to transfer/read out map data + - bpf_map_in_map.c -> Using map in map example diff --git a/lib/Makefile b/lib/Makefile index 1d24ca24..637fe487 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -4,6 +4,10 @@ ifeq ($(IP_CONFIG_SETNS),y) CFLAGS += -DHAVE_SETNS endif +ifeq ($(HAVE_MNL),y) + CFLAGS += -DHAVE_LIBMNL $(shell $(PKG_CONFIG) libmnl --cflags) +endif + CFLAGS += -fPIC UTILOBJ = utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o \