Lines Matching refs:tag
1612 TH_RST|TH_ACK, 0, 0, 0, 1, s->tag, NULL);
2287 u_int8_t flags, u_int16_t win, u_int16_t mss, u_int8_t ttl, int tag,
2326 /* Allocate outgoing queue entry, mbuf and mbuf tag. */
2343 if (tag)
2345 pf_mtag->tag = rtag;
2451 /* Allocate outgoing queue entry, mbuf and mbuf tag. */
2633 pf_match_tag(struct mbuf *m, struct pf_rule *r, int *tag, int mtag)
2635 if (*tag == -1)
2636 *tag = mtag;
2638 return ((!r->match_tag_not && r->match_tag == *tag) ||
2639 (r->match_tag_not && r->match_tag != *tag));
2643 pf_tag_packet(struct mbuf *m, struct pf_pdesc *pd, int tag)
2646 KASSERT(tag > 0, ("%s: tag %d", __func__, tag));
2651 pd->pf_mtag->tag = tag;
3083 int tag = -1, rtableid = -1;
3332 else if (r->match_tag && !pf_match_tag(m, r, &tag,
3333 pd->pf_mtag ? pd->pf_mtag->tag : 0))
3341 if (r->tag)
3342 tag = r->tag;
3446 if (tag > 0 && pf_tag_packet(m, pd, tag)) {
3457 sport, dport, &rewrite, kif, sm, tag, bproto_sum, bip_sum,
3498 int tag, u_int16_t bproto_sum, u_int16_t bip_sum, int hdrlen)
3669 if (tag > 0)
3670 s->tag = tag;
3753 int tag = -1;
3794 else if (r->match_tag && !pf_match_tag(m, r, &tag,
3795 pd->pf_mtag ? pd->pf_mtag->tag : 0))
3828 if (tag > 0 && pf_tag_packet(m, pd, tag)) {
4317 (*state)->src.mss, 0, 0, (*state)->tag, NULL);
4332 (*state)->tag, NULL);
5959 if (s && s->tag > 0 && pf_tag_packet(m, &pd, s->tag)) {
6017 ("pf: failed to allocate tag\n"));
6034 ("pf: failed to allocate divert tag\n"));
6391 if (s && s->tag > 0 && pf_tag_packet(m, &pd, s->tag)) {