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
17 extern struct hash_table eth_lay2
;
18 extern struct hash_table eth_lay3
;
20 extern void dissector_init_ethernet(int fnttype
);
21 extern void dissector_cleanup_ethernet(void);
23 extern char *lookup_port_udp(unsigned int id
);
24 extern char *lookup_port_tcp(unsigned int id
);
25 extern char *lookup_ether_type(unsigned int id
);
28 static inline struct protocol
*dissector_get_ethernet_entry_point(void)
33 static inline struct protocol
*dissector_get_ethernet_exit_point(void)
38 static inline struct protocol
*dissector_get_ethernet_entry_point(void)
43 static inline struct protocol
*dissector_get_ethernet_exit_point(void)
47 #endif /* __WITH_PROTOS */
48 #endif /* DISSECTOR_ETH_H */