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