Conversation
Notices
-
Tristan B. V. Kildaire 🇺🇦🗽 (deavmi@gleasonator.com)'s status on Monday, 15-Jan-2024 21:02:21 JST Tristan B. V. Kildaire 🇺🇦🗽 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- Machismo likes this.