You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently working on a simulation project and have encountered an issue during the network setup phase. The error message is as follows:
"Class 'Firewall' not found -- perhaps its code was not linked in, or the class wasn't registered with Register_Class(), or in the case of modules and channels, with Define_Module()/Define_Channel() -- in module (omnetpp::cModule) SBMS (id=1), during network setup."
The Firewall class is supposed to function as a packet inspector within my simulation, blocking packets that match specific criteria (e.g., "Ransomware Payload"). Despite being defined in both the .ned and .cc files, and despite having the header file (Firewall.h) included, the simulation fails to recognize the class.
Steps I have already attempted include:
Ensuring the Firewall class is properly defined and declared with the Define_Module() macro in the .cc file.
Cleaning and rebuilding the project in the IDE.
Confirming that the .cc and .h files are in the correct directory (/src) and properly included in the project.
I suspect the issue may be related to the Makefile not correctly including or linking the source files, or perhaps a namespace-related problem in the code definitions. However, all standard troubleshooting steps have not resolved the issue.
I would greatly appreciate any advice or insights you might have regarding this error. I can provide further code snippets or information upon request.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am currently working on a simulation project and have encountered an issue during the network setup phase. The error message is as follows:
"Class 'Firewall' not found -- perhaps its code was not linked in, or the class wasn't registered with Register_Class(), or in the case of modules and channels, with Define_Module()/Define_Channel() -- in module (omnetpp::cModule) SBMS (id=1), during network setup."
The Firewall class is supposed to function as a packet inspector within my simulation, blocking packets that match specific criteria (e.g., "Ransomware Payload"). Despite being defined in both the .ned and .cc files, and despite having the header file (Firewall.h) included, the simulation fails to recognize the class.
Steps I have already attempted include:
Ensuring the Firewall class is properly defined and declared with the Define_Module() macro in the .cc file.
Cleaning and rebuilding the project in the IDE.
Confirming that the .cc and .h files are in the correct directory (/src) and properly included in the project.
I suspect the issue may be related to the Makefile not correctly including or linking the source files, or perhaps a namespace-related problem in the code definitions. However, all standard troubleshooting steps have not resolved the issue.
I would greatly appreciate any advice or insights you might have regarding this error. I can provide further code snippets or information upon request.
Thank you for your assistance.
Beta Was this translation helpful? Give feedback.
All reactions