diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-09-23 18:32:15 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-09-23 18:32:15 +0000 |
commit | bd33ee5732f5ac73e0143265d762ae4940334e9c (patch) | |
tree | d9b583aed5892db985856c2f15ed0286deb8c696 /etc | |
parent | 9ff5048ffdf1c880b8d263205c46212bb65dd420 (diff) | |
download | pfsense-bd33ee5732f5ac73e0143265d762ae4940334e9c.zip pfsense-bd33ee5732f5ac73e0143265d762ae4940334e9c.tar.gz |
Take into consideration the subnet mask configured.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index bd72e3f..a3b1cf0 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -350,7 +350,7 @@ function interface_gre_configure(&$gre) { /* Do not change the order here for more see gre(4) NOTES section. */ mwexec("/sbin/ifconfig {$greif} tunnel {$realifip} {$gre['remote-addr']}"); - mwexec("/sbin/ifconfig {$greif} {$gre['tunnel-local-addr']} {$gre['tunnel-remote-addr']} netmask 255.255.255.255 "); + mwexec("/sbin/ifconfig {$greif} {$gre['tunnel-local-addr']} {$gre['tunnel-remote-addr']} netmask " . gen_subnet_mask($gre['tunnel-remote-net'])); if (isset($gre['link0']) && $gre['link0']) mwexec("/sbin/ifconfig {$greif} link0"); if (isset($gre['link1']) && $gre['link1']) @@ -401,7 +401,7 @@ function interface_gif_configure(&$gif) { /* Do not change the order here for more see gif(4) NOTES section. */ mwexec("/sbin/ifconfig {$gifif} tunnel {$realifip} {$gif['remote-addr']}"); - mwexec("/sbin/ifconfig {$gifif} {$gif['tunnel-local-addr']} {$gif['tunnel-remote-addr']} netmask 255.255.255.255 "); + mwexec("/sbin/ifconfig {$gifif} {$gif['tunnel-local-addr']} {$gif['tunnel-remote-addr']} netmask " . gen_subnet_mask($gif['tunnel-remote-net'])); if (isset($gif['link0']) && $gif['link0']) mwexec("/sbin/ifconfig {$gifif} link0"); if (isset($gif['link1']) && $gif['link1']) |