vici: Include reqid when listing trap policies
This commit is contained in:
@@ -629,6 +629,7 @@ static void raise_policy(private_vici_query_t *this, u_int id, char *ike,
|
|||||||
snprintf(buf, sizeof(buf), "%s/%s", ike, child->get_name(child));
|
snprintf(buf, sizeof(buf), "%s/%s", ike, child->get_name(child));
|
||||||
b->begin_section(b, buf);
|
b->begin_section(b, buf);
|
||||||
b->add_kv(b, "child", "%s", child->get_name(child));
|
b->add_kv(b, "child", "%s", child->get_name(child));
|
||||||
|
b->add_kv(b, "reqid", "%u", child->get_reqid(child));
|
||||||
b->add_kv(b, "ike", "%s", ike);
|
b->add_kv(b, "ike", "%s", ike);
|
||||||
|
|
||||||
list_mode(b, child, NULL);
|
list_mode(b, child, NULL);
|
||||||
|
|||||||
@@ -86,7 +86,8 @@ CALLBACK(policies, int,
|
|||||||
pol = hashtable_create(hashtable_hash_str, hashtable_equals_str, 1);
|
pol = hashtable_create(hashtable_hash_str, hashtable_equals_str, 1);
|
||||||
ret = vici_parse_cb(res, NULL, policy_values, policy_list, pol);
|
ret = vici_parse_cb(res, NULL, policy_values, policy_list, pol);
|
||||||
|
|
||||||
printf("%s, %s\n", name, pol->get(pol, "mode"));
|
printf("%s, reqid %s, %s\n", name, pol->get(pol, "reqid"),
|
||||||
|
pol->get(pol, "mode"));
|
||||||
print_label(" label: ", pol->get(pol, "label"));
|
print_label(" label: ", pol->get(pol, "label"));
|
||||||
printf(" local: %s\n", pol->get(pol, "local-ts"));
|
printf(" local: %s\n", pol->get(pol, "local-ts"));
|
||||||
printf(" remote: %s\n", pol->get(pol, "remote-ts"));
|
printf(" remote: %s\n", pol->get(pol, "remote-ts"));
|
||||||
|
|||||||
Reference in New Issue
Block a user