Bug 279

Summary: Packets need metadata support for printing without header checking
Product: ns-3 Reporter: Mathieu Lacage <mathieu.lacage>
Component: coreAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: add EnableChecking and EnablePrinting

Description Mathieu Lacage 2008-08-09 13:58:24 UTC
there are lots of cases where we want to enable the packet metadata to be able to print the content of the packet but where we don't want to enable the packet error checking. 

We could add the following functions:

class Packet
{
public:
  static void EnableChecking (void);
  static void DisableChecking (void);
};

the default would be no checking to be consistent with the "no metadata" default.
Comment 1 Tom Henderson 2008-08-10 13:26:01 UTC
+1
Comment 2 Craig Dowell 2008-08-10 14:33:37 UTC
+1
Comment 3 Mathieu Lacage 2008-08-11 13:17:18 UTC
Created attachment 227 [details]
add EnableChecking and EnablePrinting
Comment 4 Mathieu Lacage 2008-08-11 13:18:19 UTC
Packet::EnableMetadata is made deprecated. Packet::EnablePrinting allows you to call Packet::Print successfully. Packet::EnableChecking enables error checking.

please, review.
Comment 5 Tom Henderson 2008-08-25 13:04:04 UTC
(In reply to comment #4)
> Packet::EnableMetadata is made deprecated. Packet::EnablePrinting allows you to
> call Packet::Print successfully. Packet::EnableChecking enables error checking.
> 
> please, review.
> 

I reviewed this patch and it looks good to me.
Comment 6 Mathieu Lacage 2008-08-25 18:13:56 UTC
changeset: 065488d0420c