I'm using HTB QoS and 2.6sec (native 2.6 ipsec w/setkey) simultaneously. What is the sequence of events for an outgoing packet? I'm thinking the 2.6sec gets applied dead last, after the QoS scheduling has been done? Or does QoS get applied twice for a 2.6sec packet because it goes through egress twice? I could find no documentation on this subject, and it's actually quite important when using both together.