[Bug 297424] linuxulator: NETLINK_ROUTE omits IFF_LOWER_UP -> Chromium navigator.onLine false

[email protected]
Newsgroups gmane.os.freebsd.devel.emulation
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297424

--- Comment #4 from [email protected] ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=34718e01869b9ce0baf9c859fafe9d54f785464f

commit 34718e01869b9ce0baf9c859fafe9d54f785464f
Author:     Devin Teske <[email protected]>
AuthorDate: 2026-08-11 17:29:53 +0000
Commit:     Devin Teske <[email protected]>
CommitDate: 2026-08-11 17:29:53 +0000

    linuxulator: map IFF_LOWER_UP through NETLINK_ROUTE for Linux apps

    rtnl_if_flags_to_linux() translated the usual IFF_* bits but dropped
    FreeBSD's IFF_LOWER_UP (IFF_NETLINK_1).  Chromium's AddressTrackerLinux
    only treats a link as online when ifi_flags has UP|LOWER_UP|RUNNING; with
    LOWER_UP missing, online_links stays empty, ConnectionType is
    CONNECTION_NONE, and navigator.onLine is false even though TCP/HTTPS
    work.  Linux Chromium under the Linuxulator (e.g. www/linux-brave) then
    shows a spurious Offline UI; sites that ignore navigator.onLine do not.
    Native www/chromium is on a different notifier path.

    Map IFF_LOWER_UP to Linux's IFF_LOWER_UP (1<<16) and define
    LINUX_IFF_LOWER_UP alongside the existing LINUX_IFF_* constants.

    PR:     297424

    Reviewed by:    pouria, adrian (previous revision)
    Differential Revision:  https://reviews.freebsd.org/D58774

 sys/compat/linux/linux.h         | 3 +++
 sys/compat/linux/linux_netlink.c | 5 ++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.