Solving compilation problems, adding more comments. Modified ccnx-test example
diff --git a/model/ccnx-net-device-face.h b/model/ccnx-net-device-face.h
index 397d6c1..baf6a48 100644
--- a/model/ccnx-net-device-face.h
+++ b/model/ccnx-net-device-face.h
@@ -36,6 +36,10 @@
* component responsible for actual delivery of data packet to and
* from CCNx stack
*
+ * CcnxNetDevice face is permanently associated with one NetDevice
+ * object and this object cannot be changed for the lifetime of the
+ * face
+ *
* \see CcnxLocalFace, CcnxNetDeviceFace, CcnxIpv4Face, CcnxUdpFace
*/
class CcnxNetDeviceFace : public CcnxFace
@@ -49,9 +53,12 @@
static TypeId GetTypeId (void);
/**
- * \brief Default constructor
+ * \brief Constructor
+ *
+ * \param netDevice a smart pointer to NetDevice object to which
+ * this face will be associate
*/
- CcnxNetDeviceFace ();
+ CcnxNetDeviceFace (const Ptr<NetDevice> &netDevice);
virtual ~CcnxNetDeviceFace();
////////////////////////////////////////////////////////////////////
@@ -64,13 +71,6 @@
////////////////////////////////////////////////////////////////////
/**
- * \brief Associate NetDevice object with face
- *
- * \param node smart pointer to a NetDevice object
- */
- void SetNetDevice (Ptr<NetDevice> node);
-
- /**
* \brief Get NetDevice associated with the face
*
* \returns smart pointer to NetDevice associated with the face
@@ -84,7 +84,7 @@
CcnxNetDeviceFace (const CcnxNetDeviceFace &); ///< \brief Disabled copy constructor
CcnxNetDeviceFace& operator= (const CcnxNetDeviceFace &); ///< \brief Disabled copy operator
- // callback
+ /// \brief callback from lower layers
void ReceiveFromNetDevice (Ptr<NetDevice> device,
Ptr<const Packet> p,
uint16_t protocol,