diff options
author | ae <ae@FreeBSD.org> | 2017-04-17 09:38:15 +0000 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2017-07-15 11:19:20 -0500 |
commit | 98f18ec42aa161b14aef9626e9120aad27c5cc93 (patch) | |
tree | b74562fbc7a5ff626d0a8809cdfc2a618220a5b4 | |
parent | 522323933bf93029d030d5744c0f5ac95c0db56e (diff) | |
download | FreeBSD-src-98f18ec42aa161b14aef9626e9120aad27c5cc93.zip FreeBSD-src-98f18ec42aa161b14aef9626e9120aad27c5cc93.tar.gz |
MFC r316433:
Add the log formatting for an external action opcode.
Obtained from: Yandex LLC
Sponsored by: Yandex LLC
(cherry picked from commit 93c66f329a5c7a8161ceef873184cc5c7b69431c)
-rw-r--r-- | sys/netpfil/ipfw/ip_fw_log.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_log.c b/sys/netpfil/ipfw/ip_fw_log.c index a8e53fe..b10b4e7 100644 --- a/sys/netpfil/ipfw/ip_fw_log.c +++ b/sys/netpfil/ipfw/ip_fw_log.c @@ -264,6 +264,11 @@ ipfw_log(struct ip_fw_chain *chain, struct ip_fw *f, u_int hlen, snprintf(SNPARGS(action2, 0), "Call %d", cmd->arg1); break; + case O_EXTERNAL_ACTION: + snprintf(SNPARGS(action2, 0), "Eaction %s", + ((struct named_object *)SRV_OBJECT(chain, + cmd->arg1))->name); + break; default: action = "UNKNOWN"; break; |