aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-11-05 23:07:07 -0800
committerDave Barach <openvpp@barachs.net>2017-11-06 21:45:22 +0000
commitc97a7398fc465c480a3ac66cf4b0f91a034ed564 (patch)
tree31467dcc219751cd89903e83b66c3315e31be947 /src/vpp
parenta3d933c87f146df801aa3947c25b6f1b2538f847 (diff)
session: add rule tags
Change-Id: Id5ebb410f509ac4c83d60e48efd54e00035e5ce6 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vpp')
-rw-r--r--src/vpp/api/custom_dump.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c
index 1152fbb8e0d..4ec19e50408 100644
--- a/src/vpp/api/custom_dump.c
+++ b/src/vpp/api/custom_dump.c
@@ -3215,18 +3215,19 @@ static void *vl_api_session_rule_add_del_t_print
u8 *s;
char *proto = mp->transport_proto == 0 ? "tcp" : "udp";
s = format (0, "SCRIPT: session_rule_add_del ");
+ mp->tag[sizeof (mp->tag) - 1] = 0;
if (mp->is_ip4)
- s = format (s, "appns %d scope %d %s %U/%d %d %U/%d %d action %u",
+ s = format (s, "appns %d scope %d %s %U/%d %d %U/%d %d action %u tag %s",
mp->appns_index, mp->scope, proto, format_ip4_address,
(ip4_address_t *) mp->lcl_ip, mp->lcl_plen,
format_ip4_address, (ip4_address_t *) mp->rmt_ip,
- mp->rmt_plen, mp->action_index);
+ mp->rmt_plen, mp->action_index, mp->tag);
else
- s = format (s, "appns %d scope %d %s %U/%d %d %U/%d %d action %u",
+ s = format (s, "appns %d scope %d %s %U/%d %d %U/%d %d action %u tag %s",
mp->appns_index, mp->scope, proto, format_ip6_address,
(ip6_address_t *) mp->lcl_ip, mp->lcl_plen,
format_ip6_address, (ip6_address_t *) mp->rmt_ip,
- mp->rmt_plen, mp->action_index);
+ mp->rmt_plen, mp->action_index, mp->tag);
FINISH;
}