Michael Stapelberg
8541ced569
Merge pull request #64 from Minaru/set_ct_values
...
Set ct values
2019-10-19 08:50:26 +02:00
Maxime Demode
e9d8d59ec2
[test] Add Ct set test.
2019-10-17 18:20:30 +02:00
Michael Stapelberg
2e3a74b3f8
Merge pull request #65 from Minaru/default_policy_fix
...
Default policy fix
2019-10-16 17:12:07 +02:00
Maxime Demode
65889cb04c
[test] Make changes in test file to reflect Chain Policy field changes.
2019-10-16 11:44:15 +02:00
Maxime Demode
9c2cb3eeea
[chain] Make struct and function code change to use *ChainPolicy field.
2019-10-16 11:43:47 +02:00
Maxime Demode
912284322e
[chain] Add ChainPolicy type and its possible values.
2019-10-16 11:43:00 +02:00
Maxime Demode
71337b220c
[expr] Add SourceRegister field and modify marshal function to work with it.
2019-10-15 18:31:07 +02:00
Maxime Demode
3c7d959797
[expr] Replace Key type in Ct struct by CtKey.
2019-10-15 18:02:12 +02:00
Maxime Demode
29d7aa173f
[expr] Create CtKey type and add const values.
2019-10-15 18:01:31 +02:00
Serguei Bezverkhi
5d14089d2e
Adding to nat expression additional parameters ( #59 )
...
* Change in dnat logic to cover all combinations
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
* Add parameter to cover all possible nat combinations
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-09-06 08:28:27 +02:00
Serguei Bezverkhi
a0a4b3333d
Get sets fix ( #58 )
...
* lookup dest reg check fix
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
* Fix GetSets to detect Verdict Data type
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-08-31 09:36:43 +02:00
Serguei Bezverkhi
4b2264477a
lookup dest reg check fix ( #57 )
...
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-08-31 09:36:20 +02:00
Serguei Bezverkhi
2d823533fe
Add Vmap support ( #56 )
2019-08-28 08:51:13 +02:00
Serguei Bezverkhi
1ad7112fd7
Add support for maps ( #55 )
2019-08-27 17:52:20 +02:00
Serguei Bezverkhi
85a78b5285
Adding Fib expression and unit tests ( #54 )
2019-08-27 08:49:06 +02:00
Serguei Bezverkhi
d514535a0c
Reject expression and Unit tests ( #53 )
2019-08-26 09:57:52 +02:00
Serguei Bezverkhi
ec0390b058
Extend Masq support and add unit testing ( #52 )
2019-08-25 23:43:47 +02:00
Serguei Bezverkhi
6925991d82
Meta SREG and DREG ( #51 )
...
* meta requires to use source and destination registers
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-08-19 23:36:36 +02:00
Serguei Bezverkhi
5cb71bfba1
rule replace ( #50 )
...
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-08-19 23:35:24 +02:00
Serguei Bezverkhi
0b3d8b56f6
Implementation of UserData struct encode/decode ( #49 )
2019-08-15 08:25:30 +02:00
Serguei Bezverkhi
579fe47a77
Refactor decoding set elements ( #47 )
2019-08-13 22:19:49 +02:00
Serguei Bezverkhi
1435f3a62c
Fix non populated Table Family field ( #45 )
...
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-08-12 08:51:06 +02:00
Serguei Bezverkhi
2f48b7d8d8
Additional change to Element to support set intervals ( #44 )
2019-08-09 19:36:23 +02:00
Serguei Bezverkhi
26de8f0eaa
add interval flag support to set ( #43 )
...
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-08-08 07:45:20 +02:00
Serguei Bezverkhi
9907ca3831
Add log expression and test ( #42 )
...
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-08-01 12:41:37 -07:00
Serguei Bezverkhi
72bd788b11
Fixes #39 ( #40 )
...
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-07-23 05:12:57 +02:00
Michael Stapelberg
c123f7dc7d
nftables_test: add test for issue #26
2019-07-20 18:35:32 +02:00
Michael Stapelberg
37c3f0e9eb
set: desc size carries len(vals), not KeyType.Bytes
...
fixes #26
2019-07-20 18:35:32 +02:00
Michael Stapelberg
0b03b9847f
chain: add policy attribute
2019-07-20 18:35:32 +02:00
Serguei Bezverkhi
7895e345f5
Add Connection tracking expression and test ( #38 )
...
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-07-20 13:20:42 +02:00
Serguei Bezverkhi
635111f591
Adding DelRule and unit tests ( #36 )
...
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-07-14 14:49:03 +02:00
Serguei Bezverkhi
d6b2000800
Add func to Delete a chain ( #35 )
2019-07-11 14:30:38 +02:00
Serguei Bezverkhi
b62e86457d
Change logic of searching for rule's ID ( #34 )
...
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-07-08 22:46:23 +02:00
Serguei Bezverkhi
7c0b8e78d4
Add support for rule's handle, position and id ( #33 )
2019-07-08 18:01:35 +02:00
Serguei Bezverkhi
7a68526274
tproxy expression support and test ( #32 )
...
Add support for tproxy expression
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-06-30 01:06:32 +02:00
Serguei Bezverkhi
d22d8d0641
Adding unit test for chain add ( #29 )
...
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-06-26 16:53:43 +02:00
Serguei Bezverkhi
76dc827b18
Add logic for regular chains ( #28 )
...
* Add logic for regular chains
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2019-06-24 18:00:28 +02:00
jniewt
900c47abbb
List chains ( #25 )
2019-06-19 13:14:23 +02:00
Serguei Bezverkhi
8d26daf060
Implement range expression ( #22 )
...
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
fixes #19
2019-06-05 13:15:05 +02:00
Michael Stapelberg
8cccfeed7c
add return verdict test
...
fixes #18
2019-05-24 03:00:57 +02:00
Michael Stapelberg
70f367a546
verdict: add Chain (+test)
...
related to #18
2019-05-24 02:56:43 +02:00
Michael Stapelberg
d3930927e4
declare a Go module
2019-05-24 02:21:35 +02:00
Michael Stapelberg
c5bb71b2cf
implement redir expression (+test)
...
fixes #17
2019-05-17 13:57:31 +02:00
Ryan Whelan
b0a2c473e0
List tables ( #16 )
...
list tables function
2019-05-13 14:13:23 +02:00
Ryan Whelan
7bac3e3135
Restructure code base into smaller files ( #15 )
...
* Restrcture code base into smaller files
* Package level doc string
* Move ExprsFromMsg back from expr sub-module
* gofmt
2019-05-03 23:54:09 +02:00
Ryan Whelan
07c974e364
fix: Typo in unmarshal on Cmp struct ( #14 )
2019-04-30 17:07:43 +02:00
Matt Layher
a975e10ef9
nftables: update for package netlink constant renames ( #13 )
2019-03-02 17:04:15 +01:00
Tom D
b8b6574812
Implement GetRule for Immediate, Verdict, and Lookup expressions ( #11 )
2019-02-18 13:01:32 +01:00
Tom D
ca263a814b
Add support for inverted set lookups. ( #10 )
2019-02-13 10:06:43 +01:00
Michael Stapelberg
51ca8da884
Merge pull request #9 from twitchy-jsonp/master
...
Implement support for nftable sets.
2019-02-12 08:18:11 +01:00