src/ and utils/ changes for IPv4 routing rework

This commit is contained in:
Tom Henderson committed 2009-05-28 21:37:25 -07:00
1 parent bbb1ec0b67
commit cd5025a550
76 files changed
+5534 -4444

No files matched your search

+15 -2
View File
@@ -21,6 +21,7 @@
#include "ns3/object.h"
#include "ns3/log.h"
#include "ns3/uinteger.h"
#include "ns3/integer.h"
#include "ns3/boolean.h"
#include "ns3/trace-source-accessor.h"
#include "udp-socket.h"
@@ -47,13 +48,25 @@ UdpSocket::GetTypeId (void)
UintegerValue (0),
MakeUintegerAccessor (&UdpSocket::GetIpTtl,
&UdpSocket::SetIpTtl),
MakeUintegerChecker<uint32_t> ())
MakeUintegerChecker<uint8_t> ())
.AddAttribute ("IpMulticastTtl",
"socket-specific TTL for multicast IP packets (if non-zero)",
UintegerValue (0),
MakeUintegerAccessor (&UdpSocket::GetIpMulticastTtl,
&UdpSocket::SetIpMulticastTtl),
MakeUintegerChecker<uint32_t> ())
MakeUintegerChecker<uint8_t> ())
.AddAttribute ("IpMulticastIf",
"interface index for outgoing multicast on this socket; -1 indicates to use default interface",
IntegerValue (-1),
MakeUintegerAccessor (&UdpSocket::GetIpMulticastTtl,
&UdpSocket::SetIpMulticastTtl),
MakeIntegerChecker<int32_t> ())
.AddAttribute ("IpMulticastLoop",
"whether outgoing multicast sent also to loopback interface",
BooleanValue (false),
MakeUintegerAccessor (&UdpSocket::GetIpMulticastLoop,
&UdpSocket::SetIpMulticastLoop),
MakeBooleanChecker ())
.AddAttribute ("MtuDiscover", "If enabled, every outgoing ip packet will have the DF flag set.",
BooleanValue (false),
MakeBooleanAccessor (&UdpSocket::SetMtuDiscover,