From bd9a64843178d3de6903cca66b694c44453fd0d1 Mon Sep 17 00:00:00 2001 From: jasoni Date: Mon, 25 Jun 2001 16:53:21 +0000 Subject: display correct direction in log --- sys/net/pf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/net/pf.c') diff --git a/sys/net/pf.c b/sys/net/pf.c index 489a8f99dfa..b5d5c38ab69 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.31 2001/06/25 10:07:14 art Exp $ */ +/* $OpenBSD: pf.c,v 1.32 2001/06/25 16:53:20 jasoni Exp $ */ /* * Copyright (c) 2001, Daniel Hartmeier @@ -1020,7 +1020,7 @@ pf_test_tcp(int direction, struct ifnet *ifp, int off, struct ip *h, printf("pf: @%u", mnr); printf(" %s %s", rm->action ? "block" : "pass", - direction ? "in" : "out"); + direction ? "out" : "in"); printf(" on %s proto tcp", ifp->if_xname); printf(" from "); print_host(h->ip_src.s_addr, th->th_sport); @@ -1158,8 +1158,8 @@ pf_test_udp(int direction, struct ifnet *ifp, int off, struct ip *h, if (rm != NULL && rm->log) { printf("pf: @%u", mnr); - printf(" %s %s", rm->action ? "block" : "pass", direction ? "in" : - "out"); + printf(" %s %s", rm->action ? "block" : "pass", direction ? "out" : + "in"); printf(" on %s proto udp", ifp->if_xname); printf(" from "); print_host(h->ip_src.s_addr, uh->uh_sport); -- cgit v1.2.3