summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1996-12-10 07:29:50 +0000
committerdg <dg@FreeBSD.org>1996-12-10 07:29:50 +0000
commit1665979d2e5ce0eb4858dedb47572346ff1eadef (patch)
tree6dd10ac37eb6c182f025fad192efc51d37c719ca /sys/dev/ed
parent46f2dd81651991d6e396015c9ce7929a0ca242ec (diff)
downloadFreeBSD-src-1665979d2e5ce0eb4858dedb47572346ff1eadef.zip
FreeBSD-src-1665979d2e5ce0eb4858dedb47572346ff1eadef.tar.gz
1) Implement SIOCSIFMTU in ether_ioctl(), and change ether_ioctl's return
type to be int so that errors can be returned. 2) Use the new SIOCSIFMTU ether_ioctl support in the few drivers that are using ether_ioctl(). 3) In if_fxp.c: treat if_bpf as a token, not as a pointer. Don't bother testing for FXP_NTXSEG being reached in fxp_start()...just check for non-NULL 'm'. Change fxp_ioctl() to use ether_ioctl().
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index 96da68c..6bed04e 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_ed.c,v 1.108 1996/11/15 16:07:03 wollman Exp $
+ * $Id: if_ed.c,v 1.109 1996/12/03 16:08:00 phk Exp $
*/
/*
@@ -2627,7 +2627,8 @@ ed_ioctl(ifp, command, data)
case SIOCSIFADDR:
case SIOCGIFADDR:
- ether_ioctl(ifp, command, data);
+ case SIOCSIFMTU:
+ error = ether_ioctl(ifp, command, data);
break;
case SIOCSIFFLAGS:
@@ -2689,17 +2690,6 @@ ed_ioctl(ifp, command, data)
}
break;
- case SIOCSIFMTU:
- /*
- * Set the interface MTU.
- */
- if (ifr->ifr_mtu > ETHERMTU) {
- error = EINVAL;
- } else {
- ifp->if_mtu = ifr->ifr_mtu;
- }
- break;
-
default:
error = EINVAL;
}
OpenPOWER on IntegriCloud