Skip to content

AF_SYSTEM and AF_SYS_CONTROL types do not fit in sockaddr_ctl #3044

Open

Description

@siegfried

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;

Activity

  1. changed the title [-]`AF_SYSTEM` and `AF_SYS_CONTROL` types do fit in `sockaddr_ctl`[/-] [+]`AF_SYSTEM` and `AF_SYS_CONTROL` types do not fit in `sockaddr_ctl`[/+] on Dec 23, 2022
  2. tgross35 commented on Aug 29, 2024

    @tgross35
    Member

    Are these flags ever passed to functions?

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

  3. added this to the 1.0 milestone on Aug 29, 2024
  4. added
    E-mediumE-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
    and removed
    E-mediumE-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
    on Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions