protos: remove wrong inlining
[netsniff-ng.git] / src / dissector_eth.h
blob7bcf57a0f38003f64db62c5c414ff543b029d7b7
1 /*
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.
6 */
8 #ifndef DISSECTOR_ETH_H
9 #define DISSECTOR_ETH_H
11 #include "hash.h"
12 #include "proto.h"
13 #include "protos.h"
14 #include "tprintf.h"
15 #include "xsys.h"
16 #include "oui.h"
18 extern struct hash_table eth_lay2;
19 extern struct hash_table eth_lay3;
20 extern struct hash_table eth_lay4;
22 extern void dissector_init_ethernet(int fnttype);
23 extern void dissector_cleanup_ethernet(void);
25 extern char *lookup_port_udp(unsigned int id);
26 extern char *lookup_port_tcp(unsigned int id);
27 extern char *lookup_ether_type(unsigned int id);
29 #ifdef __WITH_PROTOS
30 static inline struct protocol *dissector_get_ethernet_entry_point(void)
32 return &ethernet_ops;
35 static inline struct protocol *dissector_get_ethernet_exit_point(void)
37 return &none_ops;
39 #else
40 static inline struct protocol *dissector_get_ethernet_entry_point(void)
42 return NULL;
45 static inline struct protocol *dissector_get_ethernet_exit_point(void)
47 return NULL;
49 #endif /* __WITH_PROTOS */
50 #endif /* DISSECTOR_ETH_H */