2 * netsniff-ng - the packet sniffing beast
3 * By Daniel Borkmann <daniel@netsniff-ng.org>
4 * Copyright 2009, 2010 Daniel Borkmann.
5 * Subject to the GPL, version 2.
8 #ifndef DISSECTOR_ETH_H
9 #define DISSECTOR_ETH_H
18 extern struct hash_table eth_lay2
;
19 extern struct hash_table eth_lay3
;
21 extern void dissector_init_ethernet(int fnttype
);
22 extern void dissector_cleanup_ethernet(void);
24 extern char *lookup_port_udp(unsigned int id
);
25 extern char *lookup_port_tcp(unsigned int id
);
26 extern char *lookup_ether_type(unsigned int id
);
29 static inline struct protocol
*dissector_get_ethernet_entry_point(void)
34 static inline struct protocol
*dissector_get_ethernet_exit_point(void)
39 static inline struct protocol
*dissector_get_ethernet_entry_point(void)
44 static inline struct protocol
*dissector_get_ethernet_exit_point(void)
48 #endif /* __WITH_PROTOS */
49 #endif /* DISSECTOR_ETH_H */