Skip to content

Incorrect broadcast addresses #135

@rafern

Description

@rafern

name: Bug report
about: Report an issue of the mod crashing or behaving in an unexpected way
title: ''
labels: bug
assignees: ''


Describe the bug
Not sure if this is a bug, or if this is the correct place to report it (e.g. Minux repo instead?, busybox?, Linux kernel bug?), or even if this is just a skill issue since I don't have a lot of experience with networking, but broadcast addresses are always shown incorrectly. If you derive them yourself though, they work properly.

For example, I have a network with an interface address 192.168.0.1, and a netmask 255.255.255.0. From this, you would expect the broadcast address to be 192.168.0.255. If you send UDP messages through this address, the packet is broadcast through the network correctly. However, if you list the broadcast address, it shows you the wrong IP address. For example:

  • running ifconfig shows that eth0's broadcast address is 0.0.0.0, despite showing the correct netmask and interface address
  • calling the getifaddrs function, and getting all interfaces with an AF_INET family and the IFF_BROADCAST flag set, will give you the eth0 interface with the correct netmask and interface address as expected, however, the broadcast address is 192.168.0.1 instead of 192.168.0.255

To Reproduce
Steps to reproduce the behavior:

  1. Place 2 pre-configured computers with linked network tunnel cards
  2. Setup disks on both computers
  3. Reboot both computers
  4. Setup a network with an address of 192.168.0.1, and all other options default on the first computer
  5. Setup a network with an address of 192.168.0.2, and all other options default on the second computer
  6. Reboot both computers
  7. Run ifconfig on either computer
  8. Broadcast address is shown as 0.0.0.0 instead of 192.168.0.255

Log files
N/A

Expected behavior
The broadcast address to be 192.168.0.255 on both computers

Screenshots
N/A

Versions (please complete the following information):

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions