src/node/icmp-socket.cc
author vincent@clarinet.u-strasbg.fr
Fri Nov 07 11:36:15 2008 -0800 (2008-11-07)
changeset 3852 9cf7ad0cac85
permissions -rw-r--r--
Initial IPv6 capability
     1 /* -*-  Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
     2 /*
     3  * Copyright (c) 2008 Louis Pasteur University
     4  *
     5  * This program is free software; you can redistribute it and/or modify
     6  * it under the terms of the GNU General Public License version 2 as
     7  * published by the Free Software Foundation;
     8  *
     9  * This program is distributed in the hope that it will be useful,
    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12  * GNU General Public License for more details.
    13  *
    14  * You should have received a copy of the GNU General Public License
    15  * along with this program; if not, write to the Free Software
    16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    17  *
    18  * Author: Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
    19  */
    20 
    21 #include "ns3/object.h"
    22 #include "ns3/log.h"
    23 #include "ns3/uinteger.h"
    24 #include "ns3/trace-source-accessor.h"
    25 #include "icmp-socket.h"
    26 
    27 NS_LOG_COMPONENT_DEFINE ("IcmpSocket");
    28 
    29 namespace ns3 {
    30 
    31   NS_OBJECT_ENSURE_REGISTERED (IcmpSocket);
    32 
    33   TypeId IcmpSocket::GetTypeId (void)
    34   {
    35     static TypeId tid = TypeId ("ns3::IcmpSocket")
    36       .SetParent<Socket> ()
    37       .AddAttribute ("RcvBufSize",
    38           "IcmpSocket maximum receive buffer size (bytes)",
    39           UintegerValue (0xffffffffl),
    40           MakeUintegerAccessor (&IcmpSocket::GetRcvBufSize,
    41             &IcmpSocket::SetRcvBufSize),
    42           MakeUintegerChecker<uint32_t> ())
    43       ;
    44     return tid;
    45   }
    46 
    47   IcmpSocket::IcmpSocket (void)
    48   {
    49     NS_LOG_FUNCTION_NOARGS ();
    50   }
    51 
    52   IcmpSocket::~IcmpSocket (void)
    53   {
    54     NS_LOG_FUNCTION_NOARGS ();
    55   }
    56 
    57 }; /* namespace ns3 */
    58