91,15 → 91,17 |
*/ |
int tl_set_address_port( struct sockaddr * addr, int addrlen, uint16_t port ); |
|
/** Sends the port unreachable ICMP notification. |
* Sends the first packet and releases all the others. |
* Releases the packet queu on error. |
/** Prepares the packet for ICMP error notification. |
* Keeps the first packet and releases all the others. |
* Releases all the packets on error. |
* @param packet_phone The packet server module phone. Input parameter. |
* @param icmp_phone The ICMP module phone. Input parameter. |
* @param packet The packet to be send. Input parameter. |
* @param error The packet error reporting service. Prefixes the received packet. Input parameter. |
* @returns EOK on success. |
* @returns ENOENT if no packet may be sent. |
*/ |
void tl_send_icmp_port_unreachable( int packet_phone, int icmp_phone, packet_t packet, services_t error ); |
int tl_prepare_icmp_packet( int packet_phone, int icmp_phone, packet_t packet, services_t error ); |
|
/** Receives data from the socket into a packet. |
* @param packet_phone The packet server module phone. Input parameter. |