X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fdispatch.h;fp=lib%2Fdispatch.h;h=1bc11679da4521f29cce49d1186a732829ac5991;hb=ea413ef8eecbcd3034446b9dfd49714cbb6815d2;hp=0000000000000000000000000000000000000000;hpb=d59051362fa8ac4369f1be69ac942a52c9a424b9;p=sliver-openvswitch.git diff --git a/lib/dispatch.h b/lib/dispatch.h new file mode 100644 index 000000000..1bc11679d --- /dev/null +++ b/lib/dispatch.h @@ -0,0 +1,16 @@ +#include +#include + +#ifndef DISPATCH_H +#define DISPATCH_H 1 + +struct pkthdr { + struct timeval ts; /* time stamp */ + uint32_t caplen; /* length of portion present */ + uint32_t len; /* length this packet (off wire) */ +}; + +typedef void (*pkt_handler)(u_char *user, const struct pkthdr *h, + const u_char *pkt); + +#endif /* DISPATCH_H */