Module Name: src Committed By: ozaki-r Date: Sun Jul 20 16:40:34 UTC 2014
Modified Files: src/sys/net: if_bridge.c Log Message: Don't return ENETRESET when ioctl SIOCSIFMTU Otherwise, just changing MTU with ifconfig shows a confusable error message. RP kern/48996 To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88 src/sys/net/if_bridge.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/if_bridge.c diff -u src/sys/net/if_bridge.c:1.87 src/sys/net/if_bridge.c:1.88 --- src/sys/net/if_bridge.c:1.87 Mon Jul 14 02:34:36 2014 +++ src/sys/net/if_bridge.c Sun Jul 20 16:40:34 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: if_bridge.c,v 1.87 2014/07/14 02:34:36 ozaki-r Exp $ */ +/* $NetBSD: if_bridge.c,v 1.88 2014/07/20 16:40:34 ozaki-r Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -80,7 +80,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.87 2014/07/14 02:34:36 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.88 2014/07/20 16:40:34 ozaki-r Exp $"); #ifdef _KERNEL_OPT #include "opt_bridge_ipf.h" @@ -648,6 +648,11 @@ bridge_ioctl(struct ifnet *ifp, u_long c } break; + case SIOCSIFMTU: + if ((error = ifioctl_common(ifp, cmd, data)) == ENETRESET) + error = 0; + break; + default: error = ifioctl_common(ifp, cmd, data); break;