Releases: vishvananda/netlink
v1.3.1
What's Changed
- Fix deprecated comments by @champtar in #1011
- Fix: Do not crash when enumerating tc filters with unknown actionType by @Matus-p in #1013
- Fix SetSendTimeout/SetReceiveTimeout by @robmry in #1012
- capture and return errors in ConntrackDeleteFilters by @aroradaman in #1014
- Fix FouList attribute body truncated error with kernel 5.2+ by @chanfung032 in #1017
- Preserve results when NLM_F_DUMP_INTR is set by @robmry in #1018
- netkit: Add support for IFLA_NETKIT_SCRUB and IFLA_NETKIT_PEER_SCRUB by @jrife in #1022
- fix CI failed Incidental in TestRuleListFiltered by @wangling94 in #1043
- disable broadcast if broadcast is set to net.IPv4zero by @WeidiDeng in #1037
- .github/workflows: Bump CI Go version to v1.22 by @dylandreimerink in #1049
- TC FLOWER enrich match field and action about vlan by @wangling94 in #1045
- link_linux: Add deserialization of
IFF_RUNNING
flag by @dylandreimerink in #1038 - Preserve results when NLM_F_DUMP_INTR is set by @adrianmoisey in #1050
- Add IFLA_PARENT_DEV_NAME / IFLA_PARENT_DEV_BUS_NAME to links by @akerouanton in #1051
- conntrack: prevent potential memory leak by @aroradaman in #1058
- Fix parsing 4-bytes attribute by @Asphaltt in #1034
- fix: Use correct offset for unix socket diagnosis by @srebhan in #1061
- vxlan: Fix parseVxlanData for source port range by @borkmann in #1062
- netkit: Allow setting MAC address in L2 mode by @jrife in #1063
- Add support for MTU Lock by @trozet in #1067
- pedit: Fix EncodeActions to add TcGen for pedit action by @chent1996 in #1065
- go.mod: github.com/vishvananda/netns v0.0.5 by @thaJeztah in #1056
- Add
OifIndex
option forRouteGetWithOptions
by @dylandreimerink in #1060 - Support TC "sample" filter action by @lorenz in #1042
- Add support for XFRMA_SA_DIR and XFRMA_SA_PCPU attributes for XFRM by @ChinmayaSharma-hue in #1044
- Add support for ARP/ND Timestamps when retriving neighbors by @jlamanna in #1039
New Contributors
- @Matus-p made their first contribution in #1013
- @robmry made their first contribution in #1012
- @chanfung032 made their first contribution in #1017
- @jrife made their first contribution in #1022
- @wangling94 made their first contribution in #1043
- @WeidiDeng made their first contribution in #1037
- @dylandreimerink made their first contribution in #1049
- @adrianmoisey made their first contribution in #1050
- @akerouanton made their first contribution in #1051
- @Asphaltt made their first contribution in #1034
- @trozet made their first contribution in #1067
- @ChinmayaSharma-hue made their first contribution in #1044
- @jlamanna made their first contribution in #1039
Full Changelog: v1.3.0...v1.3.1
What's Changed
- Fix deprecated comments by @champtar in #1011
- Fix: Do not crash when enumerating tc filters with unknown actionType by @Matus-p in #1013
- Fix SetSendTimeout/SetReceiveTimeout by @robmry in #1012
- capture and return errors in ConntrackDeleteFilters by @aroradaman in #1014
- Fix FouList attribute body truncated error with kernel 5.2+ by @chanfung032 in #1017
- Preserve results when NLM_F_DUMP_INTR is set by @robmry in #1018
- netkit: Add support for IFLA_NETKIT_SCRUB and IFLA_NETKIT_PEER_SCRUB by @jrife in #1022
- fix CI failed Incidental in TestRuleListFiltered by @wangling94 in #1043
- disable broadcast if broadcast is set to net.IPv4zero by @WeidiDeng in #1037
- .github/workflows: Bump CI Go version to v1.22 by @dylandreimerink in #1049
- TC FLOWER enrich match field and action about vlan by @wangling94 in #1045
- link_linux: Add deserialization of
IFF_RUNNING
flag by @dylandreimerink in #1038 - Preserve results when NLM_F_DUMP_INTR is set by @adrianmoisey in #1050
- Add IFLA_PARENT_DEV_NAME / IFLA_PARENT_DEV_BUS_NAME to links by @akerouanton in #1051
- conntrack: prevent potential memory leak by @aroradaman in #1058
- Fix parsing 4-bytes attribute by @Asphaltt in #1034
- fix: Use correct offset for unix socket diagnosis by @srebhan in #1061
- vxlan: Fix parseVxlanData for source port range by @borkmann in #1062
- netkit: Allow setting MAC address in L2 mode by @jrife in #1063
- Add support for MTU Lock by @trozet in #1067
- pedit: Fix EncodeActions to add TcGen for pedit action by @chent1996 in #1065
- go.mod: github.com/vishvananda/netns v0.0.5 by @thaJeztah in #1056
- Add
OifIndex
option forRouteGetWithOptions
by @dylandreimerink in #1060 - Support TC "sample" filter action by @lorenz in #1042
- Add support for XFRMA_SA_DIR and XFRMA_SA_PCPU attributes for XFRM by @ChinmayaSharma-hue in #1044
- Add support for ARP/ND Timestamps when retriving neighbors by @jlamanna in #1039
- Add support for missing TUN/TAP parameters from Linux kernel by @vanytsvetkov in #1066
- add SRv6 Encaps support for END.DT4 by @gunofmoon in #944
- fix: add missing CLOEXEC flag by @smira in #1023
- tests: Improve address unit test infrastructure by @yunginnanet in #1047
- addr_linux: don't require label to be prefixed with interface name by @julianwiedmann in #1072
- feat: add IFLA_INET6_ADDR_GEN_MODE support by @zlaval in #1073
- geneve: Support setting/getting source port range by @borkmann in #1077
- feat: add support for RtoMin lock by @gongguan in #1076
- veth: allow configuring peer attributes beyond namespace and address by @gwenya in #1079
- qdisc: fix wrong type info of tc_sfq_qopt by @lwintermelon in #1083
- Mimic
ipset
C code for determining correct default ipset revision forhash:ip{port,net,etc}
by @bleggett in #1031 - bugfix: parse ipv4 src/dst error by @Charlie17Li in #1015
- rdma: support rdma resource and statistic for monitoring by @BSWANG in #970
- feat: add vlanid - tunnelid mapping support by @zlaval in #1074
- add classid and port range support for flower filter by @lwintermelon in #1082
- add support for flags and qos maps of vlan links by @gwenya in #1078
New Contributors
- @Matus-p made their first contribution in #1013
- @robmry made their first contribution in #1012
- @chanfung032 made their first contribution in #1017
- @jrife made their first contribution in #1022
- @wangling94 made their first contribution in #1043
- @WeidiDeng made their first contribution in ht...
v1.3.0
v1.2.1
v1.2.1-beta.2
Update
This new version fixes a bug in older kernels that can cause a segfault
What's Changed
New Contributors
Full Changelog: v1.2.0-beta...v1.2.1-beta.2
v1.2.0-beta
Beta Release for 1.2.0
There have been a number of fixes and additions since 1.1.0. This is a beta release so folks have an opportunity to test to make sure we haven't inadvertently made any breaking changes to the library.
What's Changed
- [non linux: netlink/xdp] Add dummy function for LinkSetXdpFdWithFlags by @belyalov in #516
- Save XDP attach mode info into LinkXdp. by @belyalov in #515
- Service curves fix by @fbegyn in #513
- Use IfaCacheinfo and IFA_* consts from golang.org/x/sys/unix by @tklauser in #514
- Fix parseIpTun to handle empty flow based flag by @vishvananda in #512
- rule, add TOS by @amitn in #521
- check payload of the NLMSG_DONE nlmsg by @Jianlin-lv in #520
- rule: add support for dport/sport by @chendotjs in #511
- Correct value of SizeofXfrmUsersaFlush by @tklauser in #523
- Add BridgeSetVlanFiltering to change VlanFiltering on an existing bridge by @stffabi in #524
- Skip NetNsId tests unless root by @RealFatCat in #526
- Add LinkIndex to Addr struct by @brb in #543
- Configure numrxqueues/numtxqueues on veth peer (fixes #536) by @alexforster in #540
- Add ability to list rules in a filtered manner by @christarazi in #538
- Add LinkModify support by @gollub in #541
- Add support for getting all RDMA devices in the system by @adrianchiris in #533
- Fix parsing of IFLA_IPTUN_COLLECT_METADATA by @lebauce in #530
- make tuntap pollable by @rschmied in #525
- Introduce RouteGetWithOptions that allows to modify the RouteGet by @amitn in #522
- Added wireguard link type by @xaionaro in #464
- Add filtering in NeighListExecute by @RealFatCat in #529
- conntrack filter by protocol and port by @aojea in #544
- Fix incompatible interface to linux implement by @whywaita in #557
- Set default values for link attributes by @lebauce in #562
- Add additional fields to link.Ip6tnl by @corny in #563
- go.mod: update dependencies by @thaJeztah in #555
- travis: add go 1.13, 1.14, and drop go 1.10, 1.11 by @thaJeztah in #556
- rule_linux: convert IIFNAME and OIFNAME to null terminated string by @Cordius in #559
- Add support for configuring bridge ageing time by @twelho in #554
- tuntap: use the owner / group parameters by @maiqueb in #558
- Fixes Issue #509 more generically by @vishvananda in #549
- Allow placing veth peer into a namespace by @const86 in #535
- Fix NewHtbClass by @chenchun in #561
- Add DestPort to TunnelKeyAction & Fix parsing of TCA_TUNNEL_KEY_ENC_IPV6_SRC & TCA_TUNNEL_KEY_ENC_IPV6_DST by @tanbangcheng in #552
- Add SocketDiagTCPInfo with some constants and structs to get tcp_info… by @RealFatCat in #534
- Add LinkSetMacvlanMode by @jcaamano in #527
- Add partial support for ipset by @corny in #387
- added support for SFQ qdiscs by @imilchev in #570
- VF stats Deserialization method and struct added. by @killianmuldoon in #578
- Add whole route metrics for netlink by @bianze in #569
- Add TxBytes to VFStats collection by @killianmuldoon in #586
- Allows direct usage of String() method by @riccardomanfrin in #594
- add support for CAN by @Sauci in #593
- RouteGetWithOptions: Add source address option by @taktv6 in #591
- Add devlink command to query common devlink port attributes by @paravmellanox in #546
- Add Geneve link support by @shassard in #567
- SocketDiagTCPInfo: Add support for BBR information by @taktv6 in #572
- Adding support for RTA_VIA by @fach in #585
- Fix Geneve remote ipv4 attr by @ahmetozer in #600
- Fixed endianity problem with Geneve tunnel VNI by @mlitvin in #582
- Add support for addition FQ Codel knobs by @sargun in #603
- Allow building on non-linux machine by @mlitvin in #604
- Support mask for XfrmState's output mark by @pchaigno in #602
- Improve attribute parsing by @corny in #606
- Allow to set/get socket timeout option for default handle by @ArthurChiao in #614
- Adds String methods to several bond params and fixes Packers -> Packets by @riccardomanfrin in #598
- support u32 link option by @zhiyuan0x in #615
- Properly handle uint64 for HTB class rate/ceil by @imilchev in #616
- Add ip route append by @yaocw2020 in #619
- Fix non-linux build by @joestringer in #625
- netlink: xfrm, add optional field to XfrmPolicyTmpl by @joestringer in #626
- Make IPSet actually support IPs, and fix protocol errors for newer kernels by @eh-steve in #617
- New RouteAddEcmp() call by @mccv1r0 in #621
- Remove "=======" characters left over from merge by @mccv1r0 in #631
- Update travis and fix formatting errors by @vishvananda in #646
- Add route get iif option by @hmahmood in #623
- Add ipvtap link support by @RichardWeiYang in #607
- devlink port add, delete, function get/set attributes by @paravmellanox in #632
- Provide the allmulticast option as own link attribute by @bjosv in #635
- Fix another panic case of #509. by @Dongdong-Wang in #647
- conntrack: allow to filter by subnet by @aojea in #627
- Adds vrf slave link info_slave_data parse by @riccardomanfrin in #643
- Don't re-initialize package level var native to fix data race by @tklauser in #637
- Don't re-initialize package level var native in
(*Handle).RouteGetWithOptions
by @tklauser in #648 - Remove trailing null char from string in devlink by @adrianchiris in #651
- Add support for "extern_learn" like in "ip-neigh" by @mitinarseny in #638
- Ability to set multicast attribute on a link by @dennisafa in #653
- Consistent error handling across *SubscribeAt functions by @milan-zededa in #654
- feat: support diag TCP with only socket returns by @oif in #655
- Correct panic when IPv4 lacks IFA_ADDRESS address by @jswantek in #665
- [lwtunnel bpf] add support for encap BPF by @bersoare in #645
- Expose AFI on routes by @taktv6 in #652
- Add PHYS_SWITCH_ID attribute to LinkAttrs by @dennisafa in #660
- fix size required for a uint64 to stop panic in RuleList (TunID) by @sigmonsays in #673
- fix the travis badge by @vishvananda in #694
- one more fix by @vishvananda in #696
- add support for bareudp link type by @bersoare in #657
- Add basic flower support by @tanbangcheng in #610
- Parse and expose conntrack timestamps by @milan-zededa in #659
- Provide han...
v1.1.0
Over 100 bug fixes and features were merged since the v1.0.0 release.
Some Highlights:
Go modules now supported
Support for new features in more recent kernels
Extended support for filters, actions, and tunnels
Support for bonds, ipoib, rdma
More features for vfs
We have been careful to preserve the existing functionality from release v1.0.0. There is one minor change to AddrAdd where it will no longer automatically set a broadcast address when you set a /31 or /32 address
If you notice any differences in behavior, please file an issue