-/* $OpenBSD: pf.c,v 1.876 2014/04/22 14:41:03 mpi Exp $ */
+/* $OpenBSD: pf.c,v 1.877 2014/04/24 11:55:12 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
m->m_pkthdr.ph_rtableid = rdom;
if (r && (r->scrub_flags & PFSTATE_SETPRIO))
m->m_pkthdr.pf.prio = r->set_prio[0];
+ if (r && r->qid)
+ m->m_pkthdr.pf.qid = r->qid;
m->m_data += max_linkhdr;
m->m_pkthdr.len = m->m_len = len;
m->m_pkthdr.rcvif = NULL;
m0->m_pkthdr.ph_rtableid = rdomain;
if (r && (r->scrub_flags & PFSTATE_SETPRIO))
m0->m_pkthdr.pf.prio = r->set_prio[0];
+ if (r && r->qid)
+ m->m_pkthdr.pf.qid = r->qid;
switch (af) {
#ifdef INET
}
}
+ if (action == PF_PASS && qid)
+ pd.m->m_pkthdr.pf.qid = qid;
if (pd.dir == PF_IN && s && s->key[PF_SK_STACK])
pd.m->m_pkthdr.pf.statekey = s->key[PF_SK_STACK];
if (pd.dir == PF_OUT &&