blob: 5bdc587239ed26be91b5b63e77a49ee98455058c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef PINGU_IFACE_H
#define PINGU_IFACE_H
#include <ev.h>
#include "list.h"
struct pingu_iface {
char name[32];
int has_binding;
int fd;
struct list_head iface_list_entry;
// struct list_head burst_list;
struct list_head ping_list;
struct ev_io socket_watcher;
};
struct pingu_iface *pingu_iface_find(const char *name);
struct pingu_iface *pingu_iface_find_or_create(struct ev_loop *loop, const char *name);
int pingu_iface_bind_socket(struct pingu_iface *iface, int log_error);
int pingu_iface_init(struct ev_loop *loop, struct list_head *host_list);
#endif
|