TAILQ_FIRST(&state->arp_states) == NULL)
{
eloop_event_delete(ifp->ctx->eloop, state->fd);
- if_closeraw(state->fd);
+ if_closeraw(ifp, state->fd);
free(state);
ifp->if_data[IF_DATA_ARP] = NULL;
}
if (state->raw_fd != -1) {
eloop_event_delete(ifp->ctx->eloop, state->raw_fd);
- if_closeraw(state->raw_fd);
+ if_closeraw(ifp, state->raw_fd);
state->raw_fd = -1;
}
const char *if_pfname = "Berkley Packet Filter";
void
-if_closeraw(int fd)
+if_closeraw(__unused struct interface *ifp, int fd)
{
close(fd);
const char *if_pfname = "Packet Socket";
void
-if_closeraw(int fd)
+if_closeraw(__unused struct interface *ifp, int fd)
{
close(fd);
const char *if_pfname = "SunOS";
void
-if_closeraw(int fd)
+if_closeraw(struct interface *ifp, int fd)
{
+ UNUSED(ifp);
UNUSED(fd);
}
ssize_t if_sendraw(const struct interface *, int, uint16_t,
const void *, size_t);
ssize_t if_readraw(struct interface *, int, void *, size_t, int *);
-void if_closeraw(int);
+void if_closeraw(struct interface *, int);
int if_address(const struct interface *,
const struct in_addr *, const struct in_addr *,