Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/net Pull up revision 1.7 (requested by itojun in ti...



details:   https://anonhg.NetBSD.org/src/rev/67e33ddf25c1
branches:  netbsd-1-6
changeset: 527826:67e33ddf25c1
user:      tv <tv%NetBSD.org@localhost>
date:      Mon Jun 10 16:28:33 2002 +0000

description:
Pull up revision 1.7 (requested by itojun in ticket #217):
reject "add" request if if_mtu is different.

diffstat:

 sys/net/if_bridge.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r ab9acfd466cd -r 67e33ddf25c1 sys/net/if_bridge.c
--- a/sys/net/if_bridge.c       Mon Jun 10 16:26:11 2002 +0000
+++ b/sys/net/if_bridge.c       Mon Jun 10 16:28:33 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bridge.c,v 1.5 2002/03/24 16:11:23 jdolecek Exp $   */
+/*     $NetBSD: if_bridge.c,v 1.5.4.1 2002/06/10 16:28:33 tv Exp $     */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -82,7 +82,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.5 2002/03/24 16:11:23 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.5.4.1 2002/06/10 16:28:33 tv Exp $");
 
 #include "bpfilter.h"
 #include "rnd.h"
@@ -556,6 +556,9 @@
        if (ifs == NULL)
                return (ENOENT);
 
+       if (sc->sc_if.if_mtu != ifs->if_mtu)
+               return (EINVAL);
+
        if (ifs->if_bridge == sc)
                return (EEXIST);
 



Home | Main Index | Thread Index | Old Index