| 
    GATE
    
   C/C++ Framework 
   | 
 
Network configuration utilities. More...
#include "gate/system/gate_system_api.h"Data Structures | |
| struct | gate_netconfig_nif_t | 
| NetworkInterFace record.  More... | |
| struct | gate_netconfig_address_t | 
| Network address record.  More... | |
Macros | |
| #define | GATE_NETCONFIG_STATUS_DISABLED 0x0001 | 
| #define | GATE_NETCONFIG_STATUS_ENABLED 0x0002 | 
| #define | GATE_NETCONFIG_STATUS_NONFUNCT 0x0004 | 
| #define | GATE_NETCONFIG_STATUS_OPERATIONAL 0x0008 | 
| #define | GATE_NETCONFIG_STATUS_CONNECTING 0x0010 | 
| #define | GATE_NETCONFIG_STATUS_CONNECTED 0x0020 | 
| #define | GATE_NETCONFIG_STATUS_DISCONNECTED 0x0040 | 
| #define | GATE_NETCONFIG_STATUS_ERROR 0x8000 | 
Typedefs | |
| typedef gate_bool_t(* | gate_netcfg_enum_nif_callback_t) (gate_netconfig_nif_t const *nif, void *userparam) | 
| Callback function type for NIF enumeration.  | |
| typedef gate_bool_t(* | gate_netcfg_enum_addresses_callback_t) (gate_netconfig_address_t const *addr, void *userparam) | 
| Callback function type for address enumeration.  | |
Functions | |
| GATE_SYSTEM_API char const * | gate_netconfig_print_status (gate_enumint_t status) | 
| Returns a static human readable string for a GATE_NETCONFIG_STATUS_* value.  | |
| GATE_SYSTEM_API char const * | gate_netconfig_print_type (gate_enumint_t tp) | 
| Returns a static human readable string for a GATE_NETCONFIG_TYPE_* value.  | |
| GATE_SYSTEM_API gate_result_t | gate_netconfig_enum_nifs (gate_netcfg_enum_nif_callback_t callback, void *userparam) | 
| Enumerate all available network interfaces.   | |
| GATE_SYSTEM_API gate_result_t | gate_netconfig_enum_addresses (gate_netconfig_nif_t const *nif, gate_netcfg_enum_addresses_callback_t callback, void *userparam) | 
| Enumerates all addresses associated with a network interface.   | |
| GATE_SYSTEM_API gate_result_t | gate_netconfig_enable_nif (gate_netconfig_nif_t const *nif, gate_bool_t enabled) | 
| Enables or disables a network interface.   | |
| GATE_SYSTEM_API gate_result_t | gate_netconfig_setup_nif_addresses (gate_netconfig_nif_t const *nif, gate_netconfig_address_t const *addresses, gate_size_t addresses_count) | 
| Changes the address configuration of a network interface.   | |
Network configuration utilities.
| #define GATE_NETCONFIG_STATUS_DISABLED 0x0001 | 
NIF is disabled
| #define GATE_NETCONFIG_STATUS_ENABLED 0x0002 | 
NIF is enabled
| #define GATE_NETCONFIG_STATUS_NONFUNCT 0x0004 | 
NIF is non-operational
| #define GATE_NETCONFIG_STATUS_OPERATIONAL 0x0008 | 
NIF is operational
| #define GATE_NETCONFIG_STATUS_CONNECTING 0x0010 | 
NIF is currently connecting
| #define GATE_NETCONFIG_STATUS_CONNECTED 0x0020 | 
NIF is connected to a network
| #define GATE_NETCONFIG_STATUS_DISCONNECTED 0x0040 | 
NIF is disconnected
| #define GATE_NETCONFIG_STATUS_ERROR 0x8000 | 
NIF is in error state
| GATE_SYSTEM_API gate_result_t gate_netconfig_enum_nifs | ( | gate_netcfg_enum_nif_callback_t | callback, | 
| void * | userparam ) | 
Enumerate all available network interfaces.
| [in] | callback | Callback function to be called for each found network interface | 
| [in] | userparam | User parameter attached to each callback call | 
| GATE_SYSTEM_API gate_result_t gate_netconfig_enum_addresses | ( | gate_netconfig_nif_t const * | nif, | 
| gate_netcfg_enum_addresses_callback_t | callback, | ||
| void * | userparam ) | 
Enumerates all addresses associated with a network interface.
| [in] | nif | Pointer to network interface record to be accessed | 
| [in] | callback | Callback function to be called with each found address | 
| [in] | userparam | User parameter attached to each callback call | 
| GATE_SYSTEM_API gate_result_t gate_netconfig_enable_nif | ( | gate_netconfig_nif_t const * | nif, | 
| gate_bool_t | enabled ) | 
Enables or disables a network interface.
| [in] | nif | Pointer to network interface record to be accessed | 
| [in] | enabled | New state to be applied | 
| GATE_SYSTEM_API gate_result_t gate_netconfig_setup_nif_addresses | ( | gate_netconfig_nif_t const * | nif, | 
| gate_netconfig_address_t const * | addresses, | ||
| gate_size_t | addresses_count ) | 
Changes the address configuration of a network interface.
| [in] | nif | Pointer to network interface record to be accessed | 
| [in] | addresses | Pointer to address array with new configuration | 
| [in] | addresses_count | Amount of entries in addresses |