diff options
| author | Nataliia Solomko <natalirs1985@gmail.com> | 2026-06-30 14:46:23 +0300 |
|---|---|---|
| committer | Nataliia Solomko <natalirs1985@gmail.com> | 2026-07-28 14:58:05 +0300 |
| commit | a726455aadcafd27e489314a3a1630919296cbee (patch) | |
| tree | eda96310069e860468025d828b998f5be97392a9 /scripts/cli | |
| parent | b81e435210f499b225b5d27fd16c370c0095da3a (diff) | |
| download | vyos-1x-a726455aadcafd27e489314a3a1630919296cbee.tar.gz vyos-1x-a726455aadcafd27e489314a3a1630919296cbee.zip | |
qos: T8996: Implement set-dscp packet remarking for shaper policy
The set-dscp option was defined in XML but never implemented in
Python — no tc commands were generated to rewrite DSCP on egress.
Add tc pedit actions to shaper filter commands. The pedit target
is chosen per-match: IPv4 uses "ip dsfield", IPv6 uses
"ip6 traffic_class". Ether matches with protocol ip or ipv6 also
get the corresponding pedit; other non-IP match types skip pedit
to avoid corrupting packets like ARP. The retain 0xfc mask
preserves ECN bits. For IPv4, a csum ip4h action recalculates
the header checksum after pedit. For the default class, separate
catch-all filters (prio 255/256) are added per protocol.
Diffstat (limited to 'scripts/cli')
0 files changed, 0 insertions, 0 deletions
