git://git.onelab.eu
/
sliver-openvswitch.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
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 */