- Added `socket_create`. - Added `socket_configure`. - Added socket error utilities - Added unit tests.
16 lines
427 B
C
16 lines
427 B
C
#ifndef ICMP_SOCKET_H
|
|
#define ICMP_SOCKET_H
|
|
|
|
#include "internal/icmp_internal.h"
|
|
|
|
/* Create raw ICMP socket */
|
|
int socket_create(struct icmp_handle *h);
|
|
|
|
/* Configure socket (non-blocking, buffer size) */
|
|
int socket_configure(struct icmp_handle *h);
|
|
|
|
/* Internal helpers for error handling */
|
|
void socket_clear_error(struct icmp_handle *h);
|
|
void socket_set_error(struct icmp_handle *h, int code, const char *fmt, ...);
|
|
|
|
#endif
|