Remove use of deprecated and now removed QueueBase::MaxPackets

Change-Id: I6aa6d2af4e6189ecd6bac774b2b846b18a0f9dd2
diff --git a/model/ndn-net-device-transport.cpp b/model/ndn-net-device-transport.cpp
index 17880d2..a8565fb 100644
--- a/model/ndn-net-device-transport.cpp
+++ b/model/ndn-net-device-transport.cpp
@@ -56,7 +56,15 @@
   if (m_netDevice->GetAttributeFailSafe("TxQueue", txQueueAttribute)) {
     Ptr<ns3::QueueBase> txQueue = txQueueAttribute.Get<ns3::QueueBase>();
     // must be put into bytes mode queue
-    this->setSendQueueCapacity(txQueue->GetMaxBytes());
+
+    auto size = txQueue->GetMaxSize();
+    if (size.GetUnit() == BYTES) {
+      this->setSendQueueCapacity(size.GetValue());
+    }
+    else {
+      // don't know the exact size in bytes, guessing based on "standard" packet size
+      this->setSendQueueCapacity(size.GetValue() * 1500);
+    }
   }
 
   NS_LOG_FUNCTION(this << "Creating an ndnSIM transport instance for netDevice with URI"