1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/node/icmp-socket.cc Fri Nov 07 11:36:15 2008 -0800
1.3 @@ -0,0 +1,58 @@
1.4 +/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
1.5 +/*
1.6 + * Copyright (c) 2008 Louis Pasteur University
1.7 + *
1.8 + * This program is free software; you can redistribute it and/or modify
1.9 + * it under the terms of the GNU General Public License version 2 as
1.10 + * published by the Free Software Foundation;
1.11 + *
1.12 + * This program is distributed in the hope that it will be useful,
1.13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.15 + * GNU General Public License for more details.
1.16 + *
1.17 + * You should have received a copy of the GNU General Public License
1.18 + * along with this program; if not, write to the Free Software
1.19 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1.20 + *
1.21 + * Author: Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
1.22 + */
1.23 +
1.24 +#include "ns3/object.h"
1.25 +#include "ns3/log.h"
1.26 +#include "ns3/uinteger.h"
1.27 +#include "ns3/trace-source-accessor.h"
1.28 +#include "icmp-socket.h"
1.29 +
1.30 +NS_LOG_COMPONENT_DEFINE ("IcmpSocket");
1.31 +
1.32 +namespace ns3 {
1.33 +
1.34 + NS_OBJECT_ENSURE_REGISTERED (IcmpSocket);
1.35 +
1.36 + TypeId IcmpSocket::GetTypeId (void)
1.37 + {
1.38 + static TypeId tid = TypeId ("ns3::IcmpSocket")
1.39 + .SetParent<Socket> ()
1.40 + .AddAttribute ("RcvBufSize",
1.41 + "IcmpSocket maximum receive buffer size (bytes)",
1.42 + UintegerValue (0xffffffffl),
1.43 + MakeUintegerAccessor (&IcmpSocket::GetRcvBufSize,
1.44 + &IcmpSocket::SetRcvBufSize),
1.45 + MakeUintegerChecker<uint32_t> ())
1.46 + ;
1.47 + return tid;
1.48 + }
1.49 +
1.50 + IcmpSocket::IcmpSocket (void)
1.51 + {
1.52 + NS_LOG_FUNCTION_NOARGS ();
1.53 + }
1.54 +
1.55 + IcmpSocket::~IcmpSocket (void)
1.56 + {
1.57 + NS_LOG_FUNCTION_NOARGS ();
1.58 + }
1.59 +
1.60 +}; /* namespace ns3 */
1.61 +