libicmp/includes/internal/icmp_send.h
2026-03-19 02:43:46 +01:00

17 lines
516 B
C

#ifndef ICMP_SEND_H
#define ICMP_SEND_H
#include <netinet/in.h>
#include "internal/icmp_internal.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