1 |
/* |
/* |
2 |
* Cisco 7200 (Predator) simulation platform. |
* Cisco router simulation platform. |
3 |
* Copyright (c) 2005,2006 Christophe Fillot (cf@utc.fr) |
* Copyright (c) 2005,2006 Christophe Fillot (cf@utc.fr) |
4 |
* |
* |
5 |
* NetIO Packet Filters. |
* NetIO Packet Filters. |
18 |
/* Directions for filters */ |
/* Directions for filters */ |
19 |
#define NETIO_FILTER_DIR_RX 0 |
#define NETIO_FILTER_DIR_RX 0 |
20 |
#define NETIO_FILTER_DIR_TX 1 |
#define NETIO_FILTER_DIR_TX 1 |
21 |
|
#define NETIO_FILTER_DIR_BOTH 2 |
22 |
|
|
23 |
|
#ifdef GEN_ETH |
24 |
|
struct netio_filter_capture { |
25 |
|
pcap_t *desc; |
26 |
|
pcap_dumper_t *dumper; |
27 |
|
}; |
28 |
|
#endif |
29 |
|
|
30 |
/* Find a filter */ |
/* Find a filter */ |
31 |
netio_pktfilter_t *netio_filter_find(char *name); |
netio_pktfilter_t *netio_filter_find(char *name); |