Rev 4726 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4726 | Rev 4731 | ||
---|---|---|---|
Line 89... | Line 89... | ||
89 | * @returns EINVAL if the address length does not match the address family. |
89 | * @returns EINVAL if the address length does not match the address family. |
90 | * @returns EAFNOSUPPORT if the address family is not supported. |
90 | * @returns EAFNOSUPPORT if the address family is not supported. |
91 | */ |
91 | */ |
92 | int tl_set_address_port( struct sockaddr * addr, int addrlen, uint16_t port ); |
92 | int tl_set_address_port( struct sockaddr * addr, int addrlen, uint16_t port ); |
93 | 93 | ||
94 | /** Sends the port unreachable ICMP notification. |
94 | /** Prepares the packet for ICMP error notification. |
95 | * Sends the first packet and releases all the others. |
95 | * Keeps the first packet and releases all the others. |
96 | * Releases the packet queu on error. |
96 | * Releases all the packets on error. |
97 | * @param packet_phone The packet server module phone. Input parameter. |
97 | * @param packet_phone The packet server module phone. Input parameter. |
98 | * @param icmp_phone The ICMP module phone. Input parameter. |
98 | * @param icmp_phone The ICMP module phone. Input parameter. |
99 | * @param packet The packet to be send. Input parameter. |
99 | * @param packet The packet to be send. Input parameter. |
100 | * @param error The packet error reporting service. Prefixes the received packet. Input parameter. |
100 | * @param error The packet error reporting service. Prefixes the received packet. Input parameter. |
- | 101 | * @returns EOK on success. |
|
- | 102 | * @returns ENOENT if no packet may be sent. |
|
101 | */ |
103 | */ |
102 | void tl_send_icmp_port_unreachable( int packet_phone, int icmp_phone, packet_t packet, services_t error ); |
104 | int tl_prepare_icmp_packet( int packet_phone, int icmp_phone, packet_t packet, services_t error ); |
103 | 105 | ||
104 | /** Receives data from the socket into a packet. |
106 | /** Receives data from the socket into a packet. |
105 | * @param packet_phone The packet server module phone. Input parameter. |
107 | * @param packet_phone The packet server module phone. Input parameter. |
106 | * @param packet The new created packet. Output parameter. |
108 | * @param packet The new created packet. Output parameter. |
107 | * @param prefix Reserved packet data prefix length. Input parameter. |
109 | * @param prefix Reserved packet data prefix length. Input parameter. |