public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Problems with getifaddrs
@ 2021-07-26 15:15 Ken Brown
  2021-07-26 23:04 ` Andrey Repin
  0 siblings, 1 reply; 3+ messages in thread
From: Ken Brown @ 2021-07-26 15:15 UTC (permalink / raw)
  To: cygwin

While investigating emacs test failures, I found two problems with the 
interfaces returned by getifaddrs(3):

1. For an IPv6 interface, the netmask address family is always 0 instead of 
AF_INET6.

2. For a disconnected interface, the IPv4 address and netmask are sometimes 0.

I will be sending patches to fix these problems later today, but I wanted to 
report them here for reference.

I don't know enough about this to be sure that problem 2 is really a Cygwin bug. 
  Are there cases where a 0 IP address is appropriate?  Or should it be up to 
the caller of getifaddrs to handle that case?

Ken

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-29 14:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 15:15 Problems with getifaddrs Ken Brown
2021-07-26 23:04 ` Andrey Repin
2021-07-29 14:43   ` Ken Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).