PF_IN
(bpf_int32)((dir == 0) ? PF_IN : PF_OUT));
if (hdr->dir == PF_IN)
if (hdr->dir == PF_IN)
r.direction = PF_IN;
r.direction = PF_IN;
| IN { $$ = PF_IN; }
if ((r->keep_state == PF_STATE_SYNPROXY) && (r->direction != PF_IN))
if (r->direction == PF_IN) {
rb.direction = PF_IN;
if ((opts->marker & FOM_AFTO) && r->direction != PF_IN) {
if (s->direction == PF_IN && !PF_AZERO(&s->rt_addr, sk->af)) {
if (s->direction == PF_OUT || (afto && s->direction == PF_IN))
if (r->direction == PF_IN)
#define BRIDGE_IN PF_IN
sk = st->key[st->direction == PF_IN ? PF_SK_WIRE : PF_SK_STACK];
if (dir == PF_IN) {
if (dir == PF_IN && ISSET(m->m_pkthdr.pf.flags, PF_TAG_DIVERTED)) {
(m = tpmr_pf(ifp0, PF_IN, m, ns)) == NULL)
(m = veb_pf(ifp0, PF_IN, m, ctx.ns)) == NULL)
if (dir == PF_IN && ISSET(m->m_pkthdr.pf.flags, PF_TAG_DIVERTED)) {
if (pd->dir == PF_IN) {
didx = (pd->dir == PF_IN) ? PF_SK_WIRE : PF_SK_STACK;
if (pd->dir != PF_IN)
(sk == (dir == PF_IN ? sist->key[PF_SK_WIRE] :
case PF_IN:
*icmp_dir = PF_IN;
*icmp_dir = PF_IN;
*icmp_dir = PF_IN;
*icmp_dir = PF_IN;
*icmp_dir = PF_IN;
*icmp_dir = PF_IN;
*icmp_dir = PF_IN;
*icmp_dir = PF_IN;
*icmp_dir = PF_IN;
*icmp_dir = PF_IN;
*icmp_dir = PF_IN;
*icmp_dir = PF_IN;
*icmp_dir = PF_IN;
*icmp_dir = PF_IN;
*icmp_dir = PF_IN;
*icmp_dir = PF_IN;
if (pd->dir == PF_IN) {
ctx->icmp_dir != PF_IN),
ctx->icmp_dir != PF_IN &&
if (pd->dir == PF_IN && if_congested()) {
if (ctx.icmp_dir == PF_IN) {
if (ctx.icmp_dir == PF_IN) {
r->keep_state == PF_STATE_SYNPROXY && pd->dir == PF_IN) {
if (pd->dir == PF_IN)
TH_SYN && r->keep_state == PF_STATE_SYNPROXY && pd->dir == PF_IN) {
u_int16_t icmpid = (icmp_dir == PF_IN) ? sport : dport;
u_int16_t icmpid = (icmp_dir == PF_IN) ? sport : dport;
pd->dir == PF_IN ? "in" : "out",
pd->dir == PF_IN ? "in" : "out",
if (icmp_dir == PF_IN) {
PF_IN : PF_OUT;
PF_IN : PF_OUT) != icmp_dir) {
pd2.sidx = (pd2.dir == PF_IN) ? 1 : 0;
pd2.didx = (pd2.dir == PF_IN) ? 0 : 1;
if (pd->dir == PF_IN) {
if (st->rt != PF_DUPTO && pd->dir == PF_IN) {
if (pd->dir == PF_IN) {
if (st->rt != PF_DUPTO && pd->dir == PF_IN) {
pd->sidx = (dir == PF_IN) ? 0 : 1;
pd->didx = (dir == PF_IN) ? 1 : 0;
&st->key[(st->direction == PF_IN)]->
&st->key[(st->direction == PF_IN)]->
addr[(st->direction == PF_IN)],
&st->key[(st->direction == PF_IN)]->
&st->key[(st->direction == PF_IN)]->
addr[(st->direction == PF_IN)],
((*stp)->direction == PF_IN &&
if (pd.dir == PF_IN &&
if (pd.dir == PF_IN && pd.virtual_proto == IPPROTO_TCP &&
if (pd.dir == PF_IN) {
if (pd.dir == PF_IN && action == PF_PASS &&
if (pd.dir == PF_IN) {
if (pd.dir == PF_IN) {
if (!st->if_index_in && dir == PF_IN)
const int dirs[] = { PF_IN, PF_OUT };
if (dirs[i] == PF_IN) {
sk == (dirs[i] == PF_IN ?
dirs[i] == PF_IN &&
sidx = (direction == PF_IN) ? 1 : 0;
didx = (direction == PF_IN) ? 0 : 1;
int dir = (pd->dir == PF_IN) ? PF_OUT : PF_IN;
if (pd->dir == PF_IN) {
if (pd->dir == PF_IN) {
if (cur->direction == PF_IN) {
if (cur->direction == PF_IN) {
sks = cur->key[(cur->direction == PF_IN)
dir = (sin->sin_addr.s_addr == INADDR_ANY ? PF_OUT : PF_IN);
if (dir == PF_IN) {
if (dir == PF_IN) {
if (pf_test(AF_INET, PF_IN, ifp, mp) != PF_PASS)
if (pf_test(af, PF_IN, ifp, mp) != PF_PASS) {
dir = (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr) ? PF_OUT : PF_IN);
if (dir == PF_IN) {
if (dir == PF_IN) {
if (pf_test(AF_INET6, PF_IN, ifp, mp) != PF_PASS)
else if (pr->direction == PF_IN)
side = s1->direction == PF_IN ? PF_SK_STACK : PF_SK_WIRE;
if (dir == PF_IN) {
if (dir == PF_IN) {
side = s1->direction == PF_IN ? PF_SK_STACK : PF_SK_WIRE;
if (dir == PF_IN) {
if (dir == PF_IN) {
return sort_addr_callback(s1, s2, PF_IN);
return sort_port_callback(s1, s2, PF_IN);
pfr.rule.direction = PF_IN;
rio.rule.direction = PF_IN;
pnl.direction = PF_IN;
pnl.direction == PF_IN ? "in" : "out",
if (add_filter(r->id, PF_IN, (struct sockaddr *)