Releases: nulldotblack/wintun
Releases · nulldotblack/wintun
v0.5.1
What's Changed
- fix: use
ConvertInterfaceLuidToIndexto obtain the index by @thomaseizinger in #27 - Release v0.5.1 by @TroyNeubauer in #28
New Contributors
- @thomaseizinger made their first contribution in #27
Full Changelog: v0.5.0...v0.5.1
v0.5.0
What's Changed
- docs: correct "between min and min" to "between min and max" by @ReactorScram in #22
- Upgrade to windows-sys crate by @ssrlive in #20
Full Changelog: v0.4.0...v0.5.0
v0.4.0
Added
Adapter::get_mtu,set_dns_servers, andAdapter::get_active_network_interface_gateways: #13Error::ShuttingDown: #14
Breaking Changes
- Adding the
ShuttingDownvariant towintun::Errorbreaks exhastive matches on previous versions.wintun::Erroris now marked#[non_exhaustive]to make future additions backwards compatable
v0.3.1
Added
- Support for non 32bit x86 and arm targets in all three examples
Updated
- Adapter docs
v0.3.0
Added
- udp-echo example which mirrors packets via the tun interface
Adapter::get_name,Adapter::set_name, andAdapter::get_guidAdapter::set_addressAdapter::set_gateway,Adapter::set_netmask, orAdapter::set_network_addresses_tupleto set all three at once- Easily configure adapter address, netmask, and gateway properties to more easily control how it interacts with the Windows networking stack
- And
Adapter::get_addresses,Adapter::get_gateways,Adapter::get_netmask_of_addressto read this state
Breaking Changes
- Renamed
enum ApiError->enum Errorand added more variants.- All functions returning
wintun::Resultare effected.
- All functions returning
- Removed
pool: &strparameter fromAdapter::createas this was removed from the wintun c library - Changed return type of
Session::get_read_wait_eventfromResult<winnt::HANDLE, ()>toResult<windows::Win32::HANDLE, wintun::Error>
Plus internal refactoring and cleanup by @ssrlive in #7. Thanks!
v0.2.1
Fix typo in readme
v0.2.0
Added support for wintun 0.14.
Breaking Changes
- Wintun driver versions before
0.14are no longer support due to beraking
changes in the C API Adapter::createreturns aResult<Adapter, ...>instead of aResult<CreateData, ...>.
This was done because the underlying Wintun function was changed to only return an adapter handleAdapter::createthe pool parameter was removed because it was also removed from the C functionAdapter::deletetakes no parameters and returns aResult<(), ()>.
Theforce_close_sessionsparameter was removed because it was removed from the
C function. Same for the bool inside the Ok(..) variantAdapter::createandAdapter::openreturnArc<Adapter>instead ofAdapterget_running_driver_versionnow returns a proper Result<Version, ()>.
Added
reset_loggerfunction to disable logging after a logger has been set.
v0.1.5
Uploaded readme to crates.io
v0.1.4
Added panic_on_unsent_packets feature flag
v0.1.3
Updated cargo metadata to work on docs.rs