--- a/src/devices/wifi/wifi-remote-station-manager.h Wed Oct 15 09:49:39 2008 +0200
+++ b/src/devices/wifi/wifi-remote-station-manager.h Thu Oct 16 09:48:47 2008 +0200
@@ -228,11 +228,6 @@
virtual bool NeedFragmentation (Ptr<const Packet> packet);
/**
* \param packet the packet to send
- * \returns the number of fragments which should be used for this packet.
- */
- virtual uint32_t GetNFragments (Ptr<const Packet> packet);
- /**
- * \param packet the packet to send
* \param fragmentNumber the fragment index of the next fragment to send (starts at zero).
* \returns the size of the corresponding fragment.
*/
@@ -240,6 +235,12 @@
/**
* \param packet the packet to send
* \param fragmentNumber the fragment index of the next fragment to send (starts at zero).
+ * \returns the offset within the original packet where this fragment starts.
+ */
+ virtual uint32_t GetFragmentOffset (Ptr<const Packet> packet, uint32_t fragmentNumber);
+ /**
+ * \param packet the packet to send
+ * \param fragmentNumber the fragment index of the next fragment to send (starts at zero).
* \returns true if this is the last fragment, false otherwise.
*/
virtual bool IsLastFragment (Ptr<const Packet> packet, uint32_t fragmentNumber);
@@ -262,6 +263,7 @@
virtual Ptr<WifiRemoteStationManager> GetManager (void) const = 0;
virtual WifiMode DoGetDataMode (uint32_t size) = 0;
virtual WifiMode DoGetRtsMode (void) = 0;
+ uint32_t GetNFragments (Ptr<const Packet> packet);
protected:
virtual void DoReportRtsFailed (void) = 0;
virtual void DoReportDataFailed (void) = 0;