[Bug 271613] net/py-netif: interface flags incorrect, some flags missing
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 May 2023 16:58:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271613 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 the 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. -- You are receiving this mail because: You are the assignee for the bug.