This file is indexed.

/usr/include/ns3.26/ns3/sixlowpan-helper.h is in libns3-dev 3.26+dfsg-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
 * Copyright (c) 2011 Universita' di Firenze, Italy
 *
 * 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: Tommaso Pecorella <tommaso.pecorella@unifi.it>
 */

#ifndef SIXLOWPAN_HELPER_H
#define SIXLOWPAN_HELPER_H

#include "ns3/net-device-container.h"
#include "ns3/object-factory.h"
#include <string>

namespace ns3 {

class Node;
class AttributeValue;

/**
 * \ingroup sixlowpan
 *
 * \brief Setup a sixlowpan stack to be used as a shim between IPv6 and a generic NetDevice.
 */
class SixLowPanHelper
{
public:
  /*
   * Construct a SixlowpanHelper
   */
  SixLowPanHelper ();
  /**
   * Set an attribute on each ns3::SixlowpanNetDevice created by
   * SixlowpanHelper::Install.
   *
   * \param n1 [in] The name of the attribute to set.
   * \param v1 [in] The value of the attribute to set.
   */
  void SetDeviceAttribute (std::string n1,
                           const AttributeValue &v1);

  /**
   * \brief Install the SixLoWPAN stack on top of an existing NetDevice.
   *
   * This function requires a set of properly configured NetDevices
   * passed in as the parameter "c". The new NetDevices will have to
   * be used instead of the original ones. In this way these
   * SixLoWPAN devices will behave as shims between the NetDevices
   * passed in and IPv6.
   *
   * Note that only IPv6 (and related protocols, such as ICMPv6) can
   * be transmitted over a 6LoWPAN interface.
   * Any other protocol (e.g., IPv4) will be discarded by 6LoWPAN.
   *
   * Other protocols (e.g., IPv4) could be used on the original NetDevices
   * with some limitations.
   * See the manual for a complete discussion.
   *
   * \note IPv6 stack must be installed \a after SixLoWPAN,
   * using the SixLoWPAN NetDevices. See the example in the
   * examples directory.
   *
   *
   * \param [in] c The NetDevice container.
   * \return A container with the newly created SixLowPanNetDevices.
   */
  NetDeviceContainer Install (NetDeviceContainer c);

  /**
  * Assign a fixed random variable stream number to the random variables
  * used by this model. Return the number of streams (possibly zero) that
  * have been assigned. The Install() method should have previously been
  * called by the user.
  *
  * \param [in] c NetDeviceContainer of the set of net devices for which the
  *          SixLowPanNetDevice should be modified to use a fixed stream.
  * \param [in] stream First stream index to use.
  * \return The number of stream indices assigned by this helper.
  */
  int64_t AssignStreams (NetDeviceContainer c, int64_t stream);

private:
  ObjectFactory m_deviceFactory; //!< Object factory.
};

} // namespace ns3


#endif /* SIXLOWPAN_HELPER_H */