Rev 4720 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4720 | Rev 4756 | ||
---|---|---|---|
Line 60... | Line 60... | ||
60 | /*@{*/ |
60 | /*@{*/ |
61 | 61 | ||
62 | /** Sends the Destination Unreachable error notification packet. |
62 | /** Sends the Destination Unreachable error notification packet. |
63 | * Beginning of the packet is sent as the notification packet data. |
63 | * Beginning of the packet is sent as the notification packet data. |
64 | * The source and the destination addresses should be set in the original packet. |
64 | * The source and the destination addresses should be set in the original packet. |
65 | * @param icmp_phone The ICMP module phone used for (semi)remote calls. Input parameter. |
65 | * @param[in] icmp_phone The ICMP module phone used for (semi)remote calls. |
66 | * @param code The error specific code. Input parameter. |
66 | * @param[in] code The error specific code. |
67 | * @param mtu The error MTU value. Input parameter. |
67 | * @param[in] mtu The error MTU value. |
68 | * @param packet The original packet. |
68 | * @param[in] packet The original packet. |
69 | * @returns EOK on success. |
69 | * @returns EOK on success. |
70 | * @returns EPERM if the ICMP error notifications are disabled. |
70 | * @returns EPERM if the ICMP error notifications are disabled. |
71 | * @returns ENOMEM if there is not enough memory left. |
71 | * @returns ENOMEM if there is not enough memory left. |
72 | */ |
72 | */ |
73 | int icmp_destination_unreachable_msg( int icmp_phone, icmp_code_t code, icmp_param_t mtu, packet_t packet ); |
73 | int icmp_destination_unreachable_msg( int icmp_phone, icmp_code_t code, icmp_param_t mtu, packet_t packet ); |
74 | 74 | ||
75 | /** Sends the Source Quench error notification packet. |
75 | /** Sends the Source Quench error notification packet. |
76 | * Beginning of the packet is sent as the notification packet data. |
76 | * Beginning of the packet is sent as the notification packet data. |
77 | * The source and the destination addresses should be set in the original packet. |
77 | * The source and the destination addresses should be set in the original packet. |
78 | * @param icmp_phone The ICMP module phone used for (semi)remote calls. Input parameter. |
78 | * @param[in] icmp_phone The ICMP module phone used for (semi)remote calls. |
79 | * @param packet The original packet. |
79 | * @param[in] packet The original packet. |
80 | * @returns EOK on success. |
80 | * @returns EOK on success. |
81 | * @returns EPERM if the ICMP error notifications are disabled. |
81 | * @returns EPERM if the ICMP error notifications are disabled. |
82 | * @returns ENOMEM if there is not enough memory left. |
82 | * @returns ENOMEM if there is not enough memory left. |
83 | */ |
83 | */ |
84 | int icmp_source_quench_msg( int icmp_phone, packet_t packet ); |
84 | int icmp_source_quench_msg( int icmp_phone, packet_t packet ); |
85 | 85 | ||
86 | /** Sends the Time Exceeded error notification packet. |
86 | /** Sends the Time Exceeded error notification packet. |
87 | * Beginning of the packet is sent as the notification packet data. |
87 | * Beginning of the packet is sent as the notification packet data. |
88 | * The source and the destination addresses should be set in the original packet. |
88 | * The source and the destination addresses should be set in the original packet. |
89 | * @param icmp_phone The ICMP module phone used for (semi)remote calls. Input parameter. |
89 | * @param[in] icmp_phone The ICMP module phone used for (semi)remote calls. |
90 | * @param code The error specific code. Input parameter. |
90 | * @param[in] code The error specific code. |
91 | * @param packet The original packet. |
91 | * @param[in] packet The original packet. |
92 | * @returns EOK on success. |
92 | * @returns EOK on success. |
93 | * @returns EPERM if the ICMP error notifications are disabled. |
93 | * @returns EPERM if the ICMP error notifications are disabled. |
94 | * @returns ENOMEM if there is not enough memory left. |
94 | * @returns ENOMEM if there is not enough memory left. |
95 | */ |
95 | */ |
96 | int icmp_time_exceeded_msg( int icmp_phone, icmp_code_t code, packet_t packet ); |
96 | int icmp_time_exceeded_msg( int icmp_phone, icmp_code_t code, packet_t packet ); |
97 | 97 | ||
98 | /** Sends the Parameter Problem error notification packet. |
98 | /** Sends the Parameter Problem error notification packet. |
99 | * Beginning of the packet is sent as the notification packet data. |
99 | * Beginning of the packet is sent as the notification packet data. |
100 | * The source and the destination addresses should be set in the original packet. |
100 | * The source and the destination addresses should be set in the original packet. |
101 | * @param icmp_phone The ICMP module phone used for (semi)remote calls. Input parameter. |
101 | * @param[in] icmp_phone The ICMP module phone used for (semi)remote calls. |
102 | * @param code The error specific code. Input parameter. |
102 | * @param[in] code The error specific code. |
103 | * @param pointer The problematic parameter offset. Input parameter. |
103 | * @param[in] pointer The problematic parameter offset. |
104 | * @param packet The original packet. |
104 | * @param[in] packet The original packet. |
105 | * @returns EOK on success. |
105 | * @returns EOK on success. |
106 | * @returns EPERM if the ICMP error notifications are disabled. |
106 | * @returns EPERM if the ICMP error notifications are disabled. |
107 | * @returns ENOMEM if there is not enough memory left. |
107 | * @returns ENOMEM if there is not enough memory left. |
108 | */ |
108 | */ |
109 | int icmp_parameter_problem_msg( int icmp_phone, icmp_code_t code, icmp_param_t pointer, packet_t packet ); |
109 | int icmp_parameter_problem_msg( int icmp_phone, icmp_code_t code, icmp_param_t pointer, packet_t packet ); |