Lines Matching defs:mtag
1761 struct m_tag *mtag;
1774 mtag = m_tag_get(PACKET_TAG_PF,
1776 if (mtag == NULL) {
1783 m_tag_prepend(m, mtag);
1784 at = (struct pf_mtag *)(mtag + 1);
1912 struct m_tag *mtag;
1916 mtag = m_tag_locate(m, MTAG_IPFW, tag, NULL);
1919 * present. And we must remove this mtag from
1922 * Otherwise we should allocate new mtag and
1926 if (mtag != NULL)
1927 m_tag_delete(m, mtag);
1930 if (mtag == NULL) {
1931 mtag = m_tag_alloc( MTAG_IPFW,
1933 if (mtag != NULL)
1934 m_tag_prepend(m, mtag);
1991 struct m_tag *mtag;
2001 for (mtag = m_tag_first(m);
2002 mtag != NULL && !match;
2003 mtag = m_tag_next(m, mtag)) {
2007 if (mtag->m_tag_cookie != MTAG_IPFW)
2014 mtag->m_tag_id >= p[0] &&
2015 mtag->m_tag_id <= p[1];
2193 struct m_tag *mtag;
2203 mtag = m_tag_first(m);
2204 while (mtag != NULL) {
2205 if (mtag->m_tag_cookie ==
2208 mtag = m_tag_next(m, mtag);
2210 if (mtag == NULL && IS_CALL) {
2211 mtag = m_tag_alloc(MTAG_IPFW_CALL, 0,
2214 if (mtag != NULL)
2215 m_tag_prepend(m, mtag);
2222 if (IS_RETURN && (mtag == NULL ||
2223 mtag->m_tag_id == 0)) {
2227 if (IS_CALL && (mtag == NULL ||
2228 mtag->m_tag_id >= IPFW_CALLSTACK_SIZE)) {
2236 stack = (uint16_t *)(mtag + 1);
2247 stack[mtag->m_tag_id] = f->rulenum;
2248 mtag->m_tag_id++;
2252 mtag->m_tag_id--;
2253 jmpto = stack[mtag->m_tag_id] + 1;