00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "ipv4-l4-protocol.h"
00025 #include "ns3/uinteger.h"
00026
00027 namespace ns3 {
00028
00029 NS_OBJECT_ENSURE_REGISTERED (Ipv4L4Protocol);
00030
00031 TypeId
00032 Ipv4L4Protocol::GetTypeId (void)
00033 {
00034 static TypeId tid = TypeId ("ns3::Ipv4L4Protocol")
00035 .SetParent<Object> ()
00036 .AddAttribute ("ProtocolNumber", "The Ipv4 protocol number.",
00037 UintegerValue (0),
00038 MakeUintegerAccessor (&Ipv4L4Protocol::GetProtocolNumber),
00039 MakeUintegerChecker<int> ())
00040 ;
00041 return tid;
00042 }
00043
00044 Ipv4L4Protocol::~Ipv4L4Protocol ()
00045 {}
00046
00047 void
00048 Ipv4L4Protocol::ReceiveIcmp (Ipv4Address icmpSource, uint8_t icmpTtl,
00049 uint8_t icmpType, uint8_t icmpCode, uint32_t icmpInfo,
00050 Ipv4Address payloadSource,Ipv4Address payloadDestination,
00051 const uint8_t payload[8])
00052 {}
00053
00054 }