13:12:45 Hello all! I have a question about querying network interface of default route in C. 13:14:02 This is what I did: https://github.com/fastfetch-cli/fastfetch/blob/dev/src/common/netif/netif_apple.c#L66-L106 13:18:29 It compiles. However, when I ran it, I got a rtmsg_hdr result with rtm_flags equals to 0x80041 13:19:55 0x80041 is (RTF_KERNEL | RTF_DONE | RTF_UP), while I did asks for (RTF_UP | RTF_GATEWAY) 13:20:17 This is what I asked: https://github.com/fastfetch-cli/fastfetch/blob/dev/src/common/netif/netif_apple.c#L85 13:20:37 I got the result at: https://github.com/fastfetch-cli/fastfetch/blob/dev/src/common/netif/netif_apple.c#L103 13:20:52 This test failed: https://github.com/fastfetch-cli/fastfetch/blob/dev/src/common/netif/netif_apple.c#L106 13:21:30 So everything failed. Does anyone know what I did wrong? 13:22:29 The same code works for macOS, and the similar code even works for IPv6. It just fails for IPv4. It's really strange. 13:25:50 If this is not a right place to ask this kind of thing. Does anyone know where I should ask it? 13:43:27 Looks like I'm wasting of time. Bye! 16:55:22 CarterLi: in case you're reading the logs, this is the right place to ask, but you may need to wait more than a few minutes for an answer. 16:56:15 CarterLi: you're not wasting time, you're just asking when someone who can answer isn't awake. 17:15:22 "route get default" on my systems shows flags: 17:54:22 the system "route get" sets RTF_STATIC|RTF_GATEWAY in flags and RTA_DST|RTA_NETMASK|RTA_IFP in rtm_addr