rings: PrefixToRange(), AddrToU32(), AddrFromU32() #46

Merged
amery merged 3 commits from pr-amery-cidr into main 2024-05-28 00:13:38 +02:00
Owner
  • introduce rings subpackage to deal with Ring addresses.
  • rings: introduce AddToU32() and AddrFromU32() to convert between IPv4 and uint32.
  • rings: introduce PrefixToRange() to get the beginning and end of a subnet.
* introduce rings subpackage to deal with Ring addresses. * rings: introduce AddToU32() and AddrFromU32() to convert between IPv4 and uint32. * rings: introduce PrefixToRange() to get the beginning and end of a subnet.
amery added 3 commits 2024-05-25 21:15:51 +02:00
Signed-off-by: Alejandro Mery <amery@jpi.io>
Signed-off-by: Alejandro Mery <amery@jpi.io>
returning the beginning and end of a subnet

Signed-off-by: Alejandro Mery <amery@jpi.io>
amery requested review from karasz 2024-05-25 21:16:02 +02:00
amery force-pushed pr-amery-cidr from a1fabe664f to 3e90c7a30b 2024-05-25 23:17:24 +02:00 Compare
karasz approved these changes 2024-05-26 20:56:19 +02:00
karasz left a comment
Owner

lgtm

lgtm
amery merged commit f45a8f21f3 into main 2024-05-28 00:13:38 +02:00
amery deleted branch pr-amery-cidr 2024-05-28 00:13:38 +02:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: amery/jpictl#46