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.7 by pcg, Mon Apr 7 01:12:56 2003 UTC vs.
Revision 1.8 by pcg, Thu Oct 16 02:28:36 2003 UTC

48/* 48/*
49 * check wether the given path is an absolute pathname 49 * check wether the given path is an absolute pathname
50 */ 50 */
51#define ABSOLUTE_PATH(c) ((c)[0] == '/') 51#define ABSOLUTE_PATH(c) ((c)[0] == '/')
52 52
53static inline void
54id2mac (unsigned int id, void *m) 53extern void id2mac (unsigned int id, void *m);
55{
56 mac &p = *(mac *)m;
57 54
58 p[0] = 0xfe;
59 p[1] = 0xfd;
60 p[2] = 0x80;
61 p[3] = 0x00;
62 p[4] = id >> 8;
63 p[5] = id;
64}
65
66#define mac2id(p) (p[0] & 0x01 ? 0 : (p[4] << 8) | p[5]) 55#define mac2id(p) ((p)[0] & 0x01 ? 0 : ((p)[4] << 8) | (p)[5])
67 56
68struct sliding_window { 57struct sliding_window {
69 u32 v[(WINDOWSIZE + 31) / 32]; 58 u32 v[(WINDOWSIZE + 31) / 32];
70 u32 seq; 59 u32 seq;
71 60

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines