Skip to content

SIOCGIFXMEDIA values on other FreeBSD architectures #170

Closed

Description

@clausecker

Greetings!

I would like to report the following SIOCGIFXMEDIA values on other FreeBSD architectures to improve the portability of this crate:

  • armv7: 0xc028698b
  • aarch64: 0xc030698b
  • powerpc64le: 0xc030698b

Additionally, it would be nice to have a generic fallback on unknown platforms so that the code always builds.

Activity

  1. pkubaj commented on Jun 14, 2026

    @pkubaj
    Contributor

    I just saw this issue linked from FreeBSD commit mail, your commit is missing powerpc64, which my PR also fixes #169

  2. clausecker commented on Jun 14, 2026

    @clausecker
    Author

    @pkubaj Feel free to amend my patch. Note that yours does not cover armv7.

  3. shellrow commented on Jun 14, 2026

    @shellrow
    Owner

    Thanks for reporting this and for providing the values for the additional FreeBSD architectures.

    I just merged #169 first, since it addresses the existing 64-bit FreeBSD assumption.

    I'll use the information from this issue to further improve portability across FreeBSD architectures.

  4. clausecker commented on Jun 15, 2026

    @clausecker
    Author

    @shellrow You can simply add the armv7 case to #169 and everything should be covered. It's different from the i386 case as time_t is 64 bits on armv7 FreeBSD.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions