diff options
author | 2018-11-15 13:16:37 +0000 | |
---|---|---|
committer | 2018-11-15 13:16:37 +0000 | |
commit | 6106643cec5ef5a82aea8ce4929827041ed1ec67 (patch) | |
tree | f04e07ed0c2e0b6873d04a2d5e835a23e43a0907 | |
parent | Add [template] to display-panes and choose-{buffer,client,tree} usage (diff) | |
download | wireguard-openbsd-6106643cec5ef5a82aea8ce4929827041ed1ec67.tar.xz wireguard-openbsd-6106643cec5ef5a82aea8ce4929827041ed1ec67.zip |
in the "pf: key search" debug message, add the direction. interface *and*
dir make debugging much easier than the if alone.
-rw-r--r-- | sys/net/pf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 4b944842008..3a93140ddc1 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.1077 2018/10/16 22:49:41 sashan Exp $ */ +/* $OpenBSD: pf.c,v 1.1078 2018/11/15 13:16:37 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1037,7 +1037,8 @@ pf_find_state(struct pf_pdesc *pd, struct pf_state_key_cmp *key, pf_status.fcounters[FCNT_STATE_SEARCH]++; if (pf_status.debug >= LOG_DEBUG) { - log(LOG_DEBUG, "pf: key search, if=%s: ", pd->kif->pfik_name); + log(LOG_DEBUG, "pf: key search, %s on %s: ", + pd->dir == PF_OUT ? "out" : "in", pd->kif->pfik_name); pf_print_state_parts(NULL, (struct pf_state_key *)key, NULL); addlog("\n"); } |