Releases: georg-jung/ArpLookup
Releases · georg-jung/ArpLookup
v2.0.3
Breaking Changes
- In version 1.x, when calling
LookuporLookupAsyncon Windows and no MAC address could be associated with the given IP adress (i.e. if the IP is not on the same subnet), aWin32ExceptionwithNativeErrorCode == 67(ERROR_BAD_NET_NAME) was thrown.- This was inconsistent with our docs, which state
<returns>The mac address if found, null otherwise.</returns>. - This was different then what the Linux version did, which sticks to what the docs say.
- For a method called
Lookup, that provides internals about a network that might change, it feels natural that "I did not find a result" is not a result that is exceptional. Rather, the return value is of typePhysicalAddress?and thus expresses "an address might be found". - As what was throwing before (and thus needed to be handled i.e. by
catch), returns null now (=> needs to be handled i.e. byif), this is a breaking change.
- This was inconsistent with our docs, which state
Upgrading
Change code that might be run on Windows and does something comparable to
try
{
var x = Arp.Lookup(IPAddress.Parse("128.0.0.1"));
// found
}
catch (Win32Exception ex)
when (ex.NativeErrorCode == 67)
{
// not found
}to something like
var x = Arp.Lookup(IPAddress.Parse("128.0.0.1"));
if (x == null)
{
// not found
}
else
{
// found
}Changes:
- d3f5194 Set version to '2.0'
- 9d32f2a Improve/clarify library description
- e486ad8 Return null on Windows if address could not be found [ #7 ]
- 6c69171 Format/markdownlint README.md
- cd2fbb8 remove code that was based on nikeee/wake-on-lan
- 0c2745f Merge branch 'release/v1.2'
- 9bc65f1 Set version to '1.3-alpha'
This list of changes was auto generated.
Add sync version of Lookup method
New Features
- Add sync version of lookup method (thanks Henrik Sozzi, @energywave! See #7)
- Support for C# 8 nullable reference types
Other
- Add more DocStrings
- Use NBGV
- Make builds deterministic
- Provide symbols/SourceLink
Also, improve repo structure, code style, use .editorconfig, code analysis.
v1.1.0
v1.0.0
Updates primarily to docs etc., declaring API as stable from now on.
Changes:
- da6ba1c Fix package properties, bump to 1.0.0
- 8e21386 Merge pull request #1 from georg-jung/dependabot/nuget/Microsoft.CodeAnalysis.FxCopAnalyzers-2.9.8
- 794f6d2 Bump Microsoft.CodeAnalysis.FxCopAnalyzers from 2.9.6 to 2.9.8
- d825018 Fix minor readme typos and stuff
- 7ad1552 Add information regarding supported platforms to readme
- c68bd4c Add more information to readme
- 46f1ef7 Add readme
This list of changes was auto generated.
v0.1.0
Changes:
- 6977e3e Add more package information to csproj
- 414500c Fix dont declare first version stable
- 5139b31 Add nuget packaging step in ci
- b571b72 Fix artifact filename in ci
- 22e3dd0 Add azure-pipelines file
- 7c9c27c Add first version of the library
- 84fcb06 Add MIT license
This list of changes was auto generated.