diff options
author | 2003-06-20 17:38:24 +0000 | |
---|---|---|
committer | 2003-06-20 17:38:24 +0000 | |
commit | a5ed5391c772e71ac177344fb87173b6426b85b3 (patch) | |
tree | 5adaee0485ad724af09fec4e73d3f3dfe55f05ec /sys | |
parent | some cleanings recommended by lint; dhartmei ok (diff) | |
download | wireguard-openbsd-a5ed5391c772e71ac177344fb87173b6426b85b3.tar.xz wireguard-openbsd-a5ed5391c772e71ac177344fb87173b6426b85b3.zip |
Extend 'BAD ICMP' debug message, include icmp type/code and outer IP header
addresses. ok mcbride@, cedric@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/pf.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index ac4eb59e79f..83afd580d05 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.364 2003/06/14 07:23:15 dhartmei Exp $ */ +/* $OpenBSD: pf.c,v 1.365 2003/06/20 17:38:24 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -3829,7 +3829,12 @@ pf_test_state_icmp(struct pf_state **state, int direction, struct ifnet *ifp, if (!SEQ_GEQ(src->seqhi, seq) || !SEQ_GEQ(seq, src->seqlo - (dst->max_win << dws))) { if (pf_status.debug >= PF_DEBUG_MISC) { - printf("pf: BAD ICMP state: "); + printf("pf: BAD ICMP %d:%d ", + icmptype, pd->hdr.icmp->icmp_code); + pf_print_host(pd->src, 0, pd->af); + printf(" -> "); + pf_print_host(pd->dst, 0, pd->af); + printf(" state: "); pf_print_state(*state); printf(" seq=%u\n", seq); } |