github.com/mdlayher/netlink v1.8.0 changed the return of
nlenc.NativeEndian() such that comparing it against encoding.BigEndian
or encoding.LittleEndian does not work as expected.
Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
This will not marshal the following attributes when empty:
- Local (was already ignored)
- Broadcast
- Anycast
- Multicast
Fixes: #73
Signed-off-by: Jeroen Simonetti <jeroen@simonetti.nl>
To prevent having to maintain byte slices for both endian types
in our tests, we skip tests when running on big-endian systems.
Signed-off-by: Jeroen Simonetti <jeroen@simonetti.nl>
* Basic RouteService
* Netlink header flag name changed in netlink lib
* Add fallthrough for RTM_GETROUTE and RTM_DELROUTE message parsing
* RouteService tests
* Update conn_test to use new netlink header flag names
* Fix off-by-one bug in AddressMessage.UnmarshalBinary()
* Update address test for off-by-one bug in AddressMessage.UnmarshalBinary()
* Fix case statement in messageUnmarshall