diff options
Diffstat (limited to 'usr.sbin/ppp/ppp/tun.c')
-rw-r--r-- | usr.sbin/ppp/ppp/tun.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/ppp/tun.c b/usr.sbin/ppp/ppp/tun.c index cc27b99d128..d07aaf8aee6 100644 --- a/usr.sbin/ppp/ppp/tun.c +++ b/usr.sbin/ppp/ppp/tun.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $OpenBSD: tun.c,v 1.9 2000/02/27 01:38:29 brian Exp $ + * $OpenBSD: tun.c,v 1.10 2000/11/28 22:59:53 brian Exp $ */ #include <sys/param.h> @@ -74,7 +74,7 @@ #include "tun.h" void -tun_configure(struct bundle *bundle, int mtu) +tun_configure(struct bundle *bundle) { #ifdef __NetBSD__ struct ifreq ifr; @@ -88,7 +88,7 @@ tun_configure(struct bundle *bundle, int mtu) } sprintf(ifr.ifr_name, "tun%d", bundle->unit); - ifr.ifr_mtu = mtu; + ifr.ifr_mtu = bundle->mtu; if (ioctl(s, SIOCSIFMTU, &ifr) < 0) log_Printf(LogERROR, "tun_configure: ioctl(SIOCSIFMTU): %s\n", strerror(errno)); @@ -99,7 +99,7 @@ tun_configure(struct bundle *bundle, int mtu) memset(&info, '\0', sizeof info); info.type = IFT_PPP; - info.mtu = mtu; + info.mtu = bundle->mtu; info.baudrate = bundle->bandwidth; #ifdef __OpenBSD__ |