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.

If you want to reset the options, call this function with a null pointer in ES:DI.<br />

A C-Library function for this API is available in the CLIB file TCPIP.C. Here is an example which sets three<br />

PPP options using the C-Library wrapper functions:<br />

// Allow remote peer to set primary DNS IP.<br />

unsigned long DNS_Pri_IP = 0L;<br />

// Allow remote peer to set secondary DNS IP.<br />

unsigned long DNS_Sec_IP = 0L;<br />

// Allow remote peer to use VJ TCPIP header compression.<br />

unsigned int ipcp_comp = 1;<br />

PPP_Option My_Options[] = {<br />

{ PPP_IPCP_PROTOCOL, PPP_OPTION_ALLOW, PPP_IPCP_COMP_PROTOCOL,<br />

(const char *)&ipcp_comp, sizeof(ipcp_comp)},<br />

{ PPP_IPCP_PROTOCOL, PPP_OPTION_WANT, PPP_IPCP_DNS_PRI,<br />

(const char *)&DNS_Pri_IP, sizeof(DNS_Pri_IP)},<br />

{ PPP_IPCP_PROTOCOL, PPP_OPTION_WANT, PPP_IPCP_DNS_SEC,<br />

(const char *)&DNS_Sec_IP, sizeof(DNS_Sec_IP)},<br />

// This last PPP_Option is used to terminate array.<br />

{ 0, 0, 0, NULL, 0}<br />

} ;<br />

//***** Call the C-Library functions as follows ****<br />

// Suspend the PPP server<br />

PPP_Server_Suspend(20, &error);<br />

// Install options with CLIB function<br />

PPP_Server_SetOptions(&My_Options[0]); // Point to first member of array<br />

// Re-activate the server<br />

PPP_Server_Activate(20, &error);<br />

Related Topics<br />

Top of list<br />

Index page<br />

PPPSERVER_SUSPEND suspend PPP server task<br />

PPPSERVER_ACTIVATE activate PPP server<br />

PPPSERVER_GET_STATUS Get status of the PPP server<br />

Interrupt 0xAC service 0x60: API_SNMP_GET, Get internal TCP/IP SNMP variables<br />

Accesses Management Information Base (MIB) data structures residing inside the <strong>@CHIP</strong>-<strong>RTOS</strong> TCP/IP<br />

stack.<br />

Parameters<br />

AH<br />

AL<br />

0x60 (= API_SNMP_GET)<br />

1 Get pointer to IfMib data structure (only for the internal Ethernet device interface)<br />

2 Get pointer to IpMib data structure<br />

3 Get pointer to IcmpMib data structure<br />

4 Get pointer to TcpMib data structure<br />

5 Get pointer to UdpMib data structure<br />

Page 132 / 400

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

Saved successfully!

Ooh no, something went wrong!