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.24 by root, Fri Sep 16 17:59:46 2011 UTC vs.
Revision 1.25 by root, Fri Sep 16 18:01:26 2011 UTC

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 } 59 }
60 60
61 void skip_ipv4_hdr (u16 extra = 0) 61 u16 ipv4_hdr_len () const
62 { 62 {
63 skip_hdr ((((*this)[0] & 15) << 2) + extra); 63 return ((*this)[0] & 15) << 2;
64 } 64 }
65 65
66 void set (const net_packet &pkt) 66 void set (const net_packet &pkt)
67 { 67 {
68 len = pkt.len; 68 len = pkt.len;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines