summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-01-16 12:06:35 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-01-16 12:06:35 -0200
commit84086442a2fa40b0fba12cf00a935144de3c5e71 (patch)
treeedb3a7998fadda1b52ea96200b349a0e7cf64c97
parent70ae8b9cf85d3a6badb32ea60eda3fac38879a42 (diff)
downloadpfsense-84086442a2fa40b0fba12cf00a935144de3c5e71.zip
pfsense-84086442a2fa40b0fba12cf00a935144de3c5e71.tar.gz
Set flag setautosrc to replicate parent's mac address automatically when it changes, it's a better solution then dettach it. This should fix #2641
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index d1bc279..32b59d5 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1369,9 +1369,9 @@ function interface_ppps_configure($interface) {
case "pppoe":
/* Bring the parent interface up */
interfaces_bring_up($port);
- /* Detach if it was previously attached to use new mac address if it has been changed */
- pfSense_ngctl_detach("{$port}:", $port);
pfSense_ngctl_attach(".", $port);
+ /* Enable setautosrc to automatically change mac address if parent interface's changes */
+ mwexec("ngctl msg {$port}: setautosrc 1");
break;
case "pptp":
case "l2tp":
OpenPOWER on IntegriCloud