summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-15 20:38:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-15 20:38:00 +0000
commit1c2497942d5923331d8e735a7f79a851197efb01 (patch)
tree262d6651f7dc01d0a1eff0b37f4d84baabed7338 /etc
parentbf27e41e96ed31bcb2a757366905f1962dd307b8 (diff)
downloadpfsense-1c2497942d5923331d8e735a7f79a851197efb01.zip
pfsense-1c2497942d5923331d8e735a7f79a851197efb01.tar.gz
translate wan, lan, opt -> real interface if needed
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 680af3c..1eb025c 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -123,6 +123,9 @@ function enable_hardware_offloading($interface) {
global $g;
$options = strtolower(`/sbin/ifconfig {$interface} | grep options`);
if($g['booting']) {
+ /* translate wan, lan, opt -> real interface if needed */
+ $int = filter_translate_type_to_real_interface($interface);
+ if($int <> "") $interface = $int;
$supported_ints = array('fxp');
foreach($supported_ints as $int) {
if(stristr($interface,$int) != false) {
OpenPOWER on IntegriCloud