You copied the Doc URL to your clipboard.

10.3.1. icmprcv()

The icmprcv() routine is the ICMP received packet upcall handler.

Syntax

int icmprcv(PACKET p);

where:

p

Is the received packet.

Usage

Call this routine with p->nb_prot and p->nb_plen pointing to the start of the ICMP header, and with p->fhost filled in.

Returned values

Returns one of the following values:

0

If the packet was processed successfully.

ENP_NOT_MINE

If the packet was not for this destination.

ENP_ code

If an error occurred (see ENP_ error codes).

Location

The icmprcv() routine is found in the following file:

inet\icmp.c