2 * netsniff-ng - the packet sniffing beast
3 * Copyright 2009, 2010 Daniel Borkmann.
4 * Subject to the GPL, version 2.
7 #ifndef DISSECTOR_ETH_H
8 #define DISSECTOR_ETH_H
16 extern struct hash_table eth_lay2
;
17 extern struct hash_table eth_lay3
;
19 extern void dissector_init_ethernet(int fnttype
);
20 extern void dissector_cleanup_ethernet(void);
22 extern char *lookup_port_udp(unsigned int id
);
23 extern char *lookup_port_tcp(unsigned int id
);
24 extern char *lookup_ether_type(unsigned int id
);
26 #ifdef HAVE_DISSECTOR_PROTOS
27 static inline struct protocol
*dissector_get_ethernet_entry_point(void)
32 static inline struct protocol
*dissector_get_ethernet_exit_point(void)
37 static inline struct protocol
*dissector_get_ethernet_entry_point(void)
42 static inline struct protocol
*dissector_get_ethernet_exit_point(void)
47 #endif /* DISSECTOR_ETH_H */