diff options
| author | G. Paul Ziemba <paulz@labn.net> | 2023-08-01 06:49:38 -0700 | 
|---|---|---|
| committer | G. Paul Ziemba <paulz@labn.net> | 2023-08-08 10:18:22 -0700 | 
| commit | 5572f45d51c587691384a9ec3a195e6a01540930 (patch) | |
| tree | 2f4eb5f788a0194b8ecf49fb5119df25817d5385 /zebra/zebra_pbr.c | |
| parent | 09262f1b720ff22631e34222321099187bfd37d8 (diff) | |
pbrd: PBR_FILTER_DSFIELD -> {PBR_FILTER_DSCP,PBR_FILTER_ECN}
    DSCP and ECN matching are configured independently. Maintain
    these values in independent fields in pbrd, zapi, and zebra.
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
Diffstat (limited to 'zebra/zebra_pbr.c')
| -rw-r--r-- | zebra/zebra_pbr.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_pbr.c b/zebra/zebra_pbr.c index eac93dca41..7560071e59 100644 --- a/zebra/zebra_pbr.c +++ b/zebra/zebra_pbr.c @@ -522,12 +522,12 @@ void zebra_pbr_show_rule_unit(struct zebra_pbr_rule *rule, struct vty *vty)  	if (prule->filter.filter_bm & PBR_FILTER_DST_PORT)  		vty_out(vty, "  DST Port Match: %u\n", prule->filter.dst_port); -	if (prule->filter.filter_bm & PBR_FILTER_DSFIELD) { +	if (prule->filter.filter_bm & PBR_FILTER_DSCP)  		vty_out(vty, "  DSCP Match: %u\n",  			(prule->filter.dsfield & PBR_DSFIELD_DSCP) >> 2); +	if (prule->filter.filter_bm & PBR_FILTER_ECN)  		vty_out(vty, "  ECN Match: %u\n",  			prule->filter.dsfield & PBR_DSFIELD_ECN); -	}  	if (prule->filter.filter_bm & PBR_FILTER_FWMARK)  		vty_out(vty, "  MARK Match: %u\n", prule->filter.fwmark);  | 
