mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 03:39:02 +00:00
Implement the option to disable IPv6 on an sppp interface (counterpart
to the kernel code just committed). MFC after: 1 month
This commit is contained in:
parent
ee037f26bc
commit
a38a8f75a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88724
@ -24,7 +24,7 @@
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd December 27, 2001
|
||||
.Dd December 30, 2001
|
||||
.Os
|
||||
.Dt SPPPCONTROL 8
|
||||
.Sh NAME
|
||||
@ -172,6 +172,17 @@ defaulting to 3000 ms.
|
||||
Enable negotiation of Van Jacobsen header compression. (Enabled by default.)
|
||||
.It Ar disable-vj
|
||||
Disable negotiation of Van Jacobsen header compression.
|
||||
.It Ar enable-ipv6
|
||||
Enable negotiation of the IPv6 network control protocol. (Enabled by
|
||||
default if the kernel has IPv6 enabled.)
|
||||
.It Ar disable-ipv6
|
||||
Disable negotiation of the IPv6 network control protocol. Since every
|
||||
IPv4 interface in an IPv6-enabled kernel automatically gets an IPv6
|
||||
address assigned, this option provides for a way to administratively
|
||||
prevent the link from attempting to negotiate IPv6. Note that
|
||||
initialization of an IPv6 interface causes a multicast packet to be
|
||||
sent, which can cause unwanted traffic costs (for dial-on-demand
|
||||
interfaces).
|
||||
.El
|
||||
.Sh EXAMPLES
|
||||
.Bd -literal
|
||||
@ -181,6 +192,7 @@ bppp0: phase=dead
|
||||
hisauthproto=chap hisauthname="ifb-gw" norechallenge
|
||||
lcp-timeout=3000
|
||||
enable-vj
|
||||
enable-ipv6
|
||||
.Ed
|
||||
.Pp
|
||||
Display the settings for bppp0. The interface is currently in
|
||||
|
@ -177,6 +177,10 @@ main(int argc, char **argv)
|
||||
spr.defs.enable_vj = 1;
|
||||
else if (strcmp(argv[0], "disable-vj") == 0)
|
||||
spr.defs.enable_vj = 0;
|
||||
else if (strcmp(argv[0], "enable-ipv6") == 0)
|
||||
spr.defs.enable_ipv6 = 1;
|
||||
else if (strcmp(argv[0], "disable-ipv6") == 0)
|
||||
spr.defs.enable_ipv6 = 0;
|
||||
else
|
||||
errx(EX_DATAERR, "bad parameter: \"%s\"", argv[0]);
|
||||
|
||||
@ -221,6 +225,7 @@ print_vals(const char *ifname, struct spppreq *sp)
|
||||
}
|
||||
printf("\tlcp-timeout=%d ms\n", sp->defs.lcp.timeout);
|
||||
printf("\t%sable-vj\n", sp->defs.enable_vj? "en": "dis");
|
||||
printf("\t%sable-ipv6\n", sp->defs.enable_ipv6? "en": "dis");
|
||||
}
|
||||
|
||||
const char *
|
||||
|
Loading…
Reference in New Issue
Block a user