buggy attribute definitions.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Fri, 26 Jun 2009 15:31:20 +0200
changeset 4615 605a0290ba5f
parent 4614 8f115595c247
child 4617 8562a42accf6
buggy attribute definitions.
src/node/udp-socket.cc
--- a/src/node/udp-socket.cc	Fri Jun 26 15:27:39 2009 +0200
+++ b/src/node/udp-socket.cc	Fri Jun 26 15:31:20 2009 +0200
@@ -58,13 +58,13 @@
     .AddAttribute ("IpMulticastIf",
                    "interface index for outgoing multicast on this socket; -1 indicates to use default interface",
                    IntegerValue (-1),
-                   MakeUintegerAccessor (&UdpSocket::GetIpMulticastTtl,
-                                         &UdpSocket::SetIpMulticastTtl),
+                   MakeIntegerAccessor (&UdpSocket::GetIpMulticastIf,
+                                         &UdpSocket::SetIpMulticastIf),
                    MakeIntegerChecker<int32_t> ())
     .AddAttribute ("IpMulticastLoop",
                    "whether outgoing multicast sent also to loopback interface",
                    BooleanValue (false),
-                   MakeUintegerAccessor (&UdpSocket::GetIpMulticastLoop,
+                   MakeBooleanAccessor (&UdpSocket::GetIpMulticastLoop,
                                          &UdpSocket::SetIpMulticastLoop),
                    MakeBooleanChecker ())
     .AddAttribute ("MtuDiscover", "If enabled, every outgoing ip packet will have the DF flag set.",