mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 12:28:58 +00:00
Re-allocate cblocks after changing the slip unit number.
This commit is contained in:
parent
b2e8bf35bd
commit
273e9b94a1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52598
@ -400,6 +400,9 @@ sltioctl(tp, cmd, data, flag, p)
|
||||
sc->sc_flags &= ~SC_STATIC;
|
||||
sc->sc_flags |= (nc->sc_flags & SC_STATIC);
|
||||
tp->t_sc = sc = nc;
|
||||
clist_alloc_cblocks(&tp->t_outq,
|
||||
SLIP_HIWAT + 2 * sc->sc_if.if_mtu + 1,
|
||||
SLIP_HIWAT + 2 * sc->sc_if.if_mtu + 1);
|
||||
goto slfound;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user