sbgECom  1.11.920-stable
sbgEComCmdEthernet.h
Go to the documentation of this file.
1 
20 #ifndef __SBG_ECOM_CMD_ETHERNET_H__
21 #define __SBG_ECOM_CMD_ETHERNET_H__
22 
23 #include "sbgEComCmdCommon.h"
24 
25 //----------------------------------------------------------------------//
26 //- Ethernet interface configuration -//
27 //----------------------------------------------------------------------//
28 
33 {
37 
41 typedef struct _SbgEComEthernetConf
42 {
44  sbgIpAddress ipAddress;
45  sbgIpAddress netmask;
46  sbgIpAddress gateway;
47  sbgIpAddress dns1;
48  sbgIpAddress dns2;
50 
51 //----------------------------------------------------------------------//
52 //- Public methods -//
53 //----------------------------------------------------------------------//
54 
63 SbgErrorCode sbgEComEthernetGetConf(SbgEComHandle *pHandle, SbgEComEthernetConf *pEthernetConf);
64 
71 SbgErrorCode sbgEComEthernetSetConf(SbgEComHandle *pHandle, const SbgEComEthernetConf *pEthernetConf);
72 
81 SbgErrorCode sbgEComEthernetInfo(SbgEComHandle *pHandle, SbgEComEthernetConf *pEthernetConf);
82 
83 #endif
SbgErrorCode sbgEComEthernetSetConf(SbgEComHandle *pHandle, const SbgEComEthernetConf *pEthernetConf)
sbgIpAddress dns1
Definition: sbgEComCmdEthernet.h:47
struct _SbgEComEthernetConf SbgEComEthernetConf
Definition: sbgEComCmdEthernet.h:34
sbgIpAddress ipAddress
Definition: sbgEComCmdEthernet.h:44
Definition: sbgECom.h:70
_SbgEComEthernetMode
Definition: sbgEComCmdEthernet.h:32
enum _SbgEComEthernetMode SbgEComEthernetMode
Definition: sbgEComCmdEthernet.h:41
sbgIpAddress dns2
Definition: sbgEComCmdEthernet.h:48
sbgIpAddress gateway
Definition: sbgEComCmdEthernet.h:46
SbgEComEthernetMode mode
Definition: sbgEComCmdEthernet.h:43
Definition: sbgEComCmdEthernet.h:35
SbgErrorCode sbgEComEthernetInfo(SbgEComHandle *pHandle, SbgEComEthernetConf *pEthernetConf)
sbgIpAddress netmask
Definition: sbgEComCmdEthernet.h:45
SbgErrorCode sbgEComEthernetGetConf(SbgEComHandle *pHandle, SbgEComEthernetConf *pEthernetConf)
This file groups all common definitions required by all commands.