1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
|
2 /* |
|
3 * Copyright (c) 2007-2009 Strasbourg 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/uinteger.h" |
|
22 |
|
23 #include "ipv6-l4-protocol.h" |
|
24 |
|
25 namespace ns3 |
|
26 { |
|
27 |
|
28 NS_OBJECT_ENSURE_REGISTERED (Ipv6L4Protocol); |
|
29 |
|
30 TypeId Ipv6L4Protocol::GetTypeId () |
|
31 { |
|
32 static TypeId tid = TypeId ("ns3::Ipv6L4Protocol") |
|
33 .SetParent<Object> () |
|
34 .AddAttribute ("ProtocolNumber", "The IPv6 protocol number.", |
|
35 UintegerValue (0), |
|
36 MakeUintegerAccessor (&Ipv6L4Protocol::GetProtocolNumber), |
|
37 MakeUintegerChecker<int> ()) |
|
38 ; |
|
39 return tid; |
|
40 } |
|
41 |
|
42 Ipv6L4Protocol::~Ipv6L4Protocol () |
|
43 { |
|
44 } |
|
45 |
|
46 void Ipv6L4Protocol::ReceiveIcmp (Ipv6Address icmpSource, uint8_t icmpTtl, |
|
47 uint8_t icmpType, uint8_t icmpCode, uint32_t icmpInfo, |
|
48 Ipv6Address payloadSource, Ipv6Address payloadDestination, |
|
49 const uint8_t* payload) |
|
50 {} |
|
51 |
|
52 } /* namespace ns3 */ |
|
53 |
|