/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2007 INRIA * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Author: Mathieu Lacage */ /* taken from src/node/ipv4.h and adapted to IPv6 */ #include "ns3/assert.h" #include "ns3/node.h" #include "ns3/boolean.h" #include "ipv6.h" namespace ns3 { NS_OBJECT_ENSURE_REGISTERED (Ipv6); TypeId Ipv6::GetTypeId (void) { static TypeId tid = TypeId ("ns3::Ipv6") .SetParent () .AddAttribute ("IpForward", "Globally enable or disable IP forwarding for all current and future IPv6 devices.", BooleanValue (false), MakeBooleanAccessor (&Ipv6::SetIpForward, &Ipv6::GetIpForward), MakeBooleanChecker ()) #if 0 .AddAttribute ("MtuDiscover", "If enabled, every outgoing IPv6 packet will have the DF flag set.", BooleanValue (false), MakeBooleanAccessor (&UdpSocket::SetMtuDiscover, &UdpSocket::GetMtuDiscover), MakeBooleanChecker ()) #endif ; return tid; } Ipv6::Ipv6 () {} Ipv6::~Ipv6 () {} } /* namespace ns3 */