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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Top of list<br />

Index page<br />

packet. The input parameter to the callback function allows access to the ARP packet. Inside of this function<br />

the user is able to check the content of the incoming ARP packet and decide whether the TCP/IP stack should<br />

process this packet or ignore it. If the callback function returns -1, the incoming packet will be ignored by the<br />

TCP/IP stack.<br />

For structure of an ARP packet see ArpHeader.<br />

To remove the callback function, this API call must be called with a null pointer in ES:DI. Do not forget to<br />

uninstall the callback, if your application exits!<br />

Interrupt 0xAC service 0x80: ADD_DEFAULT_GATEWAY, Add the default gateway<br />

Parameters<br />

AH<br />

BX<br />

ES:DI<br />

DX:SI<br />

This function is used to add the default gateway for all interfaces.<br />

0x80 (= ADD_DEFAULT_GATEWAY)<br />

Device entry of the gateway, 0: Ethernet, 1: PPP server, 2: PPP client, 3: User device driver<br />

Pointer to an unsigned long containing the gateway IP in network byte order.<br />

If BX == 3 DX:SI must contain User device handle pointer.<br />

Return Value<br />

Comments<br />

DX: 0, AX 0 success<br />

DX: -1, AX contains error code<br />

If this function is used, the gateway entry in the chip.ini becomes invalidated, but unchanged.<br />

If the PPP server or PPP client is specified in BX, the gateway is set to the remote peer IP address.<br />

Related Topics<br />

Top of list<br />

Index page<br />

DEL_DEFAULT_GATEWAY API function<br />

DEV_OPEN_IFACE API function<br />

IP Gateway chip.ini Configuration<br />

PPP server Gateway chip.ini Configuration<br />

Interrupt 0xAC service 0x81: DEL_DEFAULT_GATEWAY, Delete the default gateway<br />

Page 142 / 400

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

Saved successfully!

Ooh no, something went wrong!