What is Nostr?
Tristan B. Velloza Kildaire /
npub13hd…u8sh
2024-01-15 12:00:00

Tristan B. Velloza Kildaire on Nostr: Remember when traversing the resultants of `getifaddrs()`. If a particular interface ...

Remember when traversing the resultants of `getifaddrs()`. If a particular interface has an unspec then you will have a nulled-out `ifa_addr`.

Learnt this the hard way, took a while to find that. Photos related, as you can see, it makes sense it cannot be filled as there is no AF_PACKET-familied address on a TUN adapter.

Also, using ImportC here to effortlessly use C code in D - with no link-time linking. All at the source level.

#c #linux #d



Author Public Key
npub13hdpl8ftg69y5sdxyh4xmttkcva574k2ayk8ql4slm3vurzhfnjsglu8sh