pinggrouprange

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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

NewClient provides a NetworkServiceClient that sets the ping_group_range on the NSE

func NewServer

NewServer provides a NetworkServiceServer that sets the ping_group_range on the NSC

Types

This section is empty.

Jump to

Keyboard shortcuts

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