[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq 1633] Re: problem in IPv6 DSCP marking
Emmanuel Lochin wrote:
> I can't mark my IPv6 packets with a conditioner.
> I use this scripts :
>
> interface fxp0
> conditioner fxp0 ef_cdnr <tbmeter 3M 64K <mark 0xb8><drop>>
> filter fxp0 ef_cdnr 0 0 0 0 0
> conditioner fxp0 ef2_cdnr <tbmeter 4M 64K <mark 0xb8><drop>>
> filter6 fxp0 ef2_cdnr ::0 0 ::0 0 0
>
> filter IPv4 work without problem but filter6 don't mark my packets ...
> I use FreeBSD 4.5 and NetBSD 1.5.3.
> Are there any patches for this need ?
Are you using altq-3.0? it had a problem with IPv6 conditioners.
-Kenjiro
Subject: [altq 1090] Re: AltQ-IPv6 Please help
From: Kenjiro Cho <kjc@csl.sony.co.jp>
To: hasan@tik.ee.ethz.ch
Cc: altq@csl.sony.co.jp, flury@tik.ee.ethz.ch, xiatao@china.com
Date: Sat, 13 Oct 2001 12:53:01 +0900 (JST)
X-Mailer: Mew version 2.0 on Emacs 20.7 / Mule 4.0 (HANANOEN)
Hasan wrote:
> I have an IPv6 test environment like this
>
> source [xl0] <---> [xl0] altq box [xl2] <---> [xl0] sink
>
> I run FreeBSD 4.2 + AltQ3.0
>
> I couldn't disable the bridge functionality (if any)
> of the altq box
>
> # sysctl -w net.link.ether.bridge=0
> sysctl: unknown oid 'net.link.ether.bridge'
>
> so I assumed there was no bridge functionality existing
The BRIDGE option is not enabled in the ALTQ or GENERIC kernel config
files.
> I want to make sure that the marking do function, so
> I mark whatever class incl. BE
>
> But no packet sent from source to sink is marked by
> the altq box. Can anybody help? Thank you in advance...
> I have dual stack on all the boxes. And the ipv4 version
> of the altq config file run well.
The IPv6 conditioner hook is missing in the original altq-3.0
patches. It's my merge mistake from the KAME development tree.
Please apply the following patch.
diff -urN ../sys/netinet6/ip6_input.c ./netinet6/ip6_input.c
--- ../sys/netinet6/ip6_input.c Fri Apr 20 09:17:51 2001
+++ ./netinet6/ip6_input.c Thu May 24 20:03:07 2001
@@ -328,6 +328,12 @@
return;
}
+#ifdef ALTQ
+ if (altq_input != NULL && (*altq_input)(m, AF_INET6) == 0) {
+ /* packet is dropped by traffic conditioner */
+ return;
+ }
+#endif
/*
* Scope check
*/
-Kenjiro