diff options
author | Guillaume Solignac <gsoligna@cisco.com> | 2019-05-15 12:02:33 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-06-25 09:46:21 +0000 |
commit | 8f818cc35972f447acd3cf68229d5f9e634926f3 (patch) | |
tree | 2de9ccfbe188240737a1b09556dcd2f78f682b86 /src/vnet/ipsec/ipsec_input.c | |
parent | c036c93bdf240541ec436877f8614c82c5b49b8b (diff) |
ipsec: print spi in hexadecimal
Print the SPI in hexadecimal and decimal.
Type: feature
Change-Id: I012e94f9147058064e06c6bb4622ab6b6507957d
Signed-off-by: Guillaume Solignac <gsoligna@cisco.com>
Diffstat (limited to 'src/vnet/ipsec/ipsec_input.c')
-rw-r--r-- | src/vnet/ipsec/ipsec_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/ipsec/ipsec_input.c b/src/vnet/ipsec/ipsec_input.c index 778570a41d4..cfbda318851 100644 --- a/src/vnet/ipsec/ipsec_input.c +++ b/src/vnet/ipsec/ipsec_input.c @@ -61,9 +61,9 @@ format_ipsec_input_trace (u8 * s, va_list * args) CLIB_UNUSED (vlib_node_t * node) = va_arg (*args, vlib_node_t *); ipsec_input_trace_t *t = va_arg (*args, ipsec_input_trace_t *); - s = format (s, "%U: sa_id %u spd %u policy %d spi %u seq %u", + s = format (s, "%U: sa_id %u spd %u policy %d spi %u (0x%08x) seq %u", format_ip_protocol, t->proto, t->sa_id, - t->spd, t->policy_index, t->spi, t->seq); + t->spd, t->policy_index, t->spi, t->spi, t->seq); return s; } |