Bug 1070 - csma/ipv6 examples duplicate NS_LOG_COMPONENT_DEFINE
csma/ipv6 examples duplicate NS_LOG_COMPONENT_DEFINE
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: examples
pre-release
All All
: P5 trivial
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-09 16:27 EST by John Abraham
Modified: 2011-03-11 16:50 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Abraham 2011-03-09 16:27:08 EST
csma-raw-ip-socket.cc uses 
NS_LOG_COMPONENT_DEFINE ("CsmaPacketSocketExample");

which is already used by
csma-packet-socket.cc

Similar case for radvd-two-prefix.cc vs radvd.cc
Comment 1 John Abraham 2011-03-10 16:05:35 EST
Similar case for

wimax-simple.cc vs wimax-ipv4.cc
first.cc vs nix-simple.cc
Comment 2 Josh Pelkey 2011-03-10 16:37:17 EST
(In reply to comment #1)
> Similar case for
> 
> wimax-simple.cc vs wimax-ipv4.cc
> first.cc vs nix-simple.cc

Could you post a patch for this? I think you could change the component defines based on the file name. For example, csma-raw-ip-socket.cc should be CsmaRawIpSocket.
Comment 3 Lalith Suresh 2011-03-11 16:50:50 EST
Fixed and committed.

changeset 6892:dc8533a99c63