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

Fix use of undirected broadcast in FreeBSD. #94

Merged
merged 2 commits into from
Aug 16, 2024

Commits on Aug 15, 2024

  1. Fix use of undirected broadcast in FreeBSD.

    When you bind to a specific interface's IP in FreeBSD, you cannot use
    INADDR_BROADCAST as your destination.  While the L3 address will be
    255.255.255.255, the L2 address will be that of the gateway.  Instead,
    use a directed broadcast and set the sockopt IP_ONESBCAST to support
    turning the directed broadcast into an undirected broadcast on the given
    interface.
    
    Without this fix, MNDP listening works, but actually using MAC-Telnet to
    connect to devices does not.
    jclarke-csco committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    8e691d3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ed1b25 View commit details
    Browse the repository at this point in the history