ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/util.h
(Generate patch)

Comparing gvpe/src/util.h (file contents):
Revision 1.19 by pcg, Tue Jun 21 08:34:47 2005 UTC vs.
Revision 1.22 by pcg, Sun Dec 2 00:09:36 2007 UTC

27#include <openssl/rsa.h> 27#include <openssl/rsa.h>
28 28
29#include "gettext.h" 29#include "gettext.h"
30 30
31#include "slog.h" 31#include "slog.h"
32#include "iom.h" 32#include "ev_cpp.h"
33#include "callback.h"
34
35typedef ev_tstamp tstamp;
33 36
34/* 37/*
35 * check for an existing gvpe for this net, and write pid to pidfile 38 * check for an existing gvpe for this net, and write pid to pidfile
36 */ 39 */
37extern int write_pidfile (void); 40extern int write_pidfile (void);
57 60
58extern void id2mac (unsigned int id, void *m); 61extern void id2mac (unsigned int id, void *m);
59 62
60#define mac2id(p) ((p)[0] & 0x01 ? 0 : ((p)[4] << 8) | (p)[5]) 63#define mac2id(p) ((p)[0] & 0x01 ? 0 : ((p)[4] << 8) | (p)[5])
61 64
62struct sliding_window { 65struct sliding_window
66{
63 u32 v[(WINDOWSIZE + 31) / 32]; 67 u32 v[(WINDOWSIZE + 31) / 32];
64 u32 seq; 68 u32 seq;
65 69
66 void reset (u32 seqno) 70 void reset (u32 seqno)
67 { 71 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines