From owner-freebsd-net@freebsd.org Mon May 4 06:23:03 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 14F072C57FB for ; Mon, 4 May 2020 06:23:03 +0000 (UTC) (envelope-from guyyur@gmail.com) Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49Ft866nZDz3G5g; Mon, 4 May 2020 06:23:02 +0000 (UTC) (envelope-from guyyur@gmail.com) Received: by mail-wm1-x343.google.com with SMTP id v8so14726823wma.0; Sun, 03 May 2020 23:23:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:reply-to :user-agent:mime-version:content-transfer-encoding; bh=n6bu6F2P29RKrkhF58CokKx+5cvQznqOM0XFnE84yiY=; b=nALPVtyI6YdhaTCTv3bcqkC4O5dZTYHw/XozpMsoi/TFZckHSRHEbiE81a+nHDDiPR 5+zAihEdBOPzYQEGc2+8x5d9tJ7FqIUhPNS8WVk4IFBykPUjB02pfw48ryHqQ87hgLsS a2RrEejpsHhxyFqUDe4/nSs54KhoNWF+7yK7mCo7RAZTUxOmBD5FqtaWRrrxR9YOX4up /7arYyU+EMwai13wSN7+GZlzA0ctMmQRLLbFU44rwMIhpe4cTsoxQ5stfEeC2LjB6yX9 Fh5wpL4m2mRg/qljqOCjhSyU9fst/dVNY1YykpyArAVijcKkG9zCYHdzq0TKnpj70jzC ysfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:reply-to:user-agent:mime-version :content-transfer-encoding; bh=n6bu6F2P29RKrkhF58CokKx+5cvQznqOM0XFnE84yiY=; b=LqQ2uILO8kEgC4WdV3GXpFtIjGCLYkgCygcKkX8qiEZsLEB9dIQVPA7Nq8iovXVDh7 PrTExd5B4/mfftC0k75emlpcgzY7Av8e2Ujt9hGf03LXoVVqDTsek+LjHcqH6GVjypy3 fTcyWs3+xp+XDkpBI+KuCVzmd1k+iCmKnOPEinFzfPnd9fodOteUEH/otJl35xzcrRI0 mZFlqGWCF36FS4rFUUFnKhgHpD7pw+utAaoYaRScDkYAUXycmX1H+dJ1ViJEZzI1i6P7 5s3ySGkZxQ8eW4QTY2Jsam/zhGF7knpCgTT5O0TpBAp5B/Hmeq7pudfhojLJNLF2Jvgr 5jQQ== X-Gm-Message-State: AGi0PuZt3ufEsFWlUuK4pGNFUHjMrK02UfqODLPNWPuGYVnKAXVe5IA8 UkVGEPxgnkWwIrRLEwIOJqkpdew2NFM= X-Google-Smtp-Source: APiQypLW0/QYiYP6V0vlHFvqYc++SRzB1Iw9Wy5EeoEH2/D8o+d/PQ+y/cO+tttNV6oPEJFi6rIFwg== X-Received: by 2002:a1c:4c10:: with SMTP id z16mr12859827wmf.77.1588573379972; Sun, 03 May 2020 23:22:59 -0700 (PDT) Received: from ?IPv6:2a02:ed0:2a83:f801:86f:c0e8:a011:2bf? ([2a02:ed0:2a83:f801:86f:c0e8:a011:2bf]) by smtp.gmail.com with ESMTPSA id g74sm11748146wme.44.2020.05.03.23.22.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 May 2020 23:22:59 -0700 (PDT) From: "Guy Yur" To: "Alexander V. Chernikov" , "Steffen Christgau" , "freebsd-net@freebsd.org" , "Roy Marples" Subject: Re[2]: Notification about tentative IPv6 address from route socket Date: Mon, 04 May 2020 06:22:57 +0000 Message-Id: In-Reply-To: <718441588495188@mail.yandex.ru> References: <4f3a314a-f938-476b-f75e-e495756a5488@s14u.de> <718441588495188@mail.yandex.ru> Reply-To: "Guy Yur" User-Agent: eM_Client/7.2.38732.0 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 49Ft866nZDz3G5g X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] 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 06:23:03 -0000 Hi, ------ Original Message ------ From: "Alexander V. Chernikov" To: "Steffen Christgau" ; "freebsd-net@freebsd.org"=20 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_ vi= a >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 tha= t >> 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 wil= l take a look at this one. >Thank you for your suggestion! There is a phabricator differential written by Roy Marples that does=20 this: https://reviews.freebsd.org/D5469 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"