summaryrefslogtreecommitdiffstats
path: root/sysdep/unix
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-04 20:51:29 +0200
committerOndrej Filip <feela@network.cz>2004-06-04 20:51:29 +0200
commite7ef86a58cc5393ba764606b0ee6d760e6164f0c (patch)
tree19fab1206527558cbfc7fac11945ce477757c251 /sysdep/unix
parentf158bb710b8be65b626f54399c8a5db8df9bd7b6 (diff)
downloadbird-e7ef86a58cc5393ba764606b0ee6d760e6164f0c.tar
bird-e7ef86a58cc5393ba764606b0ee6d760e6164f0c.zip
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 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)
{