diff options
Diffstat (limited to 'dev/etherpkt.cc')
-rw-r--r-- | dev/etherpkt.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/dev/etherpkt.cc b/dev/etherpkt.cc index 292fe7faf..273b8ee64 100644 --- a/dev/etherpkt.cc +++ b/dev/etherpkt.cc @@ -34,29 +34,6 @@ using namespace std; void -PacketData::doext() -{ - _eth = 0; - _ip = 0; - _tcp = 0; - _udp = 0; - - if (!data) - return; - - _eth = data; - if (eth()->type() == ETH_TYPE_IP) { - _ip = eth()->payload(); - - if (ip()->proto() == IP_PROTO_TCP) - _tcp = ip()->payload(); - - if (ip()->proto() == IP_PROTO_UDP) - _udp = ip()->payload(); - } -} - -void PacketData::serialize(ostream &os) { SERIALIZE_SCALAR(length); |