netutil

package
v0.0.0-...-9c9c7d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package netutil contains network-related utilities common among dnsproxy packages.

TODO(a.garipov): Move improved versions of these into netutil in module golibs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSubnet

func ParseSubnet(s string) (p netip.Prefix, err error)

ParseSubnet parses s either as a CIDR prefix itself, or as an IP address, returning the corresponding single-IP CIDR prefix.

TODO(e.burkov): Replace usages with netutil.Prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL