Stores information about local interface addresses.
More...
|
| | LocalIntfAddrTy () |
| | Standard constructor keeps all empty/invalid.
|
| |
| | LocalIntfAddrTy (const char *_intfName, const sockaddr *sa, uint32_t _flags) |
| | Constructor looks up interface idx from its name.
|
| |
| | LocalIntfAddrTy (const char *_intfName, uint32_t _idx, const sockaddr *sa, uint32_t _flags) |
| | Constructor expects both interface name and index.
|
| |
| bool | operator== (const LocalIntfAddrTy &o) const |
| | equality is by interface and address
|
| |
| bool | operator< (const LocalIntfAddrTy &o) const |
| | sorting order is by intf idx, then address; this guarantees that while traversing we see all addresses of one interface together
|
| |
| bool | operator== (const InetAddrTy &ia) const |
| | just compare the address
|
| |
|
| uint32_t | intfIdx = 0 |
| | interface index
|
| |
| std::string | intfName |
| | interface name
|
| |
| InetAddrTy | addr |
| | address, internally this is in_addr or in6_addr
|
| |
| uint8_t | family = 0 |
| | either AF_INET or AF_INET6
|
| |
| uint32_t | flags = 0 |
| | stuff like IFF_MULTICAST, IFF_LOOPBACK, IFF_BROADCAST...
|
| |
Stores information about local interface addresses.
◆ LocalIntfAddrTy() [1/3]
| XPMP2::LocalIntfAddrTy::LocalIntfAddrTy |
( |
| ) |
|
|
inline |
Standard constructor keeps all empty/invalid.
◆ LocalIntfAddrTy() [2/3]
| XPMP2::LocalIntfAddrTy::LocalIntfAddrTy |
( |
const char * | _intfName, |
|
|
const sockaddr * | sa, |
|
|
uint32_t | _flags ) |
|
inline |
Constructor looks up interface idx from its name.
◆ LocalIntfAddrTy() [3/3]
| XPMP2::LocalIntfAddrTy::LocalIntfAddrTy |
( |
const char * | _intfName, |
|
|
uint32_t | _idx, |
|
|
const sockaddr * | sa, |
|
|
uint32_t | _flags ) |
|
inline |
Constructor expects both interface name and index.
◆ operator<()
sorting order is by intf idx, then address; this guarantees that while traversing we see all addresses of one interface together
◆ operator==() [1/2]
| bool XPMP2::LocalIntfAddrTy::operator== |
( |
const InetAddrTy & | ia | ) |
const |
|
inline |
◆ operator==() [2/2]
equality is by interface and address
◆ addr
address, internally this is in_addr or in6_addr
◆ family
| uint8_t XPMP2::LocalIntfAddrTy::family = 0 |
either AF_INET or AF_INET6
◆ flags
| uint32_t XPMP2::LocalIntfAddrTy::flags = 0 |
stuff like IFF_MULTICAST, IFF_LOOPBACK, IFF_BROADCAST...
◆ intfIdx
| uint32_t XPMP2::LocalIntfAddrTy::intfIdx = 0 |
◆ intfName
| std::string XPMP2::LocalIntfAddrTy::intfName |
The documentation for this struct was generated from the following file: