summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-08-01 02:45:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-08-01 02:45:00 +0000
commit13bcefca44ba3741b15d5859dd576526f35184f5 (patch)
tree8c9b341a04b0571979eeea5ad0321053316f185c /etc/inc/pfsense-utils.inc
parent015554f379e2fe15bcce6f7c4db5292645537716 (diff)
downloadpfsense-13bcefca44ba3741b15d5859dd576526f35184f5.zip
pfsense-13bcefca44ba3741b15d5859dd576526f35184f5.tar.gz
Correctly get mtu size on 7.x
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index bd27bad..a4f8f3a 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1142,7 +1142,7 @@ function is_carp_defined() {
* $tmp - Returns the mtu of an interface
******/
function get_interface_mtu($interface) {
- $mtu = `/sbin/ifconfig {$interface} | /usr/bin/grep mtu | /usr/bin/cut -d" " -f4`;
+ $mtu = `/sbin/ifconfig {$interface} | /usr/bin/grep mtu | /usr/bin/cut -d" " -f6`;
return $mtu;
}
@@ -3667,4 +3667,4 @@ function safe_write_file($file, $content, $force_binary) {
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud