Lennart Sorensen wrote:

> 
> After all tcclasses already supports arbitrary tos byte values, while
> tcrules only supports the 5 fixed tos values.

That is completely untrue. The TOS column can contain a
<numeric-value>[/<mask>] just as the tcclasses file can. The optional
<mask> is currently undocumentated, unfortunately.

> Adding a new column to
> the end of tcrules for dscp target matching should be fully backwards
> compatible with existing configs (even though having it next to TOS
> would have been nice, but not worth it).
> 
> dscp can either be the numerical value (0-32 I believe), or a diffserv
> name (CS0-CS7, BE, AF[1-4][1-3], EF).
> 
> Does this look acceptable?  Adding a mangle target for dscp is going to
> be a bit more work of course.
> 
> I did NOT test this patch.  I have a variant against 4.0.15 which I
> tested and it nicely creates rules in iptables.  It is almost the same
> though just varying due to the differences between 4.0 and the git tree.

The problem with patches like this that only worry about the code is
that they are incomplete.

- The patch doesn't update Shorewall/configfiles/tcrules
- The patch doesn't update manpages/shorewall-tcrules.xml
- The patch doesn't update manpages6/shorewall6-tcrules.xml
- The patch doesn't update docs/traffic_shaping.xml

So when I get a patch like this, I'm not very enthusiastic to merge it
right into my tree. Especially this one which largely duplicates a
function that is already available (given that the DSCP field is a
sub-field of the TOS byte).

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to