[PR #6312] Bump github.com/c-robinson/iplib from 1.0.3 to 1.0.8 #25374

Closed
opened 2026-08-05 07:05:55 -04:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/netbirdio/netbird/pull/6312

State: closed
Merged: No


Bumps github.com/c-robinson/iplib from 1.0.3 to 1.0.8.

Release notes

Sourced from github.com/c-robinson/iplib's releases.

1.0.8

https://github.com/c-robinson/iplib/compare/v1.0.7...v1.0.8

  • Fix a problem where DecrementIP6WithinHostmask could panic if the hostmask had an underflow
  • Added a benchmark for subnetting IPv6

1.0.7

https://github.com/c-robinson/iplib/compare/v1.0.6...v1.0.7

  • fix index out of bounds in IP4ToARPA function when IP address is nil

1.0.6

https://github.com/c-robinson/iplib/compare/v1.0.5...v1.0.6

  • exported previously internal function CopyIP() which will create a copy of an IP address
  • Net4 and Net6 now have RandomIP() functions that will return a random address within the given netblock. They both use crypto/rand because that package works gracefully with *big.Int

1.0.5

https://github.com/c-robinson/iplib/compare/v1.0.4...v1.0.5

  • fix IPv4 NextNext returning the wrong value if the supplied netmask is lower than the current one, by @​luisdavim

1.0.4

https://github.com/c-robinson/iplib/compare/v1.0.3...v1.0.4

  • fix an integer overflow on 32bit CPU's caused by MaxIPv4 being an int instead of uint32 found by @​CyrilBrulebois
Commits
  • 88cac81 Fix edge case in DecrementIP6WithinHostmask
  • 83b1af8 avoid index out of bounds in IP4ToARPA function (#14)
  • 85813ef tests for CopyIP() and RandomIP()
  • f9d8083 add RandomIP() functions to Net4 and Net6
  • 5165d35 export utility function to make copy of net.IP
  • de5f50e fix: NextNet with mask length lower than current one (#13)
  • b203a7a cast MaxIPv4 to uint32, fixes #11
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
**Original Pull Request:** https://github.com/netbirdio/netbird/pull/6312 **State:** closed **Merged:** No --- Bumps [github.com/c-robinson/iplib](https://github.com/c-robinson/iplib) from 1.0.3 to 1.0.8. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/c-robinson/iplib/releases">github.com/c-robinson/iplib's releases</a>.</em></p> <blockquote> <h2>1.0.8</h2> <p><a href="https://github.com/c-robinson/iplib/compare/v1.0.7...v1.0.8">https://github.com/c-robinson/iplib/compare/v1.0.7...v1.0.8</a></p> <ul> <li>Fix a problem where DecrementIP6WithinHostmask could panic if the hostmask had an underflow</li> <li>Added a benchmark for subnetting IPv6</li> </ul> <h2>1.0.7</h2> <p><a href="https://github.com/c-robinson/iplib/compare/v1.0.6...v1.0.7">https://github.com/c-robinson/iplib/compare/v1.0.6...v1.0.7</a></p> <ul> <li>fix index out of bounds in <code>IP4ToARPA</code> function when IP address is <code>nil</code></li> </ul> <h2>1.0.6</h2> <p><a href="https://github.com/c-robinson/iplib/compare/v1.0.5...v1.0.6">https://github.com/c-robinson/iplib/compare/v1.0.5...v1.0.6</a></p> <ul> <li>exported previously internal function <code>CopyIP()</code> which will create a copy of an IP address</li> <li>Net4 and Net6 now have <code>RandomIP()</code> functions that will return a random address within the given netblock. They both use <code>crypto/rand</code> because that package works gracefully with <code>*big.Int</code></li> </ul> <h2>1.0.5</h2> <p><a href="https://github.com/c-robinson/iplib/compare/v1.0.4...v1.0.5">https://github.com/c-robinson/iplib/compare/v1.0.4...v1.0.5</a></p> <ul> <li>fix IPv4 <code>NextNext</code> returning the wrong value if the supplied netmask is lower than the current one, by <a href="https://github.com/luisdavim"><code>@​luisdavim</code></a></li> </ul> <h2>1.0.4</h2> <p><a href="https://github.com/c-robinson/iplib/compare/v1.0.3...v1.0.4">https://github.com/c-robinson/iplib/compare/v1.0.3...v1.0.4</a></p> <ul> <li>fix an integer overflow on 32bit CPU's caused by <code>MaxIPv4</code> being an <code>int</code> instead of <code>uint32</code> found by <a href="https://github.com/CyrilBrulebois"><code>@​CyrilBrulebois</code></a></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/c-robinson/iplib/commit/88cac81fc4ed6ae104f88346038d0225a129dda1"><code>88cac81</code></a> Fix edge case in DecrementIP6WithinHostmask</li> <li><a href="https://github.com/c-robinson/iplib/commit/83b1af8247ecba3b99bc24bfae517e9a6d563ca7"><code>83b1af8</code></a> avoid index out of bounds in IP4ToARPA function (<a href="https://redirect.github.com/c-robinson/iplib/issues/14">#14</a>)</li> <li><a href="https://github.com/c-robinson/iplib/commit/85813efada10e35dfe279f4f91531b02a778f7a6"><code>85813ef</code></a> tests for CopyIP() and RandomIP()</li> <li><a href="https://github.com/c-robinson/iplib/commit/f9d8083aa89d47b9fcccae4bd0938889d71dba96"><code>f9d8083</code></a> add RandomIP() functions to Net4 and Net6</li> <li><a href="https://github.com/c-robinson/iplib/commit/5165d350a2e34ef6d762d37a37ef5c09aa7d02e1"><code>5165d35</code></a> export utility function to make copy of net.IP</li> <li><a href="https://github.com/c-robinson/iplib/commit/de5f50e6a1b0f8af176b6bd64e39a0c3ae5f0825"><code>de5f50e</code></a> fix: NextNet with mask length lower than current one (<a href="https://redirect.github.com/c-robinson/iplib/issues/13">#13</a>)</li> <li><a href="https://github.com/c-robinson/iplib/commit/b203a7a2b704213894d240361bd55fa8b6bcf623"><code>b203a7a</code></a> cast MaxIPv4 to uint32, fixes <a href="https://redirect.github.com/c-robinson/iplib/issues/11">#11</a></li> <li>See full diff in <a href="https://github.com/c-robinson/iplib/compare/v1.0.3...v1.0.8">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/c-robinson/iplib&package-manager=go_modules&previous-version=1.0.3&new-version=1.0.8)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
saavagebueno added the pull-request label 2026-08-05 07:05:55 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#25374