I want to define a filter in terms of MPLS label. When MPLS traffic comes in, it goes into specific class other than default class. The label is defined in struct flowinfo_in in altq.h. Now the problem I mentioned doesn't appear sicne I set sfilt.ff_flow.fi_family = AF_LABEL for filter of MPLS. But I got another problem. It tells me some invalid system call when I was adding such a filter.
Hao Zhang wrote:
> I wrote some code in parser.c to define a filter in terms of other field of
> a packet header. The compiling is fine. I also recompile altqd.c. In
> altq.conf, I just define one corresponding fitler like this:
>
> filter xl0 EF label ox00000000
Just curious, what field are you trying to use?
> When I lauch altq, I got following error message:
>
> filter shadows an existing filter. add filter failed.
>
> altq is running, but filter isn't added. Can you give some suggestion where
> the problem might be? Thanks in advance
Section 2.2 in altq-2.2/docs/TIPS.txt describes the filter matching
rules. The corresponding code is add_filter_rule() in libaltq/qop.c.
-Kenjiro