SUN Haoyu
f070a40baa
Add new attributes to LinkAttributes with decoder. ( #153 )
...
Signed-off-by: Haoyu Sun <hasun@redhat.com>
2022-10-09 01:59:02 +02:00
Florian Lehner
a833fb5b68
add netlink/rule ( #139 )
...
* add netlink/rule
Signed-off-by: Florian Lehner <dev@der-flo.net>
* Add some fuzzing corpus
Signed-off-by: Jeroen Simonetti <jeroen@simonetti.nl>
Co-authored-by: Jeroen Simonetti <jeroen@simonetti.nl>
2022-04-12 09:00:30 +02:00
Matt Layher
3f746d924b
rtnetlink: support for RTA_PREF ( #137 )
...
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2022-03-13 18:00:51 +01:00
Matt Layher
93da338047
rtnetlink: Go 1.17 build tags, fix example build tags ( #128 )
...
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2021-10-22 21:23:32 +02:00
Francis Begyn
97e6deb670
Patch LinkXDP data types and encoding behavior ( #113 )
...
LinkXDP was using uint32 datatypes for the file desriptor fields, but this
makes it so you're unable to clear or send correct netlink message. It was also
always encoding all fields, while the rtnetlink API was not expecting this.
don't encode XDP_ATTACHED and XDP_PROG_ID fields: https://elixir.bootlin.com/linux/v5.10.15/source/net/core/rtnetlink.c#L2894
use int32 for FD and EXPECTED_FD fields: https://elixir.bootlin.com/linux/v5.10.15/source/net/core/rtnetlink.c#L1924
The PR patches the fields and encoding behavior to resolve this conflict.
Signed-off-by: Francis Begyn <francis@begyn.be>
2021-03-07 21:38:07 +01:00
Matt Layher
8d122574c7
rtnetlink: add RouteMetrics.InitRwnd field ( #104 )
...
Signed-off-by: Matt Layher <mlayher@fastly.com>
2021-01-22 17:32:28 +01:00
Matt Layher
beb2a7965b
internal/unix: fix Mac build
...
Signed-off-by: Matt Layher <mlayher@fastly.com>
2020-11-18 15:30:48 -05:00
Matt Layher
057ddd1f37
rtnetlink: implement MPLSNextHop encoding and decoding
...
Signed-off-by: Matt Layher <mlayher@fastly.com>
2020-11-18 15:26:31 -05:00
Florian Lehner
b76ef30e43
Add XDP encode/decoder ( #91 )
...
Signed-off-by: Lehner Florian <dev@der-flo.net>
2020-11-04 01:56:49 +01:00
Dave Josephsen
bae80799d8
rtnetlink: complete route multipath encoding and decoding logic
...
Signed-off-by: Dave Josephsen <djosephsen@fastly.com>
Signed-off-by: Matt Layher <mlayher@fastly.com>
2020-10-26 12:43:11 -04:00
Matt Layher
4e9cdead09
rtnetlink: add RouteMetrics nested attributes within RouteAttributes ( #81 )
...
Signed-off-by: Matt Layher <mlayher@fastly.com>
2020-10-02 16:52:24 +02:00
jeremiejig
d699427278
route: Implement support for RTA_MARK ( #79 )
...
* module: `go mod tidy`
Signed-off-by: Jeremiejig <me@jeremiejig.fr>
* route: Implement support for RTA_MARK
The RTA_MARK attribute allow to send get request with mark information;
it is useful when having multiple table selected by rule policy
matching on fwmark.
Signed-off-by: Jeremiejig <me@jeremiejig.fr>
2020-07-26 18:59:00 +02:00
Jeroen Simonetti
3b195764a9
Fix rtnl for macos ( #71 )
...
Signed-off-by: Jeroen Simonetti <jeroen@simonetti.nl>
2020-01-17 13:13:10 +01:00
Florian Lehner
d21b2cb70d
resolve GOOS dependency ( #63 )
...
* resolve GOOS dependency
Signed-off-by: Lehner Florian <dev@der-flo.net>
* exclude internal constants from linter
Signed-off-by: Lehner Florian <dev@der-flo.net>
2019-10-19 19:25:34 +02:00