1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
3 * Copyright (c) 2008 Louis Pasteur University
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;
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.
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
18 * Author: Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
21 #include "ns3/object.h"
23 #include "ns3/uinteger.h"
24 #include "ns3/trace-source-accessor.h"
25 #include "icmp-socket.h"
27 NS_LOG_COMPONENT_DEFINE ("IcmpSocket");
31 NS_OBJECT_ENSURE_REGISTERED (IcmpSocket);
33 TypeId IcmpSocket::GetTypeId (void)
35 static TypeId tid = TypeId ("ns3::IcmpSocket")
37 .AddAttribute ("RcvBufSize",
38 "IcmpSocket maximum receive buffer size (bytes)",
39 UintegerValue (0xffffffffl),
40 MakeUintegerAccessor (&IcmpSocket::GetRcvBufSize,
41 &IcmpSocket::SetRcvBufSize),
42 MakeUintegerChecker<uint32_t> ())
47 IcmpSocket::IcmpSocket (void)
49 NS_LOG_FUNCTION_NOARGS ();
52 IcmpSocket::~IcmpSocket (void)
54 NS_LOG_FUNCTION_NOARGS ();
57 }; /* namespace ns3 */