mbgtools-lx  4.2.8
Extended network configuration and status

Data Structures

struct  MBG_NET_GLB_CFG_SETTINGS
 Global network configuration settings. More...
 
struct  MBG_NET_GLB_CFG_INFO
 Global current network settings and supported features. More...
 
struct  MBG_IP_ADDR
 An IPv4 or IPv6 network address. More...
 
struct  MBG_IP_ADDR_IDX
 An IPv4 or IPv6 network address, plus index. More...
 
struct  MBG_IP_ADDR_PORT
 An IPv4 or IPv6 network address plus UDP or TCP port number. More...
 
struct  MBG_NET_NAME
 Network host or domain name. More...
 
struct  MBG_NET_NAME_IDX
 Network host or domain name, plus index. More...
 
struct  MBG_NET_INTF_LINK_SETTINGS
 Physical network interface link specific settings. More...
 
struct  MBG_NET_INTF_LINK_SETTINGS_IDX
 Link (physical interface) specific settings, plus index. More...
 
struct  MBG_NET_INTF_LINK_INFO
 Link (physical interface) specific settings, flags and supported features. More...
 
struct  MBG_NET_INTF_LINK_INFO_IDX
 Query MBG_NET_INTF_LINK_INFO by its index. More...
 
struct  MBG_NET_INTF_ADDR_SETTINGS
 Network interface address specific settings, flags and supported features. More...
 
struct  MBG_NET_INTF_ADDR_SETTINGS_IDX
 Query MBG_NET_INTF_ADDR_SETTINGS by its index. More...
 
struct  MBG_NET_INTF_ADDR_INFO
 Network interface address specific settings, flags and supported features. More...
 
struct  MBG_NET_INTF_ADDR_INFO_IDX
 Query MBG_NET_INTF_ADDR_INFO by its index. More...
 
struct  MBG_NET_INTF_ROUTE_SETTINGS
 Network interface route specific settings. More...
 
struct  MBG_NET_INTF_ROUTE_SETTINGS_IDX
 Query MBG_NET_INTF_ROUTE_SETTINGS by its index. More...
 
struct  MBG_NET_INTF_ROUTE_INFO
 Network interface address specific settings. More...
 
struct  MBG_NET_INTF_ROUTE_INFO_IDX
 Query MBG_NET_INTF_ROUTE_INFO by its index. More...
 

Macros

#define _mbg_swab_net_glb_cfg_settings(_p)
 
#define _mbg_swab_net_glb_cfg_info(_p)
 
#define _mbg_swab_ip_addr(_p)
 
#define _mbg_swab_ip_addr_idx(_p)
 
#define _mbg_swab_ip_addr_port(_p)
 
#define _mbg_swab_net_name(_p)
 
#define _mbg_swab_net_name_idx(_p)
 
#define _mbg_swab_net_intf_link_settings(_p)
 
#define _mbg_swab_net_intf_link_settings_idx(_p)
 
#define _mbg_swab_net_intf_link_info(_p)
 
#define _mbg_swab_net_intf_link_info_idx(_p)
 
#define _mbg_swab_net_intf_addr_settings(_p)
 
#define _mbg_swab_net_intf_addr_settings_idx(_p)
 
#define _mbg_swab_net_intf_addr_info(_p)
 
#define _mbg_swab_net_intf_addr_info_idx(_p)
 
#define _mbg_swab_net_intf_route_settings(_p)
 
#define _mbg_swab_net_intf_route_settings_idx(_p)
 
#define _mbg_swab_net_intf_route_info(_p)
 
#define _mbg_swab_net_intf_route_info_idx(_p)
 

Detailed Description

This is only supported if the flag GPS_HAS_NET_CFG is set in RECEIVER_INFO::features.

Macro Definition Documentation

◆ _mbg_swab_ip_addr

#define _mbg_swab_ip_addr (   _p)
Value:
do \
{ \
_mbg_swab8( &(_p)->type ); \
_mbg_swab8( &(_p)->reserved_1 ); \
_mbg_swab16( &(_p)->reserved_2 ); \
\
switch ( (_p)->type ) \
{ \
_mbg_swab_ip4_addr( &(_p)->u_addr.ip4_addr ); \
break; \
\
_mbg_swab_ip6_addr( &(_p)->u_addr.ip6_addr ); \
break; \
} \
\
} while ( 0 )

Definition at line 11920 of file gpsdefs.h.

◆ _mbg_swab_ip_addr_idx

#define _mbg_swab_ip_addr_idx (   _p)
Value:
do \
{ \
_mbg_swab16( &(_p)->idx ); \
_mbg_swab_ip_addr( &(_p)->addr ); \
} while ( 0 )

Definition at line 11952 of file gpsdefs.h.

Referenced by mbgextio_get_net_dns_srvr_idx(), mbgextio_get_net_stat_dns_srvr_idx(), and mbgextio_set_net_dns_srvr_idx().

◆ _mbg_swab_ip_addr_port

