diff options
author | Keith Burns (alagalah) <alagalah@gmail.com> | 2016-08-02 11:57:37 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-08-03 22:02:27 +0000 |
commit | 9d3a879d9d97a1b96543a942439ec1c3282a5cdd (patch) | |
tree | 97a2ea3d746a3127aa8ca38f3cd6b3dd2582f776 /vpp/vpp-api/custom_dump.c | |
parent | 79b5f638e554129d57f13e455ece1b4e8214c9ec (diff) |
VPP-226 - adding UDP TCP to port-range
Change-Id: I5f4261279dcdbb03e182b18d05602407c0e55f89
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
Diffstat (limited to 'vpp/vpp-api/custom_dump.c')
-rw-r--r-- | vpp/vpp-api/custom_dump.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/vpp/vpp-api/custom_dump.c b/vpp/vpp-api/custom_dump.c index 51bf81d9..bf02ac43 100644 --- a/vpp/vpp-api/custom_dump.c +++ b/vpp/vpp-api/custom_dump.c @@ -2099,7 +2099,7 @@ static void *vl_api_ip_source_and_port_range_check_add_del_t_print mp->mask_length); for (i = 0; i < mp->number_of_ranges; i++) { - s = format (s, "range %d - %d", mp->low_ports[i], mp->high_ports[i]); + s = format (s, "range %d - %d ", mp->low_ports[i], mp->high_ports[i]); } s = format (s, "vrf %d ", ntohl(mp->vrf_id)); @@ -2117,9 +2117,19 @@ static void *vl_api_ip_source_and_port_range_check_interface_add_del_t_print s = format (0, "SCRIPT: ip_source_and_port_range_check_interface_add_del "); - s = format (s, "%d ", ntohl(mp->sw_if_index)); + s = format (s, "sw_if_index %d ", ntohl(mp->sw_if_index)); - s = format (s, "vrf %d ", ntohl(mp->vrf_id)); + if (mp->tcp_out_vrf_id != ~0) + s = format (s, "tcp-out-vrf %d ", ntohl(mp->tcp_out_vrf_id)); + + if (mp->udp_out_vrf_id != ~0) + s = format (s, "udp-out-vrf %d ", ntohl(mp->udp_out_vrf_id)); + + if (mp->tcp_in_vrf_id != ~0) + s = format (s, "tcp-in-vrf %d ", ntohl(mp->tcp_in_vrf_id)); + + if (mp->udp_in_vrf_id != ~0) + s = format (s, "udp-in-vrf %d ", ntohl(mp->udp_in_vrf_id)); if (mp->is_add == 0) s = format (s, "del "); |