Lines Matching refs:tag
128 struct m_tag *tag;
136 * extract and remove the tag if present. If we are left
139 tag = m_tag_locate(*m0, MTAG_IPFW_RULE, 0, NULL);
140 if (tag != NULL) {
141 args.rule = *((struct ipfw_rule_ref *)(tag+1));
142 m_tag_delete(*m0, tag);
203 * reuse the tag if present.
205 tag = (dir == DIR_IN) ? NULL :
207 if (tag != NULL) {
208 m_tag_unlink(*m0, tag);
210 tag = m_tag_get(PACKET_TAG_IPFORWARD, len,
212 if (tag == NULL) {
218 bcopy(psa, tag + 1, len);
219 m_tag_prepend(*m0, tag);
226 sa6 = satosin6(tag + 1);
349 /* fetch start point from rule, if any. remove the tag if present. */
449 * ipfw_chk() has already tagged the packet with the divert tag.
455 struct m_tag *tag;
520 /* attach a tag to the packet with the reinject info */
521 tag = m_tag_alloc(MTAG_IPFW_RULE, 0,
523 if (tag == NULL) {
527 *((struct ipfw_rule_ref *)(tag+1)) = *rule;
528 m_tag_prepend(clone, tag);