diff options
author | Ondrej Filip <feela@network.cz> | 2004-06-04 18:51:29 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-06-04 18:51:29 +0000 |
commit | e7ef86a58cc5393ba764606b0ee6d760e6164f0c (patch) | |
tree | 19fab1206527558cbfc7fac11945ce477757c251 /sysdep/unix | |
parent | f158bb710b8be65b626f54399c8a5db8df9bd7b6 (diff) |
OSPF is ready for changing MTU.
Diffstat (limited to 'sysdep/unix')
-rw-r--r-- | sysdep/unix/io.c | 14 |
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) { |