Lines Matching refs:match
187 * obey the 'randomized match', and we do not do multiple
478 if (ifp == NULL) /* no iface with this packet, match fails */
481 if (cmd->name[0] != '\0') { /* match by name */
500 return(1); /* match */
505 return(0); /* no match, fail ... */
1358 * This never returns NULL -- in case we do not have an exact match,
1653 int match;
1666 * The first match will set "skip_or", and cause
1675 match = 0; /* set to 1 if we succeed */
1680 * fields with some pattern, setting 'match' if a
1681 * match is found. At the end of the loop there is
1686 match = 1;
1736 match =
1746 match = 0;
1748 (gid_t)((ipfw_insn_u32 *)cmd)->d[0], &match);
1756 match = iface_match(m->m_pkthdr.rcvif,
1761 match = iface_match(oif, (ipfw_insn_if *)cmd);
1765 match = iface_match(oif ? oif :
1777 match =
1792 for (i = cmdlen - 1; !match && i>0;
1794 match = (t>=p[0] && t<=p[1]);
1799 match = (hlen > 0 && offset != 0);
1803 match = (oif == NULL);
1807 match = (args->eh != NULL);
1815 match = (proto == cmd->arg1);
1819 match = (hlen > 0 &&
1833 for (; !match && i>0; i-= 2, p+= 2)
1834 match = (p[0] == (a & p[1]));
1843 match = (tif != NULL);
1859 match = (addr < cmd->arg1) &&
1866 match = (hlen > 0 &&
1876 match = (tif != NULL);
1896 for (i = cmdlen - 1; !match && i>0;
1898 match = (x>=p[0] && x<=p[1]);
1903 match = (offset == 0 && proto==IPPROTO_ICMP &&
1908 match = (hlen > 0 && ipopts_match(ip, cmd) );
1912 match = (hlen > 0 && cmd->arg1 == ip->ip_v);
1930 match = (cmd->arg1 == x);
1936 for (; !match && i>0; i--, p += 2)
1937 match = (x >= p[0] && x <= p[1]);
1942 match = (hlen > 0 &&
1947 match = (hlen > 0 &&
1952 match = (proto == IPPROTO_TCP && offset == 0 &&
1958 match = (proto == IPPROTO_TCP && offset == 0 &&
1963 match = (proto == IPPROTO_TCP && offset == 0 &&
1969 match = (proto == IPPROTO_TCP && offset == 0 &&
1975 match = (proto == IPPROTO_TCP && offset == 0 &&
1983 match = (proto == IPPROTO_TCP && offset == 0 &&
1991 match = 1;
1995 match = (random()<((ipfw_insn_u32 *)cmd)->d[0]);
1999 /* Outgoing packets automatically pass/match */
2000 match = ((oif != NULL) ||
2007 match = (m_tag_find(m,
2011 match = (ipsec_gethist(m, NULL) != NULL);
2013 /* otherwise no match */
2040 * the next opcode (match=1; break;), otherwise
2061 match = 1;
2099 match = 1;
2169 match = !match;
2171 if (match) {
2219 * pipe/queue, or to all of them (match == NULL).
2223 flush_pipe_ptrs(struct dn_flow_set *match)
2238 if (match == NULL ||
2239 !bcmp(&cmd->pipe_ptr, &match, sizeof(match)) )
3127 * adjust sopt_valsize to match what would be expected.