diff options
author | 2009-04-23 02:01:21 +0000 | |
---|---|---|
committer | 2009-04-23 02:01:21 +0000 | |
commit | 4938e2fd28e70301f2f5646109484f9f3f80ec0f (patch) | |
tree | 549da87086ef336e5baf242bdd02341e7565e69d | |
parent | Unrevert reversion of r1.192. This time make sure 'aflag' is treated (diff) | |
download | wireguard-openbsd-4938e2fd28e70301f2f5646109484f9f3f80ec0f.tar.xz wireguard-openbsd-4938e2fd28e70301f2f5646109484f9f3f80ec0f.zip |
print the type of the icmp message we're bitching about when debugging is
turned up in pf_icmp_state_lookup.
ok sthen@
-rw-r--r-- | sys/net/pf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 9639b6a6829..75770287dda 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.645 2009/04/17 18:37:06 henning Exp $ */ +/* $OpenBSD: pf.c,v 1.646 2009/04/23 02:01:21 dlg Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -4075,7 +4075,7 @@ pf_icmp_state_lookup(struct pf_state_key_cmp *key, struct pf_pdesc *pd, PF_IN : PF_OUT) != icmp_dir) { if (pf_status.debug >= PF_DEBUG_MISC) { printf("pf: icmp type %d in wrong direction (%d): ", - icmp_dir); + ntohs(type), icmp_dir); pf_print_state(*state); printf("\n"); } |