Add a configuration options which enable/disable IPv4 mapped IPv6 addr
support. Suggested and Reviewed by: ume
This commit is contained in:
parent
a0e14f58d9
commit
39257a7c67
@ -232,6 +232,8 @@ stf_interface_ipv4plen="0" # Prefix length for 6to4 IPv4 addr,
|
||||
stf_interface_ipv6_ifid="0:0:0:1" # IPv6 interface id for stf0.
|
||||
# If you like, you can set "AUTO" for this.
|
||||
stf_interface_ipv6_slaid="0000" # IPv6 Site Level Aggregator for stf0
|
||||
ipv6_ipv4mapping="YES"; # Set to brank to disable IPv4 mapped IPv6 addr
|
||||
# communication. (like ::ffff:a.b.c.d)
|
||||
|
||||
##############################################################
|
||||
### System console options #################################
|
||||
|
@ -212,6 +212,17 @@ network6_pass1() {
|
||||
;;
|
||||
esac
|
||||
|
||||
case ${ipv6_ipv4mapping} in
|
||||
[Yy][Ee][Ss])
|
||||
echo -n ' IPv4 mapped IPv6 address support=YES'
|
||||
sysctl -w net.inet6.ip6.mapped_addr=1 >/dev/null
|
||||
;;
|
||||
'' | *)
|
||||
echo -n ' IPv4 mapped IPv6 address support=NO'
|
||||
sysctl -w net.inet6.ip6.mapped_addr=0 >/dev/null
|
||||
;;
|
||||
esac
|
||||
|
||||
echo '.'
|
||||
|
||||
# Let future generations know we made it.
|
||||
|
@ -212,6 +212,17 @@ network6_pass1() {
|
||||
;;
|
||||
esac
|
||||
|
||||
case ${ipv6_ipv4mapping} in
|
||||
[Yy][Ee][Ss])
|
||||
echo -n ' IPv4 mapped IPv6 address support=YES'
|
||||
sysctl -w net.inet6.ip6.mapped_addr=1 >/dev/null
|
||||
;;
|
||||
'' | *)
|
||||
echo -n ' IPv4 mapped IPv6 address support=NO'
|
||||
sysctl -w net.inet6.ip6.mapped_addr=0 >/dev/null
|
||||
;;
|
||||
esac
|
||||
|
||||
echo '.'
|
||||
|
||||
# Let future generations know we made it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user