summaryrefslogtreecommitdiff
path: root/sysdep/unix
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-04 18:51:29 +0000
committerOndrej Filip <feela@network.cz>2004-06-04 18:51:29 +0000
commite7ef86a58cc5393ba764606b0ee6d760e6164f0c (patch)
tree19fab1206527558cbfc7fac11945ce477757c251 /sysdep/unix
parentf158bb710b8be65b626f54399c8a5db8df9bd7b6 (diff)
OSPF is ready for changing MTU.
Diffstat (limited to 'sysdep/unix')
-rw-r--r--sysdep/unix/io.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index bf97e53e..b216e63b 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)
{