summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-05-27 04:52:25 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-05-27 04:52:25 +0000
commite0dcbdc8ae74cec294cbf562a7cb834495055882 (patch)
treeaa2616da533f8c0f8b22141be81e5eb38c9d47ab /sys
parent1a9e6b081d1252d69460302c9662ed89a8a74e62 (diff)
handle SIOCSIFMTU ioctl
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_sis.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/if_sis.c b/sys/dev/pci/if_sis.c
index 3a5853cafac..5aef79b7e72 100644
--- a/sys/dev/pci/if_sis.c
+++ b/sys/dev/pci/if_sis.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sis.c,v 1.45 2005/05/22 05:40:52 brad Exp $ */
+/* $OpenBSD: if_sis.c,v 1.46 2005/05/27 04:52:24 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
@@ -1968,6 +1968,12 @@ int sis_ioctl(ifp, command, data)
}
error = 0;
break;
+ case SIOCSIFMTU:
+ if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > ETHERMTU)
+ error = EINVAL;
+ else if (ifp->if_mtu != ifr->ifr_mtu)
+ ifp->if_mtu = ifr->ifr_mtu;
+ break;
case SIOCADDMULTI:
case SIOCDELMULTI:
error = (command == SIOCADDMULTI) ?