01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Comments<br />

These structures are only available in <strong>@CHIP</strong>-<strong>RTOS</strong> versions which contain the SNMP option. A SNMP agent is not part of<br />

the <strong>@CHIP</strong>-<strong>RTOS</strong>. But if a user is able to implement an agent based on the TCP/IP API, they will need access to these<br />

internal TCP/IP variables.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Iface_Entry<br />

API function API_SNMP_GET - Get internal TCP/IP SNMP variables<br />

typedef struct tag_iface_device<br />

{<br />

unsigned int devIndex; // Internal index number<br />

char devName[14]; // Device name, terminated by zero<br />

unsigned long devIPAddr; // IP address for this interface<br />

unsigned long devNetmask; // Netmask for the route<br />

unsigned long devDestIpAddr; // Remote peer address for PPP<br />

unsigned char PhysAddr[6]; // Physical device address, max. 6 Bytes<br />

int devType; // Type of the device driver:<br />

// 0: unknown,<br />

// 1: Ethernet driver,<br />

// 2: PPP protocol<br />

// 4: SLIP protocol (not supported)<br />

// 5: Internal loopback<br />

int devDHCP; // Interface configured by DHCP? 1:0<br />

int devFlag; // Device status flag<br />

// Bit1 == 1 Device opened<br />

// Bit2 == 1 Device IP config in progress(PPP or DHCP)<br />

// Bit3 == 1 Device open completed<br />

int devMTU; // Max. Transfer Unit<br />

void far * reserved;<br />

} Iface_Entry;<br />

Related Topics<br />

Top of list<br />

Index page<br />

IfMib<br />

API function GET_IFACE_ENTRIES - Read table of TCP/IP device interfaces<br />

typedef struct tagIfMib // Interface table data<br />

{<br />

long ifIndex; // index of this interface<br />

char ifDescr[32]; // description of interface<br />

long ifType; // network device type<br />

long ifMtu; // maximum transfer unit<br />

unsigned long ifSpeed; // bandwidth in bits/sec<br />

unsigned char ifPhysAddress[11]; // interface's address<br />

unsigned char PhysAddrLen; // length of physAddr: 6<br />

long ifAdminStatus; // desired state of interface, not supported<br />

long ifOperStatus; // current operational status, not supported<br />

//counters<br />

unsigned long devLastChange; // value of sysUpTime when current state entered<br />

unsigned long devInOctets; // number of octets received on interface<br />

unsigned long devInUcastPkts; // number of unicast packets delivered<br />

unsigned long devInMulticastPkts; // number of multicast packets delivered,<br />

Page 167 / 400

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!