Date: Wed, 24 May 2023 16:58:41 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 271613] net/py-netif: interface flags incorrect, some flags missing Message-ID: <bug-271613-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271613 Bug ID: 271613 Summary: net/py-netif: interface flags incorrect, some flags missing Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: bofh@freebsd.org Reporter: hartmut.brandt@dlr.de Flags: maintainer-feedback?(bofh@freebsd.org) Assignee: bofh@freebsd.org The flags property of the NetworkInterface class produces bogus flags for t= he upper half of ifru_flags. It looks like it is correctly defined in defs.pxd= as short ifru_flags[2]. The __get_flags() method returns just ifru_flags[0] and ignores ifru_flags[1]. Unfortunately the short is sign expanded to uint32_t which gives a bogus return value for the flags property. I was not able to fix that. It looks like ifru_flags[1] reads always as 0. = So with correctly casting and adding the words, all the upper bits are 0. There are also some flags missing which are defined in 14: IFF_NOGROUP and IFF_NETLINK_1, IFF_NEEDSEPOCH, IFF_STICKYARP. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271613-7788>