[Ns-developers] DelayBox - ns-3
Matt Crinklaw
matt.crinklaw at gmail.com
Sun Apr 13 20:18:12 PDT 2008
What is the appropriate way to extract the ip src/dst address from a packet?
I see two options: enabling the metadata and somehow hooking into that
(it looks possible, but there isn't much information about the
metadata system and PacketMetadata/PacketMetadata::ItemIterator
classes).
The other option that seems available is to serialize the packet and
then try to deserialize the header.
Ipv4Header iph;
iph.Deserialize(packet->Serialize().Begin());
But it always fails: assert failed.
file=../src/internet-node/ipv4-header.cc, line=288, cond="(verIhl >>
4) == 4"
More information about the Ns-developers
mailing list