From: Philippe Guibert Date: Tue, 19 Jun 2018 12:54:59 +0000 (+0200) Subject: zebra: add show pbr iptable dscp information X-Git-Tag: frr-5.0.1~2^2~10 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ccf48116200c8406b73f84372b54504c5eebf63b;p=matthieu%2Ffrr.git zebra: add show pbr iptable dscp information The iptable configured with dscp displays the dscp value configured. Signed-off-by: Philippe Guibert --- diff --git a/zebra/zebra_pbr.c b/zebra/zebra_pbr.c index 2e232f4db1..ea103f9b7b 100644 --- a/zebra/zebra_pbr.c +++ b/zebra/zebra_pbr.c @@ -1081,6 +1081,11 @@ static int zebra_pbr_show_iptable_walkcb(struct hash_backet *backet, void *arg) vty_out(vty, "\t tcpflags [%s/%s]\n", tcp_flag_str, tcp_flag_mask_str); } + if (iptable->filter_bm & (MATCH_DSCP_SET | MATCH_DSCP_INVERSE_SET)) { + vty_out(vty, "\t dscp %s %d\n", + iptable->filter_bm & MATCH_DSCP_INVERSE_SET ? + "not" : "", iptable->dscp_value); + } ret = hook_call(zebra_pbr_iptable_wrap_script_get_stat, zns, iptable, &pkts, &bytes); if (ret && pkts > 0)