diff options
| author | woojiq <yurii.shymon@gmail.com> | 2024-06-23 19:33:30 +0300 |
|---|---|---|
| committer | woojiq <yurii.shymon@gmail.com> | 2024-06-29 10:02:00 +0300 |
| commit | d559eed93af199646f495f8ef4f91971743e480c (patch) | |
| tree | 4f1fcff07fd299294f207c9654ba0789c291a2f9 /lib/default.nix | |
| parent | lib: add fromHexString (diff) | |
| download | nixpkgs-d559eed93af199646f495f8ef4f91971743e480c.tar.gz | |
lib.network: ipv6 parser from string
Add a library function to parse and validate an IPv6 address from a
string. It can parse the first two versions of an IPv6 address according
to https://datatracker.ietf.org/doc/html/rfc4291#section-2.2. The third
form "x:x:x:x:x:x.d.d.d.d" is not yet implemented. Optionally parser can accept prefix length (128 is default).
Add shell script network.sh to test IPv6 parser functionality.
Diffstat (limited to 'lib/default.nix')
| -rw-r--r-- | lib/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix index b209544050cc..1b7233e548ec 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -64,6 +64,9 @@ let # linux kernel configuration kernel = callLibs ./kernel.nix; + # network + network = callLibs ./network; + # TODO: For consistency, all builtins should also be available from a sub-library; # these are the only ones that are currently not inherit (builtins) addErrorContext isPath trace; |
