ring_tx: handle EINTR from sendto
[netsniff-ng.git] / dissector_eth.h
blob79334d62f06ddc51076b662a32ea4c2336662183
1 /*
2 * netsniff-ng - the packet sniffing beast
3 * Copyright 2009, 2010 Daniel Borkmann.
4 * Subject to the GPL, version 2.
5 */
7 #ifndef DISSECTOR_ETH_H
8 #define DISSECTOR_ETH_H
10 #include "hash.h"
11 #include "protos.h"
13 extern struct hash_table eth_lay2;
14 extern struct hash_table eth_lay3;
16 extern void dissector_init_ethernet(int fnttype);
17 extern void dissector_cleanup_ethernet(void);
19 static inline struct protocol *dissector_get_ethernet_entry_point(void)
21 return &ethernet_ops;
24 static inline struct protocol *dissector_get_ethernet_exit_point(void)
26 return &none_ops;
29 #endif /* DISSECTOR_ETH_H */