diff options
author | brian <brian@FreeBSD.org> | 2001-06-18 14:59:36 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-06-18 14:59:36 +0000 |
commit | 14263ff751db1d878bad974a406737533ea6b70c (patch) | |
tree | 5bb2d9ee08d5ff16a973109f6f61899430eeb81e /usr.sbin/ppp/iface.c | |
parent | fd0a00a7295105bd1c94ad22b13d090c15c702a4 (diff) | |
download | FreeBSD-src-14263ff751db1d878bad974a406737533ea6b70c.zip FreeBSD-src-14263ff751db1d878bad974a406737533ea6b70c.tar.gz |
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
Diffstat (limited to 'usr.sbin/ppp/iface.c')
-rw-r--r-- | usr.sbin/ppp/iface.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ppp/iface.c b/usr.sbin/ppp/iface.c index 5384340..9676b38 100644 --- a/usr.sbin/ppp/iface.c +++ b/usr.sbin/ppp/iface.c @@ -163,8 +163,9 @@ iface_Create(const char *name) return NULL; } iface->name = strdup(name); - iface->flags = ifm->ifm_flags; iface->index = ifm->ifm_index; + iface->flags = ifm->ifm_flags; + iface->mtu = 0; iface->in_addrs = 0; iface->in_addr = NULL; } @@ -540,7 +541,7 @@ iface_Show(struct cmdargs const *arg) if_flags[f].value); flags &= ~if_flags[f].flag; } - prompt_Printf(arg->prompt, "> mtu %d has %d address%s:\n", arg->bundle->mtu, + prompt_Printf(arg->prompt, "> mtu %d has %d address%s:\n", iface->mtu, iface->in_addrs, iface->in_addrs == 1 ? "" : "es"); for (f = 0; f < iface->in_addrs; f++) { |