Lines Matching refs:tag

2164 		    TH_RST|TH_ACK, 0, 0, 0, true, s->tag, 0, s->act.rtableid);
2969 pf_mtag->tag = mtag_tag;
3156 /* Allocate outgoing queue entry, mbuf and mbuf tag. */
3195 /* Allocate outgoing queue entry, mbuf and mbuf tag. */
3352 /* Allocate outgoing queue entry, mbuf and mbuf tag. */
3526 pf_match_tag(struct mbuf *m, struct pf_krule *r, int *tag, int mtag)
3528 if (*tag == -1)
3529 *tag = mtag;
3531 return ((!r->match_tag_not && r->match_tag == *tag) ||
3532 (r->match_tag_not && r->match_tag != *tag));
3536 pf_tag_packet(struct mbuf *m, struct pf_pdesc *pd, int tag)
3539 KASSERT(tag > 0, ("%s: tag %d", __func__, tag));
3544 pd->pf_mtag->tag = tag;
4109 pf_match_eth_tag(struct mbuf *m, struct pf_keth_rule *r, int *tag, int mtag)
4111 if (*tag == -1)
4112 *tag = mtag;
4114 return ((!r->match_tag_not && r->match_tag == *tag) ||
4115 (r->match_tag_not && r->match_tag != *tag));
4162 int tag = -1;
4268 else if (r->match_tag && !pf_match_eth_tag(m, r, &tag,
4269 mtag ? mtag->tag : 0)) {
4275 if (r->tag)
4276 tag = r->tag;
4312 /* Shortcut. Don't tag if we're just going to drop anyway. */
4318 if (tag > 0) {
4326 mtag->tag = tag;
4433 int tag = -1;
4715 else if (r->match_tag && !pf_match_tag(m, r, &tag,
4716 pd->pf_mtag ? pd->pf_mtag->tag : 0))
4724 if (r->tag)
4725 tag = r->tag;
4788 if (tag > 0 && pf_tag_packet(m, pd, tag)) {
4799 sport, dport, &rewrite, kif, sm, tag, bproto_sum, bip_sum,
4852 int tag, u_int16_t bproto_sum, u_int16_t bip_sum, int hdrlen,
5033 if (tag > 0)
5034 s->tag = tag;
5125 int tag = -1;
5170 else if (r->match_tag && !pf_match_tag(m, r, &tag,
5171 pd->pf_mtag ? pd->pf_mtag->tag : 0))
5225 if (tag > 0 && pf_tag_packet(m, pd, tag)) {
5721 (*state)->src.mss, 0, false, (*state)->tag, 0,
5737 (*state)->tag, 0, (*state)->act.rtableid);
6210 * Find those based on the verification tag.
7907 /* dummynet adds this tag, but pf does not need it,
8004 uint16_t tag;
8327 tag = s->tag;
8330 tag = r->tag;
8334 if (tag > 0 && pf_tag_packet(m, &pd, tag)) {
8411 ("pf: failed to allocate tag\n"));
8428 ("pf: failed to allocate divert tag\n"));
8580 uint16_t tag;
8957 tag = s->tag;
8960 tag = r->tag;
8964 if (tag > 0 && pf_tag_packet(m, &pd, tag)) {