From 4652f47fbd1622e5a4353f9e1c24a862768ea7d6 Mon Sep 17 00:00:00 2001 From: hiok2000 <40853699+hiok2000@users.noreply.github.com> Date: Thu, 11 Mar 2021 16:59:33 +0800 Subject: [PATCH] Update node.cc Need return for bool --- simulation/src/network/model/node.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/simulation/src/network/model/node.cc b/simulation/src/network/model/node.cc index 0f08d456b..516bd3b33 100644 --- a/simulation/src/network/model/node.cc +++ b/simulation/src/network/model/node.cc @@ -347,6 +347,7 @@ Node::GetNodeType() bool Node::SwitchReceiveFromDevice(Ptr device, Ptr packet, CustomHeader &ch){ NS_ASSERT_MSG(false, "Calling SwitchReceiveFromDevice() on a non-switch node or this function is not implemented"); + return false; } void Node::SwitchNotifyDequeue(uint32_t ifIndex, uint32_t qIndex, Ptr p){