libc icon indicating copy to clipboard operation
libc copied to clipboard

`AF_SYSTEM` and `AF_SYS_CONTROL` types do not fit in `sockaddr_ctl`

Open siegfried opened this issue 3 years ago • 1 comments

I'm trying to assign AF_SYSTEM to sockaddr_ctl.sc_family which is a u_char, but AF_SYSTEM is c_int.

AS_SYS_CONTROL should be u16 in sockaddr_ctl.ss_sysaddr as well yet its definition is c_int.

pub const AF_SYS_CONTROL: ::c_int = 2;

siegfried avatar Dec 23 '22 09:12 siegfried

Are these flags ever passed to functions?

main is now for 1.0, so your PR can probably be adjusted.

tgross35 avatar Aug 29 '24 07:08 tgross35