Revision e4610069
Added by Seth Mos almost 13 years ago
etc/inc/interfaces.inc | ||
---|---|---|
3356 | 3356 |
exec("/sbin/rtsol -d {$wanif} 2>&1", $out, $ret); |
3357 | 3357 |
if(!empty($out)) { |
3358 | 3358 |
foreach($out as $line) { |
3359 |
if(stristr($line, "received")) {
|
|
3359 |
if((stristr($line, "received")) && (!stristr($line, "unexpected"))) {
|
|
3360 | 3360 |
$parts = explode(" ", $line); |
3361 | 3361 |
if(is_ipaddrv6($parts[3])) { |
3362 | 3362 |
log_error("Found IPv6 default gateway '{$parts[3]}' by RA."); |
Also available in: Unified diff
Make sure to skip "unexpected" RA messages from other interfaces, we don't want those.