1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

OSPF is ready for changing MTU.

This commit is contained in:
Ondrej Filip
2004-06-04 18:51:29 +00:00
parent f158bb710b
commit e7ef86a58c
5 changed files with 38 additions and 2 deletions

View File

@@ -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)
{