--- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 --- a/debian/control +++ b/debian/control @@ -3,9 +3,8 @@ Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Thomas Girard Uploaders: Domenico Andreoli -Build-Depends: debhelper-compat (= 11), cmake (>= 2.4.8), zlib1g-dev, libelf-dev, libdw-dev (>= 0.141), pkg-config, +Build-Depends: debhelper, cmake (>= 2.4.8), zlib1g-dev, libelf-dev, libdw-dev (>= 0.141), pkg-config, Standards-Version: 4.5.1 -Rules-Requires-Root: no Section: utils Vcs-Browser: https://salsa.debian.org/debian/dwarves Vcs-Git: https://salsa.debian.org/debian/dwarves.git --- a/lib/bpf/src/netlink.c +++ b/lib/bpf/src/netlink.c @@ -22,6 +22,29 @@ #define SOL_NETLINK 270 #endif +#ifndef TC_H_CLSACT +#define TC_H_CLSACT TC_H_INGRESS +#endif + +#ifndef TC_H_MIN_INGRESS +#define TC_H_MIN_INGRESS 0xFFF2U +#endif + +#ifndef TC_H_MIN_EGRESS +#define TC_H_MIN_EGRESS 0xFFF3U +#endif + +/* TCA_BPF_ID is an enumerator value in uapi/linux/pkt_cls.h. + * Declare it as a macro here so old system can still work + * without TCA_BPF_ID defined in pkt_cls.h. + */ +#define TCA_BPF_ID 11 + +#ifdef TCA_BPF_MAX +#undef TCA_BPF_MAX +#endif +#define TCA_BPF_MAX 11 + typedef int (*libbpf_dump_nlmsg_t)(void *cookie, void *msg, struct nlattr **tb); typedef int (*__dump_nlmsg_t)(struct nlmsghdr *nlmsg, libbpf_dump_nlmsg_t,