Documentation ¶
Overview ¶
Package pinggrouprange sets /proc/sys/net/ipv4/ping_group_range variable
We use ping to check the liveliness of the connection. In order not to use the root privileges, we need to set the ping_group_range value. It allows to create the SOCK_DGRAM socket type (instead of SOCK_RAW) for ping and thus use it in non-privileged mode. See: https://github.com/go-ping/ping https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient() networkservice.NetworkServiceClient
NewClient provides a NetworkServiceClient that sets the ping_group_range on the NSE
func NewServer ¶
func NewServer() networkservice.NetworkServiceServer
NewServer provides a NetworkServiceServer that sets the ping_group_range on the NSC
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.