Do not rely on hardcoded interface names (eth0, wlan0) in sqResolverLocalAddress(void). Use ifa_flags to filter the list instead. On behalf of Levente You can view, comment on, or merge this pull request online at:https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/458 Commit Summary
File ChangesPatch Links:
— |
The changes look good to me, I let a bit of time if someone else want to review. — |
In reply to this post by David T Lewis
Just a question, is that Linux-specific flags or do they work, eg, on bsd'en? (cc'ing @ckeen, asking for a tiny test please :) ) — |
On Tue, 24 Dec 2019, Tobias Pape wrote: > Just a question, is that Linux-specific flags or do they work, eg, on bsd'en? If you meant the IFF_* flags, then yes, the most popular BSD variants do have them: https://github.com/apple/darwin-xnu/blob/master/bsd/net/if.h#L108 https://github.com/openbsd/src/blob/master/sys/net/if.h#L203 https://github.com/freebsd/freebsd/blob/master/sys/net/if.h#L142 https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/sys/net/if.h#L91 http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/net/if.h?rev=1.277&content-type=text/x-cvsweb-markup&only_with_tag=MAIN Levente |
In reply to this post by David T Lewis
Merged #458 into Cog. — |
In reply to this post by David T Lewis
hooray! — |
Free forum by Nabble | Edit this page |