Revision f233ddeb
Added by Ermal LUÇI over 10 years ago
etc/inc/interfaces.inc | ||
---|---|---|
3450 | 3450 |
/* create the long prefix notation for math, save the prefix length */ |
3451 | 3451 |
$rd6prefix = explode("/", $wancfg['prefix-6rd']); |
3452 | 3452 |
$rd6prefixlen = $rd6prefix[1]; |
3453 |
$rd6brgw = rtrim($rd6prefix[0], ':') . ":{$wancfg['gateway-6rd']}::"; |
|
3453 |
$brgw = explode('.', $wancfg['gateway-6rd']); |
|
3454 |
$rd6brgw = rtrim($rd6prefix[0], ':') . ':' . dechex($brgw[0]) . dechex($brgw[1]) . ':' . dechex($brgw[2]) . dechex($brgw[3]) . '::'; |
|
3455 |
unset($brgw); |
|
3454 | 3456 |
$rd6prefix = Net_IPv6::uncompress($rd6prefix[0]); |
3455 | 3457 |
|
3456 | 3458 |
/* binary presentation of the prefix for all 128 bits. */ |
Also available in: Unified diff
Actually use all hex values on the gateway of 6rd to please route command