#define _mbg_swab_ip_addr_port (   _p)
Value:
do \
{ \
_mbg_swab_ip_addr( &(_p)->addr ); \
_mbg_swab16( &(_p)->port ); \
_mbg_swab16( &(_p)->flags ); \
} while ( 0 )

Definition at line 11973 of file gpsdefs.h.

◆ _mbg_swab_net_glb_cfg_info

#define _mbg_swab_net_glb_cfg_info (   _p)
Value:
do \
{ \
_mbg_swab_net_glb_cfg_settings( &(_p)->glb_settings ); \
_mbg_swab16( &(_p)->n_supp_intf_link ); \
_mbg_swab16( &(_p)->n_supp_intf_addr ); \
_mbg_swab16( &(_p)->n_supp_dns_srvr ); \
_mbg_swab16( &(_p)->n_supp_dns_srch_dom ); \
_mbg_swab16( &(_p)->n_supp_intf_route ); \
_mbg_swab16( &(_p)->max_hostname_len ); \
_mbg_swab32( &(_p)->reserved_1 ); \
_mbg_swab32( &(_p)->reserved_2 ); \
_mbg_swab32( &(_p)->feat_flags ); \
_mbg_swab32( &(_p)->flags_2 ); \
} while ( 0 )

Definition at line 11885 of file gpsdefs.h.

Referenced by mbgextio_get_net_glb_cfg_info(), and mbgextio_get_net_stat_glb_cfg_info().

◆ _mbg_swab_net_glb_cfg_settings

#define _mbg_swab_net_glb_cfg_settings (   _p)
Value:
do \
{ \
_mbg_swab32( &(_p)->flags ); \
} while ( 0 )

Definition at line 11859 of file gpsdefs.h.

Referenced by mbgextio_set_net_glb_cfg_settings().

◆ _mbg_swab_net_intf_addr_info

#define _mbg_swab_net_intf_addr_info (   _p)
Value:
do \
{ \
_mbg_swab_net_intf_addr_settings( &(_p)->addr_settings ); \
_mbg_swab32( &(_p)->supp_flags ); \
_mbg_swab32( &(_p)->reserved_1 ); \
_mbg_swab32( &(_p)->reserved_2 ); \
} while ( 0 )

Definition at line 12231 of file gpsdefs.h.

◆ _mbg_swab_net_intf_addr_info_idx

#define _mbg_swab_net_intf_addr_info_idx (   _p)
Value:
do \
{ \
_mbg_swab16( &(_p)->idx ); \
_mbg_swab_net_intf_addr_info( &(_p)->info ); \
} while ( 0 )

Definition at line 12251 of file gpsdefs.h.

Referenced by mbgextio_get_net_intf_addr_info_idx(), and mbgextio_get_net_stat_intf_addr_info_idx().

◆ _mbg_swab_net_intf_addr_settings

#define _mbg_swab_net_intf_addr_settings (   _p)
Value:
do \
{ \
_mbg_swab32( &(_p)->addr_index ); \
_mbg_swab32( &(_p)->ass_if_index ); \
_mbg_swab32( &(_p)->flags ); \
_mbg_swab_ip_addr( &(_p)->ip ); \
_mbg_swab_ip_addr( &(_p)->broadcast ); \
_mbg_swab16( &(_p)->reserved_2 ); \
_mbg_swab32( &(_p)->reserved_3 ); \
_mbg_swab32( &(_p)->reserved_4 ); \
_mbg_swab32( &(_p)->reserved_5 ); \
} while ( 0 )

Definition at line 12186 of file gpsdefs.h.

◆ _mbg_swab_net_intf_addr_settings_idx

#define _mbg_swab_net_intf_addr_settings_idx (   _p)
Value:
do \
{ \
_mbg_swab16( &(_p)->idx ); \
_mbg_swab_net_intf_addr_settings( &(_p)->settings ); \
} while ( 0 )

Definition at line 12211 of file gpsdefs.h.

Referenced by mbgextio_set_net_intf_addr_settings_idx().

◆ _mbg_swab_net_intf_link_info

#define _mbg_swab_net_intf_link_info (   _p)
Value:
do \
{ \
_mbg_swab_net_intf_link_settings( &(_p)->link_settings ); \
_mbg_swab32( &(_p)->supp_flags ); \
_mbg_swab32( &(_p)->supp_states ); \
_mbg_swab32( &(_p)->supp_types ); \
_mbg_swab32( &(_p)->supp_speed_modes ); \
_mbg_swab32( &(_p)->supp_port_types ); \
_mbg_swab32( &(_p)->supp_opts ); \
_mbg_swab32( &(_p)->supp_bond_modes ); \
_mbg_swab32( &(_p)->reserved_1 ); \
_mbg_swab32( &(_p)->reserved_2 ); \
_mbg_swab32( &(_p)->reserved_3 ); \
_mbg_swab32( &(_p)->reserved_4 ); \
} while ( 0 )

Definition at line 12122 of file gpsdefs.h.

◆ _mbg_swab_net_intf_link_info_idx

#define _mbg_swab_net_intf_link_info_idx (   _p)
Value:
do \
{ \
_mbg_swab16( &(_p)->idx ); \
_mbg_swab_net_intf_link_info( &(_p)->info ); \
} while ( 0 )

Definition at line 12151 of file gpsdefs.h.

Referenced by mbgextio_get_net_intf_link_info_idx(), and mbgextio_get_net_stat_intf_link_info_idx().

◆ _mbg_swab_net_intf_link_settings

#define _mbg_swab_net_intf_link_settings (   _p)
Value:
do \
{ \
_mbg_swab32( &(_p)->if_index ); \
_mbg_swab32( &(_p)->common_if_index ); \
_mbg_swab32( &(_p)->ass_if_index ); \
_mbg_swab32( &(_p)->flags ); \
_mbg_swab32( &(_p)->states ); \
_mbg_swab32( &(_p)->hw_type ); \
_mbg_swab32( &(_p)->mtu ); \
_mbg_swab32( &(_p)->txqlen ); \
_mbg_swab32( &(_p)->speed ); \
_mbg_swab16( &(_p)->bond_idx ); \
_mbg_swab16( &(_p)->vlan_cfg ); \
_mbg_swab16( &(_p)->reserved_1 ); \
_mbg_swab32( &(_p)->reserved_2 ); \
_mbg_swab32( &(_p)->reserved_3 ); \
} while ( 0 )

Definition at line 12063 of file gpsdefs.h.

◆ _mbg_swab_net_intf_link_settings_idx

#define _mbg_swab_net_intf_link_settings_idx (   _p)
Value:
do \
{ \
_mbg_swab16( &(_p)->idx ); \
_mbg_swab_net_intf_link_settings( &(_p)->settings ); \
} while ( 0 )

Definition at line 12094 of file gpsdefs.h.

Referenced by mbgextio_set_net_intf_link_settings_idx().

◆ _mbg_swab_net_intf_route_info

#define _mbg_swab_net_intf_route_info (   _p)
Value:
do \
{ \
_mbg_swab_net_intf_route_settings( &(_p)->route_settings ); \
_mbg_swab32( &(_p)->reserved_1 ); \
_mbg_swab32( &(_p)->reserved_2 ); \
_mbg_swab32( &(_p)->reserved_3 ); \
_mbg_swab32( &(_p)->reserved_4 ); \
} while ( 0 )

Definition at line 12330 of file gpsdefs.h.

◆ _mbg_swab_net_intf_route_info_idx

#define _mbg_swab_net_intf_route_info_idx (   _p)
Value:
do \
{ \
_mbg_swab16( &(_p)->idx ); \
_mbg_swab_net_intf_route_info( &(_p)->info ); \
} while ( 0 )

Definition at line 12351 of file gpsdefs.h.

Referenced by mbgextio_get_net_intf_route_info_idx(), and mbgextio_get_net_stat_intf_route_info_idx().

◆ _mbg_swab_net_intf_route_settings

#define _mbg_swab_net_intf_route_settings (   _p)
Value:
do \
{ \
_mbg_swab16( &(_p)->reserved_2 ); \
_mbg_swab_ip_addr( &(_p)->gateway ); \
_mbg_swab_ip_addr( &(_p)->dst ); \
_mbg_swab32( &(_p)->ass_if_index ); \
_mbg_swab32( &(_p)->ass_addr_index ); \
_mbg_swab32( &(_p)->reserved_3 ); \
_mbg_swab32( &(_p)->reserved_4 ); \
_mbg_swab32( &(_p)->reserved_5 ); \
} while ( 0 )

Definition at line 12286 of file gpsdefs.h.

◆ _mbg_swab_net_intf_route_settings_idx

#define _mbg_swab_net_intf_route_settings_idx (   _p)
Value:
do \
{ \
_mbg_swab16( &(_p)->idx ); \
_mbg_swab_net_intf_route_settings( &(_p)->settings ); \
} while ( 0 )

Definition at line 12310 of file gpsdefs.h.

Referenced by mbgextio_set_net_intf_route_settings_idx().

◆ _mbg_swab_net_name

#define _mbg_swab_net_name (   _p)
Value:
do \
{ \
_mbg_swab_mbg_host_name( &(_p)->name ); \
} while ( 0 )

Definition at line 11992 of file gpsdefs.h.

Referenced by mbgextio_set_net_dns_srch_dom_idx().

◆ _mbg_swab_net_name_idx

#define _mbg_swab_net_name_idx (   _p)
Value:
do \
{ \
_mbg_swab16( &(_p)->idx ); \
_mbg_swab_net_name( &(_p)->net_name ); \
} while ( 0 )

Definition at line 12010 of file gpsdefs.h.

Referenced by mbgextio_get_net_dns_srch_dom_idx(), and mbgextio_get_net_stat_dns_srch_dom_stat_idx().