diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-08-14 10:00:10 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-08-14 10:00:10 +0000 |
commit | 5fbeb2790d26067a9fc915431fb4ad7fddf84cab (patch) | |
tree | 9477b852f7dce8603604683111e5b464c799480f /usr | |
parent | cb0a2913cdbe02d0696b83d0de431a8e37214703 (diff) | |
download | pfsense-5fbeb2790d26067a9fc915431fb4ad7fddf84cab.zip pfsense-5fbeb2790d26067a9fc915431fb4ad7fddf84cab.tar.gz |
Prevent gif(4) interfaces from being used in bridges.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/interfaces_bridge_edit.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_bridge_edit.php b/usr/local/www/interfaces_bridge_edit.php index c66ae5f..8eef909 100644 --- a/usr/local/www/interfaces_bridge_edit.php +++ b/usr/local/www/interfaces_bridge_edit.php @@ -251,6 +251,8 @@ function show_source_port_range() { <select name="members[]" multiple="true" class="formselect" size="3"> <?php foreach ($ifacelist as $ifn => $ifinfo) { + if (strstr(get_real_interface($ifn), "gif") != FALSE) + continue; /* gif(4) cannot be part of bridge since it does not know about layer2 */ echo "<option value=\"{$ifn}\""; if (stristr($pconfig['members'], $ifn)) echo "selected"; |