Catalli's threaded switch
[sliver-openvswitch.git] / lib / dispatch.h
1 #include <sys/types.h>
2 #include <sys/time.h>
3
4 #ifndef DISPATCH_H
5 #define DISPATCH_H 1
6
7 struct pkthdr {
8         struct timeval ts;      /* time stamp */
9         uint32_t caplen;        /* length of portion present */
10         uint32_t len;   /* length this packet (off wire) */
11 };
12
13 typedef void (*pkt_handler)(u_char *user, const struct pkthdr *h, 
14         const u_char *pkt);
15
16 #endif /* DISPATCH_H */