|
libcosmos
Linux C++ System Programming Library
|
Base class for IP4Options and IP6Options. More...
#include <IPOptions.hxx>
Inheritance diagram for cosmos::IPOptBase< LEVEL >:Public Types | |
| enum class | MTUDiscoveryMode : int { WANT = IP_PMTUDISC_WANT , DONT = IP_PMTUDISC_DONT , DO = IP_PMTUDISC_DO , PROBE = IP_PMTUDISC_PROBE } |
| Discovery mode settings used in setMTUDiscoveryMode(). More... | |
Additional Inherited Members | |
Protected Member Functions inherited from cosmos::SockOptBase< LEVEL > | |
| SockOptBase (FileDescriptor fd) | |
| Perform socket options on the given file descriptor. | |
| bool | getBoolOption (const OptName name) const |
| Return a boolean style option. | |
| void | setBoolOption (const OptName name, const bool val) |
| Set a boolean style option. | |
| int | getIntOption (const OptName name) const |
| Return an integer option. | |
| void | setIntOption (const OptName name, const int val) |
| Set an integer option. | |
| std::string | getStringOption (const OptName name, size_t max_len) const |
| Return a null terminated string option. | |
| void | setStringOption (const OptName name, const SysString str) |
| Set a null terminated string option. | |
| std::string | getPeerSec () const |
| Returns the labeled IPSEC or NetLabel of the peer. | |
| SockOptBase (const SockOptBase &)=delete | |
| SockOptBase & | operator= (const SockOptBase &)=delete |
Protected Attributes inherited from cosmos::SockOptBase< LEVEL > | |
| FileDescriptor | m_sock |
| The socket file descriptor to operate on. | |
Static Protected Attributes inherited from cosmos::SockOptBase< LEVEL > | |
| static constexpr OptLevel | M_LEVEL = LEVEL |
| The option level to operate on. | |
Base class for IP4Options and IP6Options.
Some types are shared for both IP4Options and IP6Options. This base class holds them.
Definition at line 24 of file IPOptions.hxx.
|
strong |
Discovery mode settings used in setMTUDiscoveryMode().
The rather complex implications of these settings are best looked up in man 7 ip.
| Enumerator | |
|---|---|
| WANT | use per-route automatic settings |
| DONT | never do MTU path discovery |
| DO | always do MTU discovery |
| PROBE | set dont-fragment flag but ignore current MTU |
Definition at line 33 of file IPOptions.hxx.