docs: fixed minor typo
[netsniff-ng.git] / src / dissector_eth.h
blob876ef4998f94f47094cb13df85b8e259fa5cbda7
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_ETHERNET_H
9 #define DISSECTOR_ETHERNET_H
11 #include "hash.h"
12 #include "proto_struct.h"
13 #include "tprintf.h"
14 #include "xsys.h"
16 extern struct hash_table eth_lay2;
17 extern struct hash_table eth_lay3;
18 extern struct hash_table eth_lay4;
20 extern void dissector_init_ethernet(int fnttype);
21 extern void dissector_cleanup_ethernet(void);
23 extern char *lookup_vendor(unsigned int id);
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);
28 extern struct protocol ethernet_ops;
29 extern struct protocol hex_ops;
31 static inline struct protocol *dissector_get_ethernet_entry_point(void)
33 return &ethernet_ops;
36 static inline struct protocol *dissector_get_ethernet_exit_point(void)
38 return &hex_ops;
41 #endif /* DISSECTOR_ETHERNET_H */