summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
4d56b18)
The protocol value was changed to 50 and 51 (rather than 0 and 1), but
the custom_dump function wasn't updated to reflect this. Also the is_add
value wasn't being shown. Fix both these issues.
Type: fix
Change-Id: I429b4616d6c7937f73308b644154370fab32eaae
Signed-off-by: Christian Hopps <chopps@labn.net>
-static const char *proto_strs[] = {
- "ESP",
- "AH",
-};
-
static const char *algo_strs[] = {
"NONE",
"AES_CBC_128",
static const char *algo_strs[] = {
"NONE",
"AES_CBC_128",
ep = (vl_api_ipsec_sad_entry_t *) & mp->entry;
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);
- 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))
tmp = (ep->crypto_algorithm);
if (tmp < ARRAY_LEN (algo_strs))