"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/ec_redirect.h" between
ettercap-0.8.3.tar.gz and ettercap-0.8.3.1.tar.gz

About: ettercap is a multipurpose sniffer/interceptor/logger for switched LAN.

ec_redirect.h  (ettercap-0.8.3):ec_redirect.h  (ettercap-0.8.3.1)
skipping to change at line 17 skipping to change at line 17
} ec_redir_act_t; } ec_redir_act_t;
typedef enum { typedef enum {
EC_REDIR_PROTO_IPV4, EC_REDIR_PROTO_IPV4,
EC_REDIR_PROTO_IPV6 EC_REDIR_PROTO_IPV6
} ec_redir_proto_t; } ec_redir_proto_t;
struct redir_entry { struct redir_entry {
char *name; char *name;
ec_redir_proto_t proto; ec_redir_proto_t proto;
char *source;
char *destination; char *destination;
u_int16 from_port; u_int16 from_port;
u_int16 to_port; u_int16 to_port;
u_int16 orig_nport;
struct ip_addr dst_network;
struct ip_addr dst_netmask;
LIST_ENTRY(redir_entry) next; LIST_ENTRY(redir_entry) next;
}; };
struct serv_entry { struct serv_entry {
char *name; char *name;
u_int16 from_port; u_int16 from_port;
u_int16 to_port; u_int16 to_port;
SLIST_ENTRY(serv_entry) next; SLIST_ENTRY(serv_entry) next;
}; };
/* proto */ /* proto */
EC_API_EXTERN int ec_redirect(ec_redir_act_t action, char *name, EC_API_EXTERN int ec_redirect(ec_redir_act_t action, char *name,
ec_redir_proto_t proto, const char *source, const char *destination, ec_redir_proto_t proto, const char *destination,
u_int16 sport, u_int16 dport); u_int16 sport, u_int16 dport);
EC_API_EXTERN int ec_walk_redirects(void (*func)(struct redir_entry*)); EC_API_EXTERN int ec_walk_redirects(void (*func)(struct redir_entry*));
EC_API_EXTERN int ec_walk_redirect_services(void (*func)(struct serv_entry*)); EC_API_EXTERN int ec_walk_redirect_services(void (*func)(struct serv_entry*));
EC_API_EXTERN int ec_redirect_lookup(struct packet_object *po);
EC_API_EXTERN void ec_redirect_cleanup(void); EC_API_EXTERN void ec_redirect_cleanup(void);
#endif #endif
/* EOF */ /* EOF */
// vim:ts=3:expandtab // vim:ts=3:expandtab
 End of changes. 4 change blocks. 
2 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)