From 14263ff751db1d878bad974a406737533ea6b70c Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 18 Jun 2001 14:59:36 +0000 Subject: Handle hardware-imposed MTU/MRU limitations. PPPoE will no longer allow MRU/MTU negotiations to exceed 1492. Add an optional ``max'' specifier to ``set m[rt]u'', ie. set mtu max 1480 Bump the ppp version number. Sponsored by: Monzoon Networks AG and FreeBSD Services Limited --- usr.sbin/ppp/physical.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'usr.sbin/ppp/physical.c') diff --git a/usr.sbin/ppp/physical.c b/usr.sbin/ppp/physical.c index e426890..76937e7 100644 --- a/usr.sbin/ppp/physical.c +++ b/usr.sbin/ppp/physical.c @@ -758,6 +758,12 @@ physical_IsSync(struct physical *p) return p->cfg.speed == 0; } +u_short +physical_DeviceMTU(struct physical *p) +{ + return p->handler ? p->handler->mtu : 0; +} + const char *physical_GetDevice(struct physical *p) { return p->name.full; -- cgit v1.1