Lines Matching defs:mtag
173 struct m_tag *mtag;
178 mtag = m_tag_locate(m, MTAG_IPFW_RULE, 0, NULL);
179 if (mtag != NULL) {
180 cookie = ((struct ipfw_rule_ref *)(mtag+1))->rulenum;
182 (((struct ipfw_rule_ref *)(mtag+1))->info));
183 } else if ((mtag = m_tag_locate(m, MTAG_PF_DIVERT, 0, NULL)) != NULL) {
184 cookie = ((struct pf_divert_mtag *)(mtag+1))->idir;
185 nport = htons(((struct pf_divert_mtag *)(mtag+1))->port);
312 struct m_tag *mtag;
346 mtag = m_tag_locate(m, MTAG_IPFW_RULE, 0, NULL);
347 if (mtag == NULL) {
349 mtag = m_tag_alloc(MTAG_IPFW_RULE, 0,
351 if (mtag == NULL) {
355 m_tag_prepend(m, mtag);
357 dt = (struct ipfw_rule_ref *)(mtag+1);
401 mtag = m_tag_locate(m, MTAG_PF_DIVERT, 0, NULL);
402 if (mtag == NULL) {
404 mtag = m_tag_alloc(MTAG_PF_DIVERT, 0,
406 if (mtag == NULL) {
410 m_tag_prepend(m, mtag);
412 pfdt = (struct pf_divert_mtag *)(mtag+1);