X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvpp%2Fapi%2Fcustom_dump.c;h=5f022952cfadfded1dab7286f1f0f51295d51ea7;hb=4a433f46084d05a524154db64d3d7d2567305009;hp=8c5e0e52e546263f4034c3180568d909a54f9f18;hpb=4d56b18ce595a43ff5de1d168d66eab98560e7a7;p=vpp.git diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c index 8c5e0e52e54..5f022952cfa 100644 --- a/src/vpp/api/custom_dump.c +++ b/src/vpp/api/custom_dump.c @@ -3092,11 +3092,6 @@ static const char *policy_strs[] = { "PROTECT", }; -static const char *proto_strs[] = { - "ESP", - "AH", -}; - static const char *algo_strs[] = { "NONE", "AES_CBC_128", @@ -3202,11 +3197,13 @@ static void *vl_api_ipsec_sad_entry_add_del_t_print ep = (vl_api_ipsec_sad_entry_t *) & mp->entry; - s = format (0, "SCRIPT: ipsec_sad_entry_add_del is_add ", mp->is_add); + s = format (0, "SCRIPT: ipsec_sad_entry_add_del is_add %d ", mp->is_add); tmp = (ep->protocol); - if (tmp < ARRAY_LEN (proto_strs)) - protocol_str = proto_strs[tmp]; + if (tmp == IPSEC_API_PROTO_ESP) + protocol_str = "ESP"; + else if (tmp == IPSEC_API_PROTO_AH) + protocol_str = "AH"; tmp = (ep->crypto_algorithm); if (tmp < ARRAY_LEN (algo_strs))