diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-13 05:25:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-13 05:25:37 +0000 |
commit | af67c4ab8c00891a7dc130529698d41da129e4ef (patch) | |
tree | 575e6812afde9591d165af15aff6fa3b7c4772d2 /etc/inc | |
parent | 563ced33e68e477da9ebc2ee82c9792d6dead2be (diff) | |
download | pfsense-af67c4ab8c00891a7dc130529698d41da129e4ef.zip pfsense-af67c4ab8c00891a7dc130529698d41da129e4ef.tar.gz |
Translare friendly interface names to real interface names
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index bc43378..4dc25fa 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -124,6 +124,9 @@ function enable_hardware_offloading($interface) { if(isset($config['system']['do_not_use_nic_microcode'])) return; if($g['booting']) { + /* translate wan, lan, opt -> real interface if needed */ + $int = filter_translate_type_to_real_interface($interface); + if($int <> "") $interface = $int; /* activate polling for interface if it supports it * man polling on a freebsd box for the following list */ @@ -134,9 +137,6 @@ function enable_hardware_offloading($interface) { mwexec("/sbin/ifconfig {$interface} polling"); } } - /* translate wan, lan, opt -> real interface if needed */ - $int = filter_translate_type_to_real_interface($interface); - if($int <> "") $interface = $int; $options = strtolower(`/sbin/ifconfig {$interface} | grep options`); $supported_ints = array('fxp'); foreach($supported_ints as $int) { |