On 10/8/20 11:13 PM, Simon Matter wrote: >> On 10/8/2020 7:12 PM, Simon Matter wrote: >>>> On 10/8/20 3:19 AM, Simon Matter wrote: >>>>> Hi, >>>>> >>>>> It happened recently to me when moving a firewall to a new location... >>>>> >>>>> Before moving I adapted VLAN config and Shorewall configuration. The >>>>> TC >>>>> config was blindly modified by me to use 'gbit' units. >>>>> >>>>> In the new location nothing seemed to work - you can think of headless >>>>> firewall and headless admin - and I had a hard time to find out that >>>>> changing the TC config from 'mbit' to 'gbit' didn't work. :( >>>>> >>>>> Attached patch against 5.2.8 is my proposal to add support for >>>>> g,gb,gbit >>>>> and gbps. >>>>> >>>>> From what I saw on my systems is that not all 'tc' versions support >>>>> 'gbit' >>>>> but AFAIK Shorewall always converts the units to 'kbit' for >>>>> compatibility. >>>>> >>>>> Am I right assuming so? >>>>> >>>>> As always, feedback an testing is appreciated. >>>>> >>>> >>>> Thanks, Simon. >>>> >>>> Note that in the Shorewall/code git repository >>>> (https://gitlab.com/shorewall/code), there are no .annotabed sample >>>> files. Those files are created during the build process by combining >>>> each plain config file with its associated manpage. >>>> >>>> Also, the manpages are generated from .xml files; so when modifying a >>>> manpage, the patch must be against the XML file and not the resulting >>>> manpage. >>>> >>>> So you only need to provide patches for Tc.pm, tcinterfaces.xml, >>>> tcdevices.xml and tcclasses.xml. >>> >>> Thanks Tom, now that you say it I remember there were XLM doc files :-) >>> >>> I'll redo the patch tomorrow. >>> >> >> The clone command for the code repository is at (1). >> >> Sending the patches formatted with 'git format-patch' is best but 'git >> diff' will also do it! :) > > Since I'm not really a developer and never used git please allow me to > send a pure diff against master. > > @Tom, hope I got it right with the XLM files this time. >
Looks good, Thanks, Simon! -Tom -- Tom Eastep \ Q: What do you get when you cross a mobster Shoreline, \ with an international standard? Washington, USA \ A: Someone who makes you an offer you http://shorewall.org \ can't understand \________________________________________
OpenPGP_0x96E6B3F2423A4D10.asc
Description: application/pgp-keys
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Shorewall-devel mailing list Shorewall-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-devel