From 273e9b94a1a5b6cc2c1e4caa7b0b7a52729f7eba Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 28 Oct 1999 16:04:59 +0000 Subject: [PATCH] Re-allocate cblocks after changing the slip unit number. --- sys/net/if_sl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index 264e4a8037ab..456f827e8b4e 100644 --- a/sys/net/if_sl.c +++ b/sys/net/if_sl.c @@ -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; } }