Revision 1b2f460a
Added by Ermal LUÇI over 12 years ago
etc/rc.newwanipv6 | ||
---|---|---|
74 | 74 |
$interface_real = $argument; |
75 | 75 |
$interface = convert_real_interface_to_friendly_interface_name($interface_real); |
76 | 76 |
$curwanipv6 = get_interface_ipv6($interface, true); |
77 |
$interface_realv6 = get_real_interface($interface, "inet6"); |
|
77 | 78 |
} |
78 | 79 |
|
79 | 80 |
if (empty($interface)) { |
... | ... | |
105 | 106 |
/* write current WAN IPv6 to file */ |
106 | 107 |
file_put_contents("{$g['vardb_path']}/{$interface}_ipv6", $curwanipv6); |
107 | 108 |
|
108 |
log_error("rc.newwanipv6: on (IP address: {$curwanipv6}) (interface: {$interface}) (real interface: {$interface_real})."); |
|
109 |
log_error("rc.newwanipv6: on (IP address: {$curwanipv6}) (interface: {$interface}) (real interface: {$interface_realv6}).");
|
|
109 | 110 |
|
110 | 111 |
$oldipv6 = ""; |
111 | 112 |
if (file_exists("{$g['vardb_path']}/{$interface}_cacheipv6")) |
... | ... | |
141 | 142 |
} |
142 | 143 |
exit; |
143 | 144 |
} else |
144 |
mwexec("/sbin/ifconfig {$interface_real} inet6 {$oldipv6} delete"); |
|
145 |
mwexec("/sbin/ifconfig {$interface_realv6} inet6 {$oldipv6} delete");
|
|
145 | 146 |
} |
146 | 147 |
|
147 | 148 |
file_put_contents("{$g['vardb_path']}/{$interface}_cacheipv6", $curwanipv6); |
Also available in: Unified diff
Use the new functionality on get_real_interface to get the _stf interface when needed