16 lines
521 B
C
16 lines
521 B
C
#ifndef ICMP_SEND_H
|
|
#define ICMP_SEND_H
|
|
|
|
#include "internal/icmp_internal.h"
|
|
#include <netinet/in.h>
|
|
|
|
void send_prepare_destination(struct sockaddr_in *addr, struct in_addr dest);
|
|
int send_set_socket_ttl(struct icmp_handle *h, uint8_t ttl);
|
|
int send_packet(struct icmp_handle *h, const void *buffer, size_t len,
|
|
struct sockaddr_in *dest);
|
|
|
|
int send_validate_handle(struct icmp_handle *h);
|
|
int send_to_destination(struct icmp_handle *h, const void *packet, size_t len,
|
|
struct in_addr dest, uint8_t ttl);
|
|
|
|
#endif
|