Skip to content

IPPROTO_MAX has changed on newer versions of Linux #1896

Open
@Aaron1011

Description

@Aaron1011

In newer versions of Linux, an additional variant IPPROTO_MPTCP has been added: torvalds/linux@faf391c. This caused the value of IPPROTO_MAX to change from IPPROTO_MPLS + 1 = 256 to IPPROTO_MPTCP + 1 = 263

However, the libc crate currently defines IPPROTO_MAX as 256:

pub const IPPROTO_MAX: ::c_int = 256;

This causees libc-test to fail when run against a newer kernel version. I'm not really sure what IPPROTO_MPTCP is used for, but this seemed worth bringing up.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions