From af67c4ab8c00891a7dc130529698d41da129e4ef Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 13 Oct 2005 05:25:37 +0000 Subject: Translare friendly interface names to real interface names --- etc/inc/pfsense-utils.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc/inc') 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) { -- cgit v1.1