netsock_poll(): poll all network interfaces#2139
Conversation
Starting with binutils version 2.46, `objcopy --target TARGET` only works if the input file is for TARGET, whereas prior versions of objcopy accepted other target input files and produced a TARGET output. The objcopy invocation to produce the UEFI bootloader for x86 takes an ELF input file, therefore it fails with "file format not recognized" when using `--target efi-app-x86_64`. Change the `--target` command line option to `-O` (synonym with `--output-target`).
When the destination address of a network packet coincides with the address of a network interface, the packet is queued in the loopback queue of that interface. The netsock_poll() function is only polling the loopback interface, therefore it misses packets whose destination is the address of a non-loopback interface. Change netsock_poll() so that it polls all interfaces instead of just the loopback interface.
|
This fixes also the following warning when running Payara 7.2025.2 on Azul JRE 25.0.1:
|
When the destination address of a network packet coincides with the address of a network interface, the packet is queued in the loopback queue of that interface. The netsock_poll() function is only polling the loopback interface, therefore it misses packets whose destination is the address of a non-loopback interface.
This change set ensures that the netsock_poll() function polls all interfaces instead of just the loopback interface.
This first commit is an unrelated fix for a build error that occurs with binutils version 2.46.