summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/tun.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/tun.c')
-rw-r--r--usr.sbin/ppp/tun.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/usr.sbin/ppp/tun.c b/usr.sbin/ppp/tun.c
index 179c8b2..b5a8b96 100644
--- a/usr.sbin/ppp/tun.c
+++ b/usr.sbin/ppp/tun.c
@@ -23,12 +23,14 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: tun.c,v 1.13 1999/04/26 08:54:34 brian Exp $
+ * $Id: tun.c,v 1.14 1999/05/08 11:07:53 brian Exp $
*/
#include <sys/param.h>
+#ifdef __OpenBSD__
#include <sys/socket.h> /* For IFF_ defines */
#include <net/if.h> /* For IFF_ defines */
+#endif
#include <netinet/in.h>
#include <net/if_types.h>
#include <net/if_tun.h>
@@ -95,17 +97,10 @@ tun_configure(struct bundle *bundle, int mtu)
memset(&info, '\0', sizeof info);
info.type = IFT_PPP;
-#ifndef NORADIUS
- if (bundle->radius.valid && bundle->radius.mtu && bundle->radius.mtu < mtu) {
- log_Printf(LogLCP, "Reducing MTU to radius value %lu\n",
- bundle->radius.mtu);
- info.mtu = bundle->radius.mtu;
- } else
-#endif
- info.mtu = mtu;
+ info.mtu = mtu;
- info.baudrate = bundle->ifSpeed;
-#ifdef __OpenBSD__
+ info.baudrate = bundle->bandwidth;
+#ifdef __OpenBSD__
info.flags = IFF_UP|IFF_POINTOPOINT;
#endif
if (ioctl(bundle->dev.fd, TUNSIFINFO, &info) < 0)
OpenPOWER on IntegriCloud