summaryrefslogtreecommitdiff
path: root/sys/net/if_gif.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-05-20 22:29:58 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-05-20 22:29:58 +0000
commit3182ed9fe103fb76d0e3e9410d0c96d238f1bff2 (patch)
treeb925170365aafca3e11404642aac4be6c1557ede /sys/net/if_gif.c
parent16eef488be5d6382da6b6227a6a542b9fe807921 (diff)
Allow SIOCSIFMTU on gif interfaces.
From Mattias Amnefelt mattiasa at e.kth.se. niels@ ok.
Diffstat (limited to 'sys/net/if_gif.c')
-rw-r--r--sys/net/if_gif.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index 61d255b849e..56ef774ec4c 100644
--- a/sys/net/if_gif.c
+++ b/sys/net/if_gif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gif.c,v 1.21 2002/03/14 01:27:09 millert Exp $ */
+/* $OpenBSD: if_gif.c,v 1.22 2002/05/20 22:29:57 art Exp $ */
/* $KAME: if_gif.c,v 1.43 2001/02/20 08:51:07 itojun Exp $ */
/*
@@ -520,6 +520,10 @@ gif_ioctl(ifp, cmd, data)
/* if_ioctl() takes care of it */
break;
+ case SIOCSIFMTU:
+ ifp->if_mtu = ((struct ifreq *)data)->ifr_mtu;
+ break;
+
default:
error = EINVAL;
break;