Releases: nulldotblack/wintun
Releases · nulldotblack/wintun
v0.5.1
What's Changed
- fix: use
ConvertInterfaceLuidToIndex
to 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
ShuttingDown
variant towintun::Error
breaks exhastive matches on previous versions.wintun::Error
is 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_guid
Adapter::set_address
Adapter::set_gateway
,Adapter::set_netmask
, orAdapter::set_network_addresses_tuple
to 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_address
to read this state
Breaking Changes
- Renamed
enum ApiError
->enum Error
and added more variants.- All functions returning
wintun::Result
are effected.
- All functions returning
- Removed
pool: &str
parameter fromAdapter::create
as this was removed from the wintun c library - Changed return type of
Session::get_read_wait_event
fromResult<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.14
are no longer support due to beraking
changes in the C API Adapter::create
returns aResult<Adapter, ...>
instead of aResult<CreateData, ...>
.
This was done because the underlying Wintun function was changed to only return an adapter handleAdapter::create
the pool parameter was removed because it was also removed from the C functionAdapter::delete
takes no parameters and returns aResult<(), ()>
.
Theforce_close_sessions
parameter was removed because it was removed from the
C function. Same for the bool inside the Ok(..) variantAdapter::create
andAdapter::open
returnArc<Adapter>
instead ofAdapter
get_running_driver_version
now returns a proper Result<Version, ()>.
Added
reset_logger
function 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