--- gvpe/src/device.h 2003/03/01 15:53:03 1.1 +++ gvpe/src/device.h 2003/03/28 04:05:10 1.2 @@ -22,6 +22,7 @@ #include "config.h" #include +#include #include @@ -34,6 +35,11 @@ u8 &operator[] (u16 offset); + void skip_hdr (u16 hdrsize) + { + memmove ((void *)&(*this)[0], (void *)&(*this)[hdrsize], len -= hdrsize); + } + bool is_arp () { return (*this)[12] == 0x08 && (*this)[13] == 0x06 // 0806 protocol