mbgtools-lx  4.2.8
Simple IPv4-only configuration or status

Data Structures

struct  IP4_SETTINGS
 Settings of an IPv4-only network interface. More...
 
struct  LAN_IF_INFO
 Simple LAN interface information. More...
 

Macros

#define _mbg_swab_ip4_settings(_p)
 
#define _mbg_swab_lan_if_info(_p)
 

Enumerations

enum  LAN_IF_TYPES { LAN_IF_TYPE_XPORT, LAN_IF_TYPE_PTP, LAN_IF_TYPE_RSC, N_LAN_IF_TYPE }
 Codes used with LAN_IF_INFO::type. More...
 
enum  MBG_IP4_FLAG_BITS { IP4_BIT_DHCP, IP4_BIT_LINK, IP4_BIT_VLAN, N_IP4_BIT }
 Enumeration of flag bits used with IP4_SETTINGS::flags and LAN_IF_INFO::flags. More...
 
enum  MBG_IP4_FLAG_MASKS { IP4_MSK_DHCP = ( 1UL << IP4_BIT_DHCP ), IP4_MSK_LINK = ( 1UL << IP4_BIT_LINK ), IP4_MSK_VLAN = ( 1UL << IP4_BIT_VLAN ) }
 Bit masks used with IP4_SETTINGS::flags and LAN_IF_INFO::flags. More...
 

Detailed Description

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

See also
Extended network configuration and status Extended network configuration and status

Macro Definition Documentation

◆ _mbg_swab_ip4_settings

#define _mbg_swab_ip4_settings (   _p)
Value:
do \
{ \
_mbg_swab_ip4_addr( &(_p)->ip_addr ); \
_mbg_swab_ip4_addr( &(_p)->netmask ); \
_mbg_swab_ip4_addr( &(_p)->broad_addr ); \
_mbg_swab_ip4_addr( &(_p)->gateway ); \
_mbg_swab16( &(_p)->flags ); \
_mbg_swab_mbg_vlan_cfg( &(_p)->vlan_cfg ); \
} while ( 0 )

Definition at line 11250 of file gpsdefs.h.

Referenced by mbg_get_ip4_settings(), mbg_get_ip4_state(), mbg_set_ip4_settings(), mbgextio_get_ip4_settings(), mbgextio_get_ip4_state(), and mbgextio_set_ip4_settings().

◆ _mbg_swab_lan_if_info

#define _mbg_swab_lan_if_info (   _p)
Value:
do \
{ \
_mbg_swab16( &(_p)->type ); \
_mbg_swab16( &(_p)->ver_code ); \
_mbg_swab32( &(_p)->rsvd_0 ); \
_mbg_swab16( &(_p)->flags ); \
_mbg_swab16( &(_p)->rsvd_1 ); \
} while ( 0 )

Definition at line 11287 of file gpsdefs.h.

Referenced by mbg_get_lan_if_info(), and mbgextio_get_lan_if_info().

Enumeration Type Documentation

◆ LAN_IF_TYPES

Codes used with LAN_IF_INFO::type.

Enumerator
LAN_IF_TYPE_XPORT 

LAN interface on an XPORT, superseded by RSC devices.

LAN_IF_TYPE_PTP 

LAN interface is a special PTP interface.

LAN_IF_TYPE_RSC 

RSC device, supersedes XPORT.

N_LAN_IF_TYPE 

number of defined LAN interface types

Definition at line 11301 of file gpsdefs.h.

◆ MBG_IP4_FLAG_BITS

Enumeration of flag bits used with IP4_SETTINGS::flags and LAN_IF_INFO::flags.

See also
MBG_IP4_FLAG_MASKS
Enumerator
IP4_BIT_DHCP 

In LAN_IF_INFO::flags this reports if DHCP is supported by the device. If supported then it can also be used with IP4_SETTINGS::flags to enable or disable DHCP for the network interface.

IP4_BIT_LINK 

Only used with IP4_SETTINGS::flags. Set if port link has been established.

IP4_BIT_VLAN 

In LAN_IF_INFO::flags this reports if VLAN is supported by the device. If supported then it can also be used with IP4_SETTINGS::flags to enable or disable VLAN for the network interface.

N_IP4_BIT 

number of defined flag bits

Definition at line 11315 of file gpsdefs.h.

◆ MBG_IP4_FLAG_MASKS

Bit masks used with IP4_SETTINGS::flags and LAN_IF_INFO::flags.

See also
MBG_IP4_FLAG_BITS
Enumerator
IP4_MSK_DHCP 

see IP4_BIT_DHCP

IP4_MSK_LINK 

see IP4_BIT_LINK

IP4_MSK_VLAN 

see IP4_BIT_VLAN

Definition at line 11339 of file gpsdefs.h.