Skip to content

Releases: georg-jung/ArpLookup

v2.0.3

13 Jul 16:10
Compare
Choose a tag to compare

Breaking Changes

  • In version 1.x, when calling Lookup or LookupAsync on Windows and no MAC address could be associated with the given IP adress (i.e. if the IP is not on the same subnet), a Win32Exception with NativeErrorCode == 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 type PhysicalAddress? 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. by if), this is a breaking change.

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

06 Jul 22:11
Compare
Choose a tag to compare

New Features

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

18 Dec 12:30
Compare
Choose a tag to compare

Logo added.

Changes:

This list of changes was auto generated.

v1.0.0

16 Dec 11:00
Compare
Choose a tag to compare

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

13 Dec 19:36
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

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.