From owner-freebsd-net@freebsd.org Mon May 4 07:58:38 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CF2E02C8266 for ; Mon, 4 May 2020 07:58:38 +0000 (UTC) (envelope-from melifaro@ipfw.ru) Received: from forward501j.mail.yandex.net (forward501j.mail.yandex.net [5.45.198.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49FwGN5klGz3MGL for ; Mon, 4 May 2020 07:58:35 +0000 (UTC) (envelope-from melifaro@ipfw.ru) Received: from mxback25j.mail.yandex.net (mxback25j.mail.yandex.net [IPv6:2a02:6b8:0:1619::225]) by forward501j.mail.yandex.net (Yandex) with ESMTP id 8C9F43380397; Mon, 4 May 2020 10:58:33 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback25j.mail.yandex.net (mxback/Yandex) with ESMTP id 8QQXA2KFCO-wWeqcMSd; Mon, 04 May 2020 10:58:32 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfw.ru; s=mail; t=1588579112; bh=mj4j5PvnCuSIz4mHzysOj9Ofa21bPHu7L8gHLY/iaxo=; h=Message-Id:Subject:In-Reply-To:Date:References:To:From; b=kkUzeOlj5HItb8nvFgnABwN3A+4axxcJkxHzMXX1waS+pq5CbgvPSlC7Q4Vh46AMk Yf1AVOOWn/jirwzIl2ErDmbkImHsjeyvNQZZW0cQRM7h8jFstlwDO4Gse0xUO2yqao eP5ueXf+vvrdZJID9LIch47otwAaTLnMDKObEXSg= Received: by iva8-5e86d95f65ab.qloud-c.yandex.net with HTTP; Mon, 04 May 2020 10:58:32 +0300 From: Alexander V. Chernikov Envelope-From: melifaro@ipfw.ru To: Guy Yur , Steffen Christgau , "freebsd-net@freebsd.org" , Roy Marples In-Reply-To: References: <4f3a314a-f938-476b-f75e-e495756a5488@s14u.de> <718441588495188@mail.yandex.ru> Subject: Re: Notification about tentative IPv6 address from route socket MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Mon, 04 May 2020 08:58:32 +0100 Message-Id: <799631588579004@mail.yandex.ru> Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 X-Rspamd-Queue-Id: 49FwGN5klGz3MGL X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ipfw.ru header.s=mail header.b=kkUzeOlj; dmarc=none; spf=pass (mx1.freebsd.org: domain of melifaro@ipfw.ru designates 5.45.198.251 as permitted sender) smtp.mailfrom=melifaro@ipfw.ru X-Spamd-Result: default: False [-5.99 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[ipfw.ru:s=mail]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip4:5.45.192.0/19]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.org]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[ipfw.ru:+]; IP_SCORE(-3.69)[ip: (-9.75), ipnet: 5.45.192.0/18(-4.86), asn: 13238(-3.85), country: RU(0.01)]; FORGED_SENDER(0.30)[melifaro@freebsd.org,melifaro@ipfw.ru]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_IN_DNSWL_LOW(-0.10)[251.198.45.5.list.dnswl.org : 127.0.5.1]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:13238, ipnet:5.45.192.0/18, country:RU]; FROM_NEQ_ENVFROM(0.00)[melifaro@freebsd.org,melifaro@ipfw.ru] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2020 07:58:38 -0000 04.05.2020, 07:23, "Guy Yur" : > Hi, > > ------ Original Message ------ > From: "Alexander V. Chernikov" > To: "Steffen Christgau" ; "freebsd-net@freebsd.org" > > Sent: 2020-05-03 11:42:07 > Subject: Re: Notification about tentative IPv6 address from route socket > >> 30.04.2020, 17:40, "Steffen Christgau" : >>>   Hi everybody, >> Hi Steffen, >>> ... >>> >>>   1) Is there a way to get notified about the address being available for >>>   usage (i.e. not tentative anymore, not duplicated) without _polling_ via >> Not that I'm aware of :-( >>> ... >>> >>>   2) I know FreeBSD is not Linux, but on Linux with netlink sockets I get >>>   notified about a) the address appearing (including flags) and b) some >>>   time later the address being not tentative anymore (detectable via >>>   flags). I wonder why the route socket on FreeBSD reports an address that >>>   is currently hardly to use. On the other hand, I understand that >>>   RTM_NEWADDR does exactly what is documented, i.e. to notify about an >>>   "address being added to iface". Nevertheless, wouldn't it make sense to >>>   tell an application that a change for an address takes place? I couldn't >>>   observe such a behavior for IPv6 on FreeBSD. If there is currently no >>>   really such notification, the kernel could emit a new message like >>>   RTM_ADDRCHANGE or it may repeats the emission of RTM_NEWADDR (which >> It makes total sense. I have plans to update some rtsock internals and will take a look at this one. >> Thank you for your suggestion! > > There is a phabricator differential written by Roy Marples that does > this: > https://reviews.freebsd.org/D5469 Wow! Thank you for the pointing me to this review. Will look&test in a day or two. > > Regards, > Guy > >>>   ... >>> >>>   Regards, Steffen >>>   _______________________________________________ >>> freebsd-net@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-net >>>   To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"