Skip to content

Fix network interface enumeration on Mono #28

@NattyNarwhal

Description

@NattyNarwhal

Right now Mono can't enumerate network interfaces; it assumes none are installed. What's happening is Mono assumes in the default Unix interface enumerator class that it can list them off with getifaddrs, which isn't present under AIX, and is available in a different form with a different name under i. What can be done is writing a backend or two using SIOCGIFCONF based enumeration for AIX; and perhaps one using Qp2getifaddrs under i. (Alternatively, we could point to a wrapper library, but this is a pain.)

This is of relatively high importance because the Socket class uses these to enumerate supported network protocols; and that is used by things like DNS. Fixing this will enable a huge swath of tests under AIX CI. Right now, upstream is in the middle of refactoring this, so I don't know if I should wait for them to finish or not.

In the mean time, our binary builds supply a patch to nop out the check for interfaces in Sockets init.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: BCLThis issue affects the Mono class librariesos: iThis issue affects ipriority; lowThis issue isn't too importantstatus: blocked upstreamThis issue is upstream in areas beyond our controltype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions