Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/net/if_ethersubr.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/net/if_ethersubr.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.87 retrieving revision 1.88 diff -u -p -r1.87 -r1.88 --- src/sys/net/if_ethersubr.c 2001/07/25 03:05:33 1.87 +++ src/sys/net/if_ethersubr.c 2001/07/25 03:18:46 1.88 @@ -1,4 +1,4 @@ -/* $NetBSD: if_ethersubr.c,v 1.87 2001/07/25 03:05:33 thorpej Exp $ */ +/* $NetBSD: if_ethersubr.c,v 1.88 2001/07/25 03:18:46 thorpej Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -1408,12 +1408,13 @@ ether_ioctl(struct ifnet *ifp, u_long cm if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > maxmtu) error = EINVAL; - else + else { ifp->if_mtu = ifr->ifr_mtu; - /* Make sure the device notices the MTU change. */ - if (ifp->if_flags & IFF_UP) - error = (*ifp->if_init)(ifp); + /* Make sure the device notices the MTU change. */ + if (ifp->if_flags & IFF_UP) + error = (*ifp->if_init)(ifp); + } break; }