src/internet/model/ipv6-raw-socket-impl.h
author Tommaso Pecorella <tommaso.pecorella@unifi.it>
Wed, 20 Nov 2013 20:15:02 +0100
changeset 10440 1e48ff9185f1
parent 10405 45c8fceae24e
child 11779 710f305a22c9
permissions -rw-r--r--
Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7385
10beb0e53130 standardize emacs c++ mode comments
Vedran Mileti? <rivanvx@gmail.com>
parents: 7176
diff changeset
     1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
     2
/*
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
     3
 * Copyright (c) 2007-2009 Strasbourg University
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
     4
 *
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License version 2 as
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
     7
 * published by the Free Software Foundation;
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
     8
 *
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    12
 * GNU General Public License for more details.
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    13
 *
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    16
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    17
 *
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    18
 * Author: Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    19
 */
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    20
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    21
#ifndef IPV6_RAW_SOCKET_IMPL_H
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    22
#define IPV6_RAW_SOCKET_IMPL_H
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    23
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    24
#include <list>
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    25
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    26
#include "ns3/socket.h"
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    27
#include "ns3/ipv6-address.h"
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    28
#include "ns3/ipv6-header.h"
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    29
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    30
namespace ns3
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    31
{
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    32
 
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    33
class NetDevice;
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    34
class Node;
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    35
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    36
/**
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    37
 * \class Ipv6RawSocketImpl
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    38
 * \brief IPv6 raw socket.
10440
1e48ff9185f1 Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 10405
diff changeset
    39
 * \ingroup socket
7650
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    40
 *
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    41
 * A RAW Socket typically is used to access specific IP layers not usually
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    42
 * available through L4 sockets, e.g., ICMP. The implementer should take
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    43
 * particular care to define the Ipv6RawSocketImpl Attributes, and in
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    44
 * particular the Protocol attribute.
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    45
 * Not setting it will result in a zero protocol at IP level (corresponding
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    46
 * to the HopByHop IPv6 Extension header, i.e., Ipv6ExtensionHopByHopHeader)
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    47
 * when sending data through the socket, which is probably not the intended
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    48
 * behavior.
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    49
 *
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    50
 * A correct example is (from src/applications/model/radvd.cc):
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    51
 * \code
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    52
   if (!m_socket)
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    53
     {
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    54
       TypeId tid = TypeId::LookupByName ("ns3::Ipv6RawSocketFactory");
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    55
       m_socket = Socket::CreateSocket (GetNode (), tid);
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    56
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    57
       NS_ASSERT (m_socket);
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    58
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    59
       m_socket->SetAttribute ("Protocol", UintegerValue(Ipv6Header::IPV6_ICMPV6));
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    60
       m_socket->SetRecvCallback (MakeCallback (&Radvd::HandleRead, this));
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    61
     }
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    62
 * \endcode
46bfff3026b7 Bug 1318 - Clarify the Ipv6RawSocket documentation.
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7385
diff changeset
    63
 *
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    64
 */
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    65
class Ipv6RawSocketImpl : public Socket
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    66
{
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    67
public:
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    68
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    69
   * \brief Get the type ID of this class.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    70
   * \return type ID
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    71
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    72
  static TypeId GetTypeId ();
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    73
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    74
  Ipv6RawSocketImpl ();
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    75
  virtual ~Ipv6RawSocketImpl ();
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    76
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    77
  /**
10440
1e48ff9185f1 Bug 938 - missing Doxygen in ns-3 (internet model + helper)
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 10405
diff changeset
    78
   * \brief Set the node associated with this socket.
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    79
   * \param node node to set
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    80
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    81
  void SetNode (Ptr<Node> node);
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    82
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    83
  virtual enum Socket::SocketErrno GetErrno () const;
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    84
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    85
  /**
6692
591fb1aa0ca4 Avoid enum name collision in socket
Josh Pelkey <jpelkey@gatech.edu>
parents: 6689
diff changeset
    86
   * \brief Get socket type (NS3_SOCK_RAW)
6689
e2de571e920a Implement Socket::GetSocketType
Josh Pelkey <jpelkey@gatech.edu>
parents: 6448
diff changeset
    87
   * \return socket type
e2de571e920a Implement Socket::GetSocketType
Josh Pelkey <jpelkey@gatech.edu>
parents: 6448
diff changeset
    88
   */
e2de571e920a Implement Socket::GetSocketType
Josh Pelkey <jpelkey@gatech.edu>
parents: 6448
diff changeset
    89
  virtual enum Socket::SocketType GetSocketType () const;
e2de571e920a Implement Socket::GetSocketType
Josh Pelkey <jpelkey@gatech.edu>
parents: 6448
diff changeset
    90
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    91
  virtual Ptr<Node> GetNode () const;
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    92
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    93
  virtual int Bind (const Address& address);
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    94
  virtual int Bind ();
7717
cfa1741013dd Add support for IPv6 transport protocols
Ken Renard <kdrenard2@gmail.com>
parents: 7696
diff changeset
    95
  virtual int Bind6 ();
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    96
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    97
  virtual int GetSockName (Address& address) const;
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
    98
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
    99
  virtual int Close ();
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   100
  virtual int ShutdownSend ();
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   101
  virtual int ShutdownRecv ();
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   102
  virtual int Connect (const Address& address);
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   103
  virtual int Listen ();
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   104
  virtual uint32_t GetTxAvailable () const;
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   105
  virtual uint32_t GetRxAvailable () const;
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   106
  virtual int Send (Ptr<Packet> p, uint32_t flags);
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   107
  virtual int SendTo (Ptr<Packet> p, uint32_t flags, const Address& toAddress);
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   108
  virtual Ptr<Packet> Recv (uint32_t maxSize, uint32_t flags);
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   109
  virtual Ptr<Packet> RecvFrom (uint32_t maxSize, uint32_t flags, Address& fromAddress);
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   110
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   111
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   112
   * \brief Set protocol field.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   113
   * \param protocol protocol to set
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   114
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   115
  void SetProtocol (uint16_t protocol);
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   116
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   117
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   118
   * \brief Forward up to receive method.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   119
   * \param p packet
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   120
   * \param hdr IPv6 header
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   121
   * \param device device
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   122
   * \return true if forwarded, false otherwise
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   123
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   124
  bool ForwardUp (Ptr<const Packet> p, Ipv6Header hdr, Ptr<NetDevice> device);
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   125
6448
184a509cc71d Still Bug 943: fix UdpSocketImpl::GetAllowBroadcast, let Socket::SetAllowBroadcast return a bool indicating success/failure, instead of a fatal error.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 6437
diff changeset
   126
  virtual bool SetAllowBroadcast (bool allowBroadcast);
6437
c11291f51d57 Bug 943 - Add a SO_BROADCAST socket option
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5891
diff changeset
   127
  virtual bool GetAllowBroadcast () const;
c11291f51d57 Bug 943 - Add a SO_BROADCAST socket option
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 5891
diff changeset
   128
7696
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   129
  /**
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   130
   * \brief Clean the ICMPv6 filter structure
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   131
   */
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   132
  void Icmpv6FilterSetPassAll();
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   133
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   134
  /**
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   135
   * \brief Set the filter to block all the ICMPv6 types
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   136
   */
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   137
  void Icmpv6FilterSetBlockAll();
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   138
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   139
  /**
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   140
   * \brief Set the filter to pass one ICMPv6 type
10405
45c8fceae24e Doxygen fixes to Topology-read, Ipv6, and tcp-socket
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7717
diff changeset
   141
   * \param type the ICMPv6 type to pass
7696
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   142
   */
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   143
  void Icmpv6FilterSetPass(uint8_t type);
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   144
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   145
  /**
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   146
   * \brief Set the filter to block one ICMPv6 type
10405
45c8fceae24e Doxygen fixes to Topology-read, Ipv6, and tcp-socket
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7717
diff changeset
   147
   * \param type the ICMPv6 type to block
7696
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   148
   */
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   149
  void Icmpv6FilterSetBlock(uint8_t type);
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   150
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   151
  /**
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   152
   * \brief Ask the filter about the status of one ICMPv6 type
10405
45c8fceae24e Doxygen fixes to Topology-read, Ipv6, and tcp-socket
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7717
diff changeset
   153
   * \param type the ICMPv6 type
7696
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   154
   * \return true if the ICMP type is passing through
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   155
   */
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   156
  bool Icmpv6FilterWillPass(uint8_t type);
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   157
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   158
  /**
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   159
   * \brief Ask the filter about the status of one ICMPv6 type
10405
45c8fceae24e Doxygen fixes to Topology-read, Ipv6, and tcp-socket
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7717
diff changeset
   160
   * \param type the ICMPv6 type
7696
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   161
   * \return true if the ICMP type is being blocked
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   162
   */
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   163
  bool Icmpv6FilterWillBlock(uint8_t type);
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   164
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   165
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   166
private:
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   167
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   168
   * \struct Data
7696
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   169
   * \brief IPv6 raw data and additional information.
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   170
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   171
  struct Data
7176
9f2663992e99 internet coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 6834
diff changeset
   172
  {
9f2663992e99 internet coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 6834
diff changeset
   173
    Ptr<Packet> packet;   /**< Packet data */
9f2663992e99 internet coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 6834
diff changeset
   174
    Ipv6Address fromIp;   /**< Source address */
9f2663992e99 internet coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 6834
diff changeset
   175
    uint16_t fromProtocol;   /**< Protocol used */
9f2663992e99 internet coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 6834
diff changeset
   176
  };
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   177
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   178
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   179
   * \brief Dispose object.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   180
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   181
  virtual void DoDispose ();
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   182
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   183
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   184
   * \brief Last error number.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   185
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   186
  enum Socket::SocketErrno m_err;
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   187
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   188
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   189
   * \brief Node.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   190
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   191
  Ptr<Node> m_node;
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   192
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   193
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   194
   * \brief Source address.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   195
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   196
  Ipv6Address m_src;
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   197
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   198
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   199
   * \brief Destination address.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   200
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   201
  Ipv6Address m_dst;
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   202
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   203
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   204
   * \brief Protocol.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   205
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   206
  uint16_t m_protocol;
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   207
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   208
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   209
   * \brief Packet waiting to be processed.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   210
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   211
  std::list<struct Data> m_data;
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   212
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   213
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   214
   * \brief Flag to shutdown send capability.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   215
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   216
  bool m_shutdownSend;
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   217
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   218
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   219
   * \brief Flag to shutdown receive capability.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   220
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   221
  bool m_shutdownRecv;
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   222
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   223
  /**
7696
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   224
   * \brief Struct to hold the ICMPv6 filter
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   225
   */
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   226
  typedef struct
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   227
  {
10405
45c8fceae24e Doxygen fixes to Topology-read, Ipv6, and tcp-socket
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7717
diff changeset
   228
    uint32_t icmpv6Filt[8]; //!< ICMPv6 filter specification
7696
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   229
  } icmpv6Filter;
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   230
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   231
  /**
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   232
   * \brief ICMPv6 filter.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   233
   */
7696
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   234
  icmpv6Filter m_icmpFilter;
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   235
};
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   236
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   237
} /* namespace ns3 */
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   238
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   239
#endif /* IPV6_RAW_SOCKET_IMPL_H */
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   240