ICMP module interface. More...
#include <sys/types.h>
#include "device.h"
#include "../structures/measured_strings.h"
#include "../structures/packet/packet.h"
#include "inet.h"
#include "ip_codes.h"
#include "socket_codes.h"
#include "icmp_codes.h"
#include "icmp_common.h"
Functions | |
ICMP module interface | |
int | icmp_destination_unreachable_msg (int icmp_phone, icmp_code_t code, icmp_param_t mtu, packet_t packet) |
Sends the Destination Unreachable error notification packet. | |
int | icmp_source_quench_msg (int icmp_phone, packet_t packet) |
Sends the Source Quench error notification packet. | |
int | icmp_time_exceeded_msg (int icmp_phone, icmp_code_t code, packet_t packet) |
Sends the Time Exceeded error notification packet. | |
int | icmp_parameter_problem_msg (int icmp_phone, icmp_code_t code, icmp_param_t pointer, packet_t packet) |
Sends the Parameter Problem error notification packet. |
ICMP module interface.
The same interface is used for standalone remote modules as well as for bundle modules. The standalone remote modules have to be compiled with the icmp_remote.c source file. The bundle modules with the icmp.c source file.