X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvat%2Fapi_format.c;h=eee5c743959271d491997a63af7e70013c158f86;hb=85dbac081d3168064131727553370d2b9983ddd6;hp=0651be97c62742774f28dc056874bb68f6dcabed;hpb=e7fa24e574bd2ee36b21848bb0981eb8b3d2f96f;p=vpp.git diff --git a/src/vat/api_format.c b/src/vat/api_format.c index 0651be97c62..eee5c743959 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -21564,19 +21564,21 @@ vl_api_session_rules_details_t_handler (vl_api_session_rules_details_t * mp) { print (vam->ofp, "appns %u tp %u scope %d %U/%d %d %U/%d %d action: %d tag: %s", - mp->appns_index, mp->transport_proto, mp->scope, - format_ip4_address, &mp->lcl_ip, mp->lcl_plen, mp->lcl_port, - format_ip4_address, &mp->rmt_ip, mp->rmt_plen, mp->rmt_port, - mp->action_index, mp->tag); + clib_net_to_host_u32 (mp->appns_index), mp->transport_proto, + mp->scope, format_ip4_address, &mp->lcl_ip, mp->lcl_plen, + clib_net_to_host_u16 (mp->lcl_port), format_ip4_address, + &mp->rmt_ip, mp->rmt_plen, clib_net_to_host_u16 (mp->rmt_port), + clib_net_to_host_u32 (mp->action_index), mp->tag); } else { print (vam->ofp, "appns %u tp %u scope %d %U/%d %d %U/%d %d action: %d tag: %s", - mp->appns_index, mp->transport_proto, mp->scope, - format_ip6_address, &mp->lcl_ip, mp->lcl_plen, mp->lcl_port, - format_ip6_address, &mp->rmt_ip, mp->rmt_plen, mp->rmt_port, - mp->action_index, mp->tag); + clib_net_to_host_u32 (mp->appns_index), mp->transport_proto, + mp->scope, format_ip6_address, &mp->lcl_ip, mp->lcl_plen, + clib_net_to_host_u16 (mp->lcl_port), format_ip6_address, + &mp->rmt_ip, mp->rmt_plen, clib_net_to_host_u16 (mp->rmt_port), + clib_net_to_host_u32 (mp->action_index), mp->tag); } }