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

Comparing gvpe/src/device.h (file contents):
Revision 1.23 by root, Tue Feb 8 23:13:48 2011 UTC vs.
Revision 1.25 by root, Fri Sep 16 18:01:26 2011 UTC

54 54
55 void skip_hdr (u16 hdrsize) 55 void skip_hdr (u16 hdrsize)
56 { 56 {
57 len -= hdrsize; 57 len -= hdrsize;
58 memmove ((void *)&(*this)[0], (void *)&(*this)[hdrsize], len); 58 memmove ((void *)&(*this)[0], (void *)&(*this)[hdrsize], len);
59 }
60
61 u16 ipv4_hdr_len () const
62 {
63 return ((*this)[0] & 15) << 2;
59 } 64 }
60 65
61 void set (const net_packet &pkt) 66 void set (const net_packet &pkt)
62 { 67 {
63 len = pkt.len; 68 len = pkt.len;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines