Backport tinc 1.1's str2net() function.
authorGuus Sliepen <guus@tinc-vpn.org>
Thu, 11 Apr 2019 19:01:36 +0000 (21:01 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 11 Apr 2019 19:01:36 +0000 (21:01 +0200)
The old function could get confused by short-hand IPv6 notation (using ::)
and mistake them for MAC addresses. The new code is more strict; it will
correctly handle all short-hand addresses, and will return an error when
an address has trailing garbage instead of ignoring it.


No differences found