Bug 195502 - Support IPv6 addresses in /etc/rc.d/netwait
Summary: Support IPv6 addresses in /etc/rc.d/netwait
Status: In Progress
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 10.0-STABLE
Hardware: Any Any
: --- Affects Many People
Assignee: Hiroki Sato
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2014-11-29 15:56 UTC by Dmitry Sivachenko
Modified: 2023-09-27 07:38 UTC (History)
4 users (show)

See Also:


Attachments
IPv6 support for rc.d/netwait (510 bytes, patch)
2014-11-29 15:56 UTC, Dmitry Sivachenko
no flags Details | Diff
New patch against 10.2-RELEASE (673 bytes, patch)
2015-08-14 21:13 UTC, Roger Leigh
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Sivachenko freebsd_committer freebsd_triage 2014-11-29 15:56:59 UTC
Created attachment 149990 [details]
IPv6 support for rc.d/netwait

Currently /etc/rc.d/netwait supports only IPv4 addresses.
The proposed patch adds support for IPv6 addresses, so this script can be used in
IPv6-only environment.
Comment 1 Roger Leigh 2015-08-14 21:13:00 UTC
Created attachment 159879 [details]
New patch against 10.2-RELEASE

Adds -X option to ping6.
Comment 2 Roger Leigh 2015-08-14 21:15:46 UTC
I've attached a slightly updated patch.  However, in practice I don't think either patch is fully correct--if the IPv6 address isn't available to due SLAAC taking a while in my case, then the timeout isn't respected.  This is because it loops through all the $netwait_timeout count in a second or so--ping6 isn't waiting one second before terminating.  However using -X 1 on the command-line shows this is working as documented if I try with an invalid IPv6 address, but maybe the behaviour is different if there's no global IPv6 address as during boot.
Comment 3 punkt.de Hosting Team 2019-04-03 09:31:55 UTC
Hey guys,

what can we do to bring this back on the agenda? Is the pach as provided by Roger OK or can we help?

Kind regards,
Patrick
Comment 4 Hiroki Sato freebsd_committer freebsd_triage 2019-04-03 10:34:12 UTC
(In reply to punkt.de Hosting Team from comment #3)
I will take a look into this.
Comment 5 punkt.de Hosting Team 2023-09-27 07:38:23 UTC
Hi all,

is this still relevant? We would appreciate IPv6 support for netwait but I am not quite sure about the current state in releng/13 or releng/14.

Kind regards,
Patrick