mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-25 19:07:46 +00:00
fe7ca2e1e8
Add "disable" module parameter support to ipv6.ko by specifying "disable=1" on module load. We just do the minimum of initializing inetsw6[] so calls from other modules to inet6_register_protosw() won't OOPs, then bail out. No IPv6 addresses or sockets can be created as a result, and a reboot is required to enable IPv6. Signed-off-by: Brian Haley <brian.haley@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
36 lines
950 B
Plaintext
36 lines
950 B
Plaintext
|
|
Options for the ipv6 module are supplied as parameters at load time.
|
|
|
|
Module options may be given as command line arguments to the insmod
|
|
or modprobe command, but are usually specified in either the
|
|
/etc/modules.conf or /etc/modprobe.conf configuration file, or in a
|
|
distro-specific configuration file.
|
|
|
|
The available ipv6 module parameters are listed below. If a parameter
|
|
is not specified the default value is used.
|
|
|
|
The parameters are as follows:
|
|
|
|
disable
|
|
|
|
Specifies whether to load the IPv6 module, but disable all
|
|
its functionality. This might be used when another module
|
|
has a dependency on the IPv6 module being loaded, but no
|
|
IPv6 addresses or operations are desired.
|
|
|
|
The possible values and their effects are:
|
|
|
|
0
|
|
IPv6 is enabled.
|
|
|
|
This is the default value.
|
|
|
|
1
|
|
IPv6 is disabled.
|
|
|
|
No IPv6 addresses will be added to interfaces, and
|
|
it will not be possible to open an IPv6 socket.
|
|
|
|
A reboot is required to enable IPv6.
|
|
|