diff options
author | jasoni <jasoni@cvs.openbsd.org> | 2001-06-25 16:53:21 +0000 |
---|---|---|
committer | jasoni <jasoni@cvs.openbsd.org> | 2001-06-25 16:53:21 +0000 |
commit | bd9a64843178d3de6903cca66b694c44453fd0d1 (patch) | |
tree | ad9d3390d7626c203820fc1025f43708ad8ba103 /sys | |
parent | e5813d565376fc18146766167a16eda4e64fe8d5 (diff) |
display correct direction in log
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/pf.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |