src/internet/model/ipv6-raw-socket-impl.h
author Tom Henderson <tomh@tomh.org>
Mon, 04 Jan 2016 14:11:51 -0800
changeset 11800 bd9c9abd5d6e
parent 11779 710f305a22c9
permissions -rw-r--r--
merge to ns-3-dev@11799:f410a3b3825b
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);
11779
710f305a22c9 Bug 2234 - Ipv6L3Protocol should trash multicast packets not interesting for the node
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 10440
diff changeset
   110
  virtual void Ipv6JoinGroup (Ipv6Address address, Socket::Ipv6MulticastFilterMode filterMode, std::vector<Ipv6Address> sourceAddresses);
5891
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
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   113
   * \brief Set protocol field.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   114
   * \param protocol protocol to set
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   115
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   116
  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
   117
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   118
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   119
   * \brief Forward up to receive method.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   120
   * \param p packet
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   121
   * \param hdr IPv6 header
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   122
   * \param device device
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   123
   * \return true if forwarded, false otherwise
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   124
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   125
  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
   126
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
   127
  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
   128
  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
   129
7696
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   130
  /**
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   131
   * \brief Clean the ICMPv6 filter structure
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   132
   */
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   133
  void Icmpv6FilterSetPassAll();
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
  /**
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   136
   * \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
   137
   */
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   138
  void Icmpv6FilterSetBlockAll();
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
  /**
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   141
   * \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
   142
   * \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
   143
   */
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   144
  void Icmpv6FilterSetPass(uint8_t type);
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
  /**
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   147
   * \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
   148
   * \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
   149
   */
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   150
  void Icmpv6FilterSetBlock(uint8_t type);
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
  /**
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   153
   * \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
   154
   * \param type the ICMPv6 type
7696
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   155
   * \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
   156
   */
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   157
  bool Icmpv6FilterWillPass(uint8_t type);
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
  /**
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   160
   * \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
   161
   * \param type the ICMPv6 type
7696
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   162
   * \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
   163
   */
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   164
  bool Icmpv6FilterWillBlock(uint8_t type);
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   165
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   166
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   167
private:
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   168
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   169
   * \struct Data
7696
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   170
   * \brief IPv6 raw data and additional information.
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   171
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   172
  struct Data
7176
9f2663992e99 internet coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 6834
diff changeset
   173
  {
9f2663992e99 internet coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 6834
diff changeset
   174
    Ptr<Packet> packet;   /**< Packet data */
9f2663992e99 internet coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 6834
diff changeset
   175
    Ipv6Address fromIp;   /**< Source address */
9f2663992e99 internet coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 6834
diff changeset
   176
    uint16_t fromProtocol;   /**< Protocol used */
9f2663992e99 internet coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents: 6834
diff changeset
   177
  };
4731
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   178
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   179
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   180
   * \brief Dispose object.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   181
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   182
  virtual void DoDispose ();
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
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   185
   * \brief Last error number.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   186
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   187
  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
   188
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   189
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   190
   * \brief Node.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   191
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   192
  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
   193
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   194
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   195
   * \brief Source address.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   196
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   197
  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
   198
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   199
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   200
   * \brief Destination address.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   201
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   202
  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
   203
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   204
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   205
   * \brief Protocol.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   206
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   207
  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
   208
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   209
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   210
   * \brief Packet waiting to be processed.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   211
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   212
  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
   213
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   214
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   215
   * \brief Flag to shutdown send capability.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   216
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   217
  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
   218
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   219
  /**
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   220
   * \brief Flag to shutdown receive capability.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   221
   */
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   222
  bool m_shutdownRecv;
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   223
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   224
  /**
7696
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   225
   * \brief Struct to hold the ICMPv6 filter
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   226
   */
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   227
  typedef struct
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   228
  {
10405
45c8fceae24e Doxygen fixes to Topology-read, Ipv6, and tcp-socket
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7717
diff changeset
   229
    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
   230
  } icmpv6Filter;
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   231
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   232
  /**
5891
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   233
   * \brief ICMPv6 filter.
09a575cdf8db Indent correctly IPv6 code.
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents: 4731
diff changeset
   234
   */
7696
142e062124f4 Bug 1319 - Fix Ipv6RawSocketImpl Icmpv6 filter
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents: 7650
diff changeset
   235
  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
   236
};
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   237
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   238
} /* namespace ns3 */
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   239
510db8599bfb second phase of IPv6 checkins from Univ. of Strasbourg team
Sebastien Vincent <vincent@clarinet.u-strasbg.fr>
parents:
diff changeset
   240
#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
   241