Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Duh, braino in last -- only kick the interface if we...
details: https://anonhg.NetBSD.org/src/rev/67b54b934592
branches: trunk
changeset: 513149:67b54b934592
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Jul 25 03:18:46 2001 +0000
description:
Duh, braino in last -- only kick the interface if we actually set
the MTU.
diffstat:
sys/net/if_ethersubr.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (27 lines):
diff -r 213f5127f8ea -r 67b54b934592 sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c Wed Jul 25 03:05:33 2001 +0000
+++ b/sys/net/if_ethersubr.c Wed Jul 25 03:18:46 2001 +0000
@@ -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 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index