Bitcoin Core 28.99.0
P2P Digital Currency
Functions
netif.h File Reference
#include <netaddress.h>
#include <optional>
Include dependency graph for netif.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::optional< CNetAddrQueryDefaultGateway (Network network)
 Query the OS for the default gateway for network. More...
 
std::vector< CNetAddrGetLocalAddresses ()
 Return all local non-loopback IPv4 and IPv6 network addresses. More...
 

Function Documentation

◆ GetLocalAddresses()

std::vector< CNetAddr > GetLocalAddresses ( )

Return all local non-loopback IPv4 and IPv6 network addresses.

Definition at line 275 of file netif.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ QueryDefaultGateway()

std::optional< CNetAddr > QueryDefaultGateway ( Network  network)

Query the OS for the default gateway for network.

This only makes sense for NET_IPV4 and NET_IPV6. Returns std::nullopt if it cannot be found, or there is no support for this OS.

Definition at line 251 of file netif.cpp.

Here is the caller graph for this function: