Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShortcutMac doesn't allow enabling multicast support in the interfaceEntry using a parameter #806

Open
rhornig opened this issue Aug 8, 2022 · 0 comments
Assignees
Labels
Milestone

Comments

@rhornig
Copy link
Member

rhornig commented Aug 8, 2022

ShortcutMac should support also multicast (as it is supposed to be a drop-in replacement for other types of interfaces). Currently it is harcoded to be a broadcast interface, which should be also configurable.

void ShortcutMac::configureNetworkInterface()
{
    MacAddress address = parseMacAddressParameter(par("address"));
    shortcutMacs[address] = this;
    networkInterface->setDatarate(bitrate);
    networkInterface->setMacAddress(address);
    networkInterface->setInterfaceToken(address.formInterfaceIdentifier());
    networkInterface->setMtu(par("mtu"));
    networkInterface->setMulticast(false);
    networkInterface->setBroadcast(true);
}
@rhornig rhornig added the Feature label Aug 8, 2022
@rhornig rhornig added this to the INET 4.5 milestone Aug 8, 2022
@levy levy modified the milestones: INET 4.5, Postponed Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants