aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ipsec/esp_format.c
diff options
context:
space:
mode:
authorGuillaume Solignac <gsoligna@cisco.com>2019-05-15 12:02:33 +0200
committerNeale Ranns <nranns@cisco.com>2019-06-25 09:46:21 +0000
commit8f818cc35972f447acd3cf68229d5f9e634926f3 (patch)
tree2de9ccfbe188240737a1b09556dcd2f78f682b86 /src/vnet/ipsec/esp_format.c
parentc036c93bdf240541ec436877f8614c82c5b49b8b (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/esp_format.c')
-rw-r--r--src/vnet/ipsec/esp_format.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/ipsec/esp_format.c b/src/vnet/ipsec/esp_format.c
index 615d576043b..48b728dd196 100644
--- a/src/vnet/ipsec/esp_format.c
+++ b/src/vnet/ipsec/esp_format.c
@@ -23,10 +23,10 @@ u8 *
format_esp_header (u8 * s, va_list * args)
{
esp_header_t *esp = va_arg (*args, esp_header_t *);
+ u32 spi = clib_net_to_host_u32 (esp->spi);
- s = format (s, "ESP: spi %u, seq %u",
- clib_net_to_host_u32 (esp->spi),
- clib_net_to_host_u32 (esp->seq));
+ s = format (s, "ESP: spi %u (0x%08x), seq %u",
+ spi, spi, clib_net_to_host_u32 (esp->seq));
return s;
}