-2

I work with INET4.4.0, and I would like to send a broadcast message to all nodes in the network. For this, I tried to add this instruction in the omnetpp.ini file:

*.host.networkLayer.ip.forceBroadcast = true

but INET does not recognize this instruction.

  • When I looked in INET4.4/networklayer/ipv4.ned/, I didn't find the forceBroadcast parameter.

Can someone help me, please?

2
  • omnetpp.ini does not contain instructions. It is used for setting values of the parameters of a network. You have correctly stated that there is no parameter forceBroadcast in IPv4. So you should not be surprised that INET doesn't recognize that parameter. Commented Jul 25, 2023 at 19:17
  • So, how to ensure the broadcast in inet4.4.0? Because with the old version of INET, you just have to initialize in omnet.ini forceBrodcat to true Commented Jul 26, 2023 at 8:28

1 Answer 1

0

Yes, that parameter name has changed and there are two parameters instead:

bool limitedBroadcast = default(false); // send out limited broadcast packets coming from higher layer
string directBroadcastInterfaces = default("");   // list of interfaces that direct broadcast is enabled (by default direct broadcast is disabled on all interfaces)

But probably a better approach would be to do the same as with an application in the real world. Use the broadcast address (255.255.255.255) as a destination address in your UDP application.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.