From e7ef86a58cc5393ba764606b0ee6d760e6164f0c Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Fri, 4 Jun 2004 18:51:29 +0000 Subject: OSPF is ready for changing MTU. --- sysdep/unix/io.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'sysdep') diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index bf97e53..b216e63 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -599,6 +599,20 @@ sk_alloc_bufs(sock *s) s->tpos = s->ttx = s->tbuf; } +void +sk_reallocate(sock *s) +{ + if(!s) return; + + if (s->rbuf_alloc) + xfree(s->rbuf_alloc); + s->rbuf = NULL; + if (s->tbuf_alloc) + xfree(s->tbuf_alloc); + s->tbuf = NULL; + sk_alloc_bufs(s); +} + static void sk_tcp_connected(sock *s) { -- cgit v1.2.3