diff options
author | Brian Somers <brian@FreeBSD.org> | 1998-10-22 02:32:50 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1998-10-22 02:32:50 +0000 |
commit | 8fa6ebe47d24a6621f1be15f3157e2e1a046596e (patch) | |
tree | 03ddc596cc1adbe145661cd33495c5f104f61d67 /usr.sbin/ppp/tun.c | |
parent | 0b10ba982246305eee44ef26b27d6173f70c4aad (diff) | |
download | src-test2-8fa6ebe47d24a6621f1be15f3157e2e1a046596e.tar.gz src-test2-8fa6ebe47d24a6621f1be15f3157e2e1a046596e.zip |
Notes
Diffstat (limited to 'usr.sbin/ppp/tun.c')
-rw-r--r-- | usr.sbin/ppp/tun.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ppp/tun.c b/usr.sbin/ppp/tun.c index c1d021f58a6d..6d97e38c4b75 100644 --- a/usr.sbin/ppp/tun.c +++ b/usr.sbin/ppp/tun.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: tun.c,v 1.8 1998/06/27 14:18:15 brian Exp $ + * $Id: tun.c,v 1.9 1998/08/09 16:41:01 brian Exp $ */ #include <sys/types.h> @@ -65,9 +65,10 @@ tun_configure(struct bundle *bundle, int mtu) { struct tuninfo info; + memset(&info, '\0', sizeof info); info.type = IFT_PPP; info.mtu = mtu; - info.baudrate = bundle->ifp.Speed; + info.baudrate = bundle->ifSpeed; #ifdef __OpenBSD__ info.flags = IFF_UP|IFF_POINTOPOINT; #endif |