Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Failure to set IP_MULTICAST_IF should be fatal #129

Copy link
Copy link
@mdavidsaver

Description

@mdavidsaver
Issue body actions

https://epics.anl.gov/core-talk/2022/msg00456.php

Mentions #93 as fixing an "escape" of 224.0.0.128 multicast traffic which should be limited to the loopback interface. A more complete fix should treat failure to set IP_MULTICAST_IF as a fatal error. Instead, currently a message is logged, and the socket is used anyway.

try {
InetAddress group = InetAddress.getByName("224.0.0.128");
localBroadcastAddress = new InetSocketAddress(group, broadcastPort);
searchTransport.join(group, localNIF);
// NOTE: this disables usage of multicast addresses in EPICS_PVA_ADDR_LIST
searchTransport.setMutlicastNIF(localNIF, true);
logger.config("Local multicast enabled on " + localBroadcastAddress + ":" + broadcastPort
+ " using " + localNIF.getDisplayName() + ".");
} catch (Exception th) {
logger.log(Level.CONFIG, "Failed to initialize local multicast, funcionality disabled.", th);
}

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.