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.

Parameters<br />

AH<br />

ES:DI<br />

0x7A (= IP_USER_CB)<br />

Pointer to IP callback function (or set to null to remove a previously installed callback)<br />

Return Value<br />

Comments<br />

Top of list<br />

Index page<br />

DX: 0, AX 0 success<br />

The application programmer can implement a function of the type (Borland C):<br />

typedef int (huge *MyIpCallbackFuncPtr)(<br />

IpUserCallbackInfo_t far *ipInfo );<br />

If a function of this type is installed by the user, the TCP/IP stack will call this function for any incoming IP<br />

packet. Inside of this function the user is able to check the given IP parameters (which are available through<br />

the IpUserCallbackInfo_t parameter) and decide whether the TCP/IP stack should process this packet or<br />

ignore it.<br />

If the callback function returns -1 the incoming packet will be ignored by the TCP/IP stack.<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 0x7B: ARP_USER_CB, Install ARP callback function<br />

Parameters<br />

AH<br />

ES:DI<br />

This function allows the application programmer to install an ARP callback function.<br />

0x7B (= ARP_USER_CB)<br />

Pointer to ARP callback function (or set to null to remove a previously installed callback)<br />

Return Value<br />

Comments<br />

DX: 0, AX 0 Success<br />

The application programmer can implement a function from the type described below:<br />

typedef int (huge *MyArpCallbackFuncPtr)(<br />

ArpUserCallbackInfo_t far *arpInfo );<br />

If a function of this type is installed by the user, the TCP/IP stack will call this function for any incoming ARP<br />

Page 141 / 400

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

Saved successfully!

Ooh no, something went wrong!