Skip to content

Tags: danwinship/knftables

Tags

v0.0.13

Add comments about parsing json numbers

v0.0.12

fix go.mod

v0.0.11

Convert base chain priority to numeric form, if possible

To work around older nft that don't allow the symbolic forms in all
contexts.

v0.0.10

Rename Optional() to PtrTo()

"Optional" works OK semantically as a name for Comment fields, but
seems weirder with some other fields (especially the base chain
Type/Hook/Priority fields).

v0.0.9

update README

v0.0.8

Fix List* errors

v0.0.7

Replace AddRule with a Concat function

AddRule behaved weirdly with respect to comments, and didn't help when
you needed to Insert or Replace instead of Add, or if you needed to
Add with an Index or Handle. So remove it and provide a Concat method
for assembling the Rule field inside a Rule object instead.

(Also, make Concat support additional data types, so callers don't
need to do `fmt.Sprintf("%d", port)` etc themselves.)