On Fri, 26 May 2017 21:48:05 +0200
Daniel Borkmann <dan...@iogearbox.net> wrote:

> On 05/23/2017 03:40 PM, Jiri Pirko wrote:
> > Mon, May 22, 2017 at 10:33:15PM CEST, step...@networkplumber.org wrote:  
> [...]
> >> Applied to net-next branch of iproute2  
> >
> > Looks like you missed the uapi part:
> >
> >      CC       tc_filter.o
> > tc_filter.c: In function ‘tc_filter_modify’:
> > tc_filter.c:159:34: error: ‘TCA_CHAIN’ undeclared (first use in this 
> > function)
> >     addattr32(&req.n, sizeof(req), TCA_CHAIN, chain_index);
> >                                    ^~~~~~~~~  
> 
> Looks like still unresolved in the iproute2 -net-next branch ...

On the net-next branch include/linux/rtnetlink.h now has TCA_CHAIN, and 
everything
builds fine.  You may have local changes or be using different includes

$ git grep TCA_CHAIN
include/linux/rtnetlink.h:      TCA_CHAIN,
tc/tc_filter.c:         addattr32(&req.n, sizeof(req), TCA_CHAIN, chain_index);
tc/tc_filter.c: if (tb[TCA_CHAIN]) {
tc/tc_filter.c:         __u32 chain_index = rta_getattr_u32(tb[TCA_CHAIN]);
tc/tc_filter.c:         addattr32(&req.n, sizeof(req), TCA_CHAIN, chain_index);
tc/tc_filter.c:         addattr32(&req.n, sizeof(req), TCA_CHAIN, chain_index);

Reply via email to