diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-04-30 19:43:42 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-04-30 19:43:42 +0000 |
commit | 6424fb8a81fe88750012c0a8b346097f9db24d1d (patch) | |
tree | 48b5c565c24dae5ffb4e8e7cbeb8673e47caa1d7 /sys | |
parent | a141a1065a8d68a9f146033c1bbfb4760a964f5d (diff) |
don't set MTU if its the same as what's currently being used.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/re.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c index d1e20f8e516..ca0a4b185c6 100644 --- a/sys/dev/ic/re.c +++ b/sys/dev/ic/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.11 2005/04/30 08:24:25 pvalchev Exp $ */ +/* $OpenBSD: re.c,v 1.12 2005/04/30 19:43:41 brad Exp $ */ /* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -1856,7 +1856,7 @@ re_ioctl(ifp, command, data) case SIOCSIFMTU: if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > RL_JUMBO_MTU) error = EINVAL; - else + else if (ifp->if_mtu != ifr->ifr_mtu) ifp->if_mtu = ifr->ifr_mtu; break; case SIOCSIFFLAGS: |