--- gvpe/src/device.h 2003/03/01 15:53:03 1.1 +++ gvpe/src/device.h 2003/04/02 03:25:17 1.3 @@ -19,10 +19,6 @@ #ifndef VPE_DEVICE_H__ #define VPE_DEVICE_H__ -#include "config.h" - -#include - #include #include "gettext.h" @@ -34,6 +30,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