delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/07/26/11:16:21

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 205D9385C422
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1627312578;
bh=zrJDI0Jp96Vf0LLzuENND9k34D4i1PzjWzywRIBFvDs=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=X6G6EQ/UMHuAtZQRgg26oUO03c3NObMJliND5mNtFrhNMiYaIkPW3WYTEj+3eexWc
qSyRGtE8CLSzJ8c+N14vpPu5zb62rwFarwJxVB07Kbm2MrRLpCnc6W0Gl2yKmRWXjp
zsgDmduoZMp81UuDX3Eijcj03qTvWXRHlQkzCg+M=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 475F93858408
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=gtEcvGlAFuccUNWEgKLdc+N6l/lyQtaG5UWc+sT/xVMZ7iv+f9m3rJ9lur2qvJYQwcx5x3nkI7SXZ347xQ9B7YGs2D/hYHBsLbkP2QkU16mj0f5pNtuVNQHHxsj5tcvmjM1ww3DWbKDV4wr21qMhCJlEK3WAO7vySKxNNNHRjZo36X12Czzgc5EwIqC4vKTtT1+kjV1VqLxcQ4eZH+CrVhLuSN/HsMQKPM6jef+i+GFvz7lDNP8uUKg0iS1oMUg8a//WXEjK6te7xRZIKxylAUhDyHa/2k/jGdBFbqBAnjmupPX2khB2fJTgzD50Qn+aPaRKV/KxBJLVdp0Qzi80wg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=tZNIqOGYBJ48ZY6xBJvfzGvN0lsGezf8cqAb6av6u/0=;
b=ldLeyPBNISey/cLWjooBr5QzNggG46wG0gGC97htkAbZKYMHRVBOJonkIZHQ8LpmyP0uxQRAgERwKPgXFjU5Qfg/XcfbBEwG9MMpYex6IDggEhL5cGGOYA+5uCzgpR5sKPSgEQCXDsbecgYV44lDOX/f/kaMzxnk2B+KQvw3mz846Ukhwh/c/fhKALBG2Uh0q2gIqszXBs0FnP4uaJG6HKzrQUR3n3gwHGgVGLNzDTfpryls2Vt8USNiZDH5N6GgYD7ATTc/LVH5jbMt5Sbhv7vP15XVOC0bsUXnwe2JkwA7BOn3n4Ws2NfWF4bJL+eohaVP6cYubIj2WiAiB0Zahw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu;
dkim=pass header.d=cornell.edu; arc=none
To: cygwin <cygwin AT cygwin DOT com>
Subject: Problems with getifaddrs
Message-ID: <05d378e2-dd26-9ca1-2888-22015c4c63bd@cornell.edu>
Date: Mon, 26 Jul 2021 11:15:00 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
X-ClientProxiedBy: BL1PR13CA0424.namprd13.prod.outlook.com
(2603:10b6:208:2c3::9) To BN7PR04MB4388.namprd04.prod.outlook.com
(2603:10b6:406:f8::19)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 126fdf14-592f-4385-68ad-08d950482391
X-MS-TrafficTypeDiagnostic: BN8PR04MB6385:
X-Microsoft-Antispam-PRVS: <BN8PR04MB6385960C6F7AF40B06991A54D8E89 AT BN8PR04MB6385 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:8273;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: z+PABe/dEinQzB949SMjhgQHduIZDdTVV5/0VPlBWu30p2SxCYUE1SIz7fPWeKh96faUYjQdyzkPh6baPrWwyK6Rq61/4oVHcpE7zVO0jaJ41RbxgMzO0izB3uEg16Auytl+fmhdK3jH7LAtNNz7cuvKm2s2sRoKsK2Tq4XOo+dJKlJtzXLS4TodcDeREU+JOiHZbSZB88mrV9lDhpujF/ZuKrS5u4m+hiKzTZEVF2Fl3/TwqdXQzhd2ohWzKhH7L7CRGfK8j1OWQvAKwaLyZPQdtgKB6Wm5qvuCl3IIbjScejbmEW5KhiZIDGWJLKggXh3CbFqgtRGCi9XuUsfWE5ekq7MOpomr2v76QTnsUby1Im9D8tgtPfDQ3raH5LLAvgY0WxL/xuwq0Dp/4AOcsd6voBRBlQUHQcErHbkGapAnyerdp3HN+NFllTPEDa6hYA941W0GiKKf5L29cFFopicavOab472RC4s6JOM8Rsxdy5WI3CiuesRGTeWp7Sxwx57KQATI4UM38glDSr4hhRh4Zm1ugMULQf1aoRj3g+ovs9L1Fwz+S49tyXhT/ge3Ti64eaEFi9tJHdvxDh0tUkUbknK6eBmzKCqpzBgUHVExsUaQaxb7b1rFGhSCllAeSJoJBQWbmAKaLD2j4zgkXdKjUHMSbNQY59kQJEpOrS0Z1lYiL4mQQ+FP2AAY4sZa/+/qD+U2edPXQd7ZmOjfusURMXc5af7mqM+CaZuE/K4=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:BN7PR04MB4388.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFS:(4636009)(136003)(39860400002)(366004)(396003)(346002)(376002)(38100700002)(86362001)(6916009)(75432002)(7116003)(4744005)(66946007)(66556008)(478600001)(6486002)(66476007)(8676002)(5660300002)(31696002)(2616005)(36756003)(3480700007)(83380400001)(786003)(316002)(31686004)(2906002)(8936002)(186003)(45980500001)(43740500002);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?Windows-1252?Q?kk73NIAhxjZnNj0XpGgsOtZM6V9h/mt19ZqYOjwJnN3rtx6Lu7+3Rlo4?=
=?Windows-1252?Q?Srwqc39PccDTO0AtdBix4N5tZBxwHS/VDC4Cy963eoaKNkwGxagI+kxu?=
=?Windows-1252?Q?ubqSj0fFDHlVzogCR/KPgo0Ajy5al0MKtPFf6mXv+U5AsqHJ2A4FZ2wy?=
=?Windows-1252?Q?2kxRTQGATlhs60ULHQjNY/6m/wYLSxwnFJuQaSrwwBF0IwJm4R8cfPbc?=
=?Windows-1252?Q?L1hnuxbKEWrCWhwLOq8T88r34GmqFHj/uw0AWs8/RMIXiiPHawk2rBq9?=
=?Windows-1252?Q?yUMlBLFEwZXb/pan8Q8mwKALy/eW3Xyhi/+g8JUd/eAaUh0VAVIJMnWN?=
=?Windows-1252?Q?O/7jXdl6cbwHmnA2sI9ORtROa9qd7e5K+CkcmHAJJS/uGiqFI1DRq4yb?=
=?Windows-1252?Q?nO1X0xBdhUpwG1x5v/bh5brkWweQ1k8xey9p02xkMTr3tbSWCi0GG+LA?=
=?Windows-1252?Q?O3z6ZupyknMNT/DBkOH+cuY+bc7gIUZWOTUgBp7U37XxT5vsWUVcVgX/?=
=?Windows-1252?Q?yDtGQUpKTHR8f7TBqyeWkI1sryff+GtP88kzBSAKNVDgTalZ4p+coo/I?=
=?Windows-1252?Q?paBuiknOQ8qhy69XBgTpGY/EF8QEoIxodIFjbXAzwMi6XmzbMUlHUvSl?=
=?Windows-1252?Q?3Y7Z+6FZ9zYmVxK5jK8xPKuyjEatbmKHu1VWudY6V1aiqc6CiLQJQoGe?=
=?Windows-1252?Q?RSjIac3UHBNHgPsDmpn6UuifZuceNawRlbFNIDTechzvsCnhn0Oq7jK6?=
=?Windows-1252?Q?2a/RQyVi9rOIvunYI7g7BHnDo48a1WHTZZYqEX/kzr2aCsQ9crp4fqcn?=
=?Windows-1252?Q?V14QsyEZx4M9ZVIaeyXl5WEsb2VhZ2gWCS1yEEmEVcqF7ze4mtkzE7y0?=
=?Windows-1252?Q?GEKET1pSlB4IbPDC/kBfwU9sGEV68D4zNCd2lN/WcBaAY4GqVCHxWaYR?=
=?Windows-1252?Q?nhJPv203nm/aknC4BarlH9X7AmkKQG0h7N3l1zg7aI9dddQq7Slzf50n?=
=?Windows-1252?Q?Dmjglq4i0eMsisw62XpgjJbpUgOEEoYA6xnw91Qnx9eMHgk4wUViWoA8?=
=?Windows-1252?Q?Jli41Xp6NJg4LCCQChXyKHRu5007CnMcb2zp+8wRTeDY4nXtbLX/2gjc?=
=?Windows-1252?Q?Zp7ujuriM8odA+PVMCs3q/SOrWZlnVsDdLy9QT6lUM39WkLOJCzg8OUt?=
=?Windows-1252?Q?e8HfUGgqlgfBdYJUDRrrJ/kxkkwINUCKwi9ykYDEYAlkIWJzGGP7evGS?=
=?Windows-1252?Q?U2u8tCdkLljsKnItaDmpgZGr0gaggJcGCWl67AUHvj4zorbGh0t2Su0Z?=
=?Windows-1252?Q?b9uDjfAelu7NwtngSVuwgh2HdWjdsFSMcciFPyx02QYZ727eMiORQQu4?=
=?Windows-1252?Q?DphBmOUHJPCoG7PPh7dwaNxc9mOYBzeLK5w8u25m52+Ci8qS8GESE/eD?=
=?Windows-1252?Q?7OhPFirMn3qeW5rk66eQza1c4hRYFdRKmbo/PfBBPh6zVPQ0bquoWOS+?=
=?Windows-1252?Q?w7q+CNKF?=
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: 126fdf14-592f-4385-68ad-08d950482391
X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2021 15:15:01.7203 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: uZg7H37lAqm1va4BMhzTKxw1RRh2gXS7uNAWh+juexqB5YO114wL2xrGzzT7FdFcu5tobdSejfRuMxKNhwnx8w==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR04MB6385
X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, MSGID_FROM_MTA_HEADER,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Ken Brown via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Ken Brown <kbrown AT cornell DOT edu>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019