Skip to content

Commit

Permalink
Firewall: Automation: Filter - add match prio for #8143
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Dec 28, 2024
1 parent 92789c5 commit c1e44bc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,15 @@
</field>
<field>
<type>header</type>
<label>Packet mangling</label>
<label>Priority</label>
<collapse>true</collapse>
</field>
<field>
<id>rule.prio</id>
<label>Match priority</label>
<type>dropdown</type>
<help>Only match packets which have the given queueing priority assigned.</help>
</field>
<field>
<id>rule.set-prio</id>
<label>Set priority</label>
Expand Down
13 changes: 13 additions & 0 deletions src/opnsense/mvc/app/models/OPNsense/Firewall/Filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,19 @@
<adaptiveend type="IntegerField">
<MinimumValue>0</MinimumValue>
</adaptiveend>
<prio type="OptionField">
<BlankDesc>Any priority</BlankDesc>
<OptionValues>
<opt1 value="1">Background (1, lowest)</opt1>
<opt0 value="0">Best Effort (0, default)</opt0>
<opt2 value="2">Excellent Effort (2)</opt2>
<opt3 value="3">Critical Applications (3)</opt3>
<opt4 value="4">Video (4)</opt4>
<opt5 value="5">Voice (5)</opt5>
<opt6 value="6">Internetwork Control (6)</opt6>
<opt7 value="7">Network Control (7, highest)</opt7>
</OptionValues>
</prio>
<set-prio type="OptionField">
<BlankDesc>Keep current priority</BlankDesc>
<OptionValues>
Expand Down

0 comments on commit c1e44bc

Please sign in to comment.