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:
- Place 2 pre-configured computers with linked network tunnel cards
- Setup disks on both computers
- Reboot both computers
- Setup a network with an address of 192.168.0.1, and all other options default on the first computer
- Setup a network with an address of 192.168.0.2, and all other options default on the second computer
- Reboot both computers
- Run
ifconfig on either computer
- 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
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:
ifconfigshows that eth0's broadcast address is0.0.0.0, despite showing the correct netmask and interface addressgetifaddrsfunction, 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 is192.168.0.1instead of192.168.0.255To Reproduce
Steps to reproduce the behavior:
ifconfigon either computer0.0.0.0instead of192.168.0.255Log 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