pkg/net: add ip arithmetic functions
This change introduces two functions to adding numerical offsets to IP
addresses or CIDR networks.
Closes #3815 as merged as of commit a140ef04d.
Fixes #3142
Signed-off-by: takonomura <takonomura@users.noreply.github.com>
Change-Id: I6bd3dc0fcb1ea234bb369004f693c37a1a7c293e
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1220044
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
authored by