Add a new variable `noInet6', which if set disables IPv6 configuration

dialog for network interfaces.

MFC after:	20 days
This commit is contained in:
Maxim Sobolev 2003-02-27 21:04:34 +00:00
parent fdb8bf0997
commit 9434c1a30b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111644
3 changed files with 5 additions and 2 deletions

View File

@ -165,6 +165,7 @@
#define VAR_NO_CONFIRM "noConfirm"
#define VAR_NO_ERROR "noError"
#define VAR_NO_HOLOSHELL "noHoloShell"
#define VAR_NO_INET6 "noInet6"
#define VAR_NO_WARN "noWarn"
#define VAR_NO_USR "noUsr"
#define VAR_NO_TMP "noTmp"

View File

@ -165,6 +165,7 @@
#define VAR_NO_CONFIRM "noConfirm"
#define VAR_NO_ERROR "noError"
#define VAR_NO_HOLOSHELL "noHoloShell"
#define VAR_NO_INET6 "noInet6"
#define VAR_NO_WARN "noWarn"
#define VAR_NO_USR "noUsr"
#define VAR_NO_TMP "noTmp"

View File

@ -368,8 +368,9 @@ tcpOpenDialog(Device *devp)
* If it was configured to anything else, treat it as NO.
* Otherwise, ask the question interactively.
*/
if (!variable_cmp(VAR_TRY_RTSOL, "YES") ||
(variable_get(VAR_TRY_RTSOL)==0 && !msgNoYes("Do you want to try IPv6 configuration of the interface?"))) {
if (!variable_get(VAR_NO_INET6) &&
(!variable_cmp(VAR_TRY_RTSOL, "YES") ||
(variable_get(VAR_TRY_RTSOL)==0 && !msgNoYes("Do you want to try IPv6 configuration of the interface?")))) {
int i;
size_t len;