Index: src/network/model/socket.h |
=================================================================== |
--- a/src/network/model/socket.h |
+++ b/src/network/model/socket.h |
@@ -595,10 +595,20 @@ |
* For IP_PKTINFO/IP6_PKTINFO. This method is only usable for |
* Raw socket and Datagram Socket. Not supported for Stream socket. |
* |
+ * Method doesn't make distinction between IPv4 and IPv6. If it is enabled, |
+ * it is enabled for all types of sockets that supports packet information |
+ * |
* \param flag Enable/Disable receive information |
* \returns nothing |
*/ |
void SetRecvPktInfo (bool flag); |
+ |
+ /** |
+ * \brief Get status indicating whether enable/disable packet information to socket |
+ * |
+ * \returns True if packet information should be sent to socket |
+ */ |
+ bool IsRecvPktInfo () const; |
protected: |
void NotifyConnectionSucceeded (void); |
@@ -612,7 +622,7 @@ |
void NotifyDataRecv (void); |
virtual void DoDispose (void); |
Ptr<NetDevice> m_boundnetdevice; |
- bool m_recvpktinfo; |
+ bool m_recvPktInfo; |
private: |
Callback<void, Ptr<Socket> > m_connectionSucceeded; |
Callback<void, Ptr<Socket> > m_connectionFailed; |