Cleanup, reindent, NULL -> 0.
This commit is contained in:
1 parent
d114b7872d
commit
5db36bee27
5 files changed
+181
-126
No files matched your search
@@ -1,3 +1,23 @@
|
||||
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* Copyright (c) 2008 INRIA
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation;
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
|
||||
*/
|
||||
|
||||
#ifndef ICMPV4_H
|
||||
#define ICMPV4_H
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ class Icmpv6Header : public Header
|
||||
ICMPV6_ERROR_PACKET_TOO_BIG,
|
||||
ICMPV6_ERROR_TIME_EXCEEDED,
|
||||
ICMPV6_ERROR_PARAMETER_ERROR,
|
||||
ICMPV6_ECHO_REQUEST=128,
|
||||
ICMPV6_ECHO_REQUEST = 128,
|
||||
ICMPV6_ECHO_REPLY,
|
||||
ICMPV6_SUBSCRIBE_REQUEST,
|
||||
ICMPV6_SUBSCRIBE_REPORT,
|
||||
|
||||
@@ -278,7 +278,7 @@ void Icmpv6L4Protocol::ReceiveLLA (Icmpv6OptionLinkLayerAddress lla, Ipv6Address
|
||||
{
|
||||
NS_LOG_FUNCTION (this << lla << src << dst << interface);
|
||||
Address hardwareAddress;
|
||||
NdiscCache::Entry* entry = NULL;
|
||||
NdiscCache::Entry* entry = 0;
|
||||
Ptr<NdiscCache> cache = FindCache (interface->GetDevice ());
|
||||
|
||||
/* check if we have this address in our cache */
|
||||
@@ -347,7 +347,7 @@ void Icmpv6L4Protocol::HandleRS (Ptr<Packet> packet, Ipv6Address const &src, Ipv
|
||||
packet->RemoveHeader (rsHeader);
|
||||
Address hardwareAddress;
|
||||
Icmpv6OptionLinkLayerAddress lla (1);
|
||||
NdiscCache::Entry* entry = NULL;
|
||||
NdiscCache::Entry* entry = 0;
|
||||
Ptr<NdiscCache> cache = FindCache (interface->GetDevice ());
|
||||
|
||||
if (src != Ipv6Address::GetAny ())
|
||||
@@ -664,7 +664,7 @@ void Icmpv6L4Protocol::HandleRedirection (Ptr<Packet> packet, Ipv6Address const
|
||||
if (hasLla)
|
||||
{
|
||||
/* update the cache if needed */
|
||||
NdiscCache::Entry* entry = NULL;
|
||||
NdiscCache::Entry* entry = 0;
|
||||
Ptr<NdiscCache> cache = FindCache (interface->GetDevice ());
|
||||
|
||||
entry = cache->Lookup (redirTarget);
|
||||
|
||||
Reference in new issue
Block a user