Bugzilla – Full Text Bug Listing |
Summary: | Cannot deserialize headers from packets built from raw data | ||
---|---|---|---|
Product: | ns-3 | Reporter: | Gustavo J. A. M. Carneiro <gjcarneiro> |
Component: | core | Assignee: | ns-bugs <ns-bugs> |
Status: | RESOLVED INVALID | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | pre-release | ||
Hardware: | PC | ||
OS: | Linux |
Description
Gustavo J. A. M. Carneiro
2007-07-15 19:48:45 EDT
And another reason this limitation must be eliminated is that we might want to interface ns-3 with real live traffic, someday... This is not a bug. You just have to make sure you never enable the metadata support which is, obviously, incompatible with reading headers from raw data. i.e., make sure you never call Packet::EnableMetadata. I never call it, so I assume it is active by default? It is not active by default but it is used by the ascii tracer so, you cannot use the ascii tracer with raw data packets should there be a mode that allows mixed operation of metadata-encoded headers and non-metadata-encoded? (i.e., not dying in a fatal assert when metadata remove header fails)? Another possibility might be to overload RemoveHeader and allow to pass in a pretty-print function as an optional argument? We could implement a mode where we store the metadata when we have some, we use it to pretty print but we do not check correctness of add/remove operations. That would be quite a bit of work though. i.e.: patches are welcome. |