OLD | NEW |
(Empty) | |
| 1 // -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- |
| 2 // |
| 3 // Copyright (c) 2006 Georgia Tech Research Corporation |
| 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: George F. Riley<riley@ece.gatech.edu> |
| 19 // |
| 20 |
| 21 // NS3 - Layer 4 Protocol base class |
| 22 // George F. Riley, Georgia Tech, Spring 2007 |
| 23 |
| 24 #include "ip-l4-protocol.h" |
| 25 #include "ns3/uinteger.h" |
| 26 |
| 27 namespace ns3 { |
| 28 |
| 29 NS_OBJECT_ENSURE_REGISTERED (IpL4Protocol); |
| 30 |
| 31 TypeId· |
| 32 IpL4Protocol::GetTypeId (void) |
| 33 { |
| 34 static TypeId tid = TypeId ("ns3::IpL4Protocol") |
| 35 .SetParent<Object> () |
| 36 .AddAttribute ("ProtocolNumber", "The Ip protocol number.", |
| 37 UintegerValue (0), |
| 38 MakeUintegerAccessor (&IpL4Protocol::GetProtocolNumber), |
| 39 MakeUintegerChecker<int> ()) |
| 40 ; |
| 41 return tid; |
| 42 } |
| 43 |
| 44 IpL4Protocol::~IpL4Protocol () |
| 45 { |
| 46 } |
| 47 |
| 48 void |
| 49 IpL4Protocol::ReceiveIcmp (Ipv4Address icmpSource, uint8_t icmpTtl, |
| 50 uint8_t icmpType, uint8_t icmpCode, uint32_t icmpInfo
, |
| 51 Ipv4Address payloadSource,Ipv4Address payloadDestinat
ion, |
| 52 const uint8_t payload[8]) |
| 53 {} |
| 54 void |
| 55 IpL4Protocol::ReceiveIcmp (Ipv6Address icmpSource, uint8_t icmpTtl, |
| 56 uint8_t icmpType, uint8_t icmpCode, uint32_t icmpInfo
, |
| 57 Ipv6Address payloadSource, Ipv6Address payloadDestina
tion, |
| 58 const uint8_t payload[8]) |
| 59 {} |
| 60 |
| 61 } //namespace ns3 |
OLD | NEW |