diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2000-12-12 01:53:43 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2000-12-12 01:53:43 +0000 |
commit | 2de37717b27de8863c1253b2e873f79de9c7daea (patch) | |
tree | fd2f994acedddf86c10455cb43d12ae88233897e /sbin/photurisd/server.c | |
parent | 15c0f0c58bc4162933d065d8f4849ca9a98c5d7e (diff) |
listen to pfkeyv2 acquire messages and set up SAs accordingly.
Diffstat (limited to 'sbin/photurisd/server.c')
-rw-r--r-- | sbin/photurisd/server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/photurisd/server.c b/sbin/photurisd/server.c index a14fc6f4f56..210e090d367 100644 --- a/sbin/photurisd/server.c +++ b/sbin/photurisd/server.c @@ -35,7 +35,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: server.c,v 1.4 2000/12/11 21:21:18 provos Exp $"; +static char rcsid[] = "$Id: server.c,v 1.5 2000/12/12 01:53:42 provos Exp $"; #endif #define _SERVER_C_ @@ -80,7 +80,7 @@ init_server(void) int sock, d, i, ip, on = 1; struct ifconf ifconf; void *newbuf; - char buf[1024]; + char buf[4096]; readfds = normfds = NULL; @@ -111,7 +111,7 @@ init_server(void) /* get the local addresses */ - ifconf.ifc_len = 1024; + ifconf.ifc_len = sizeof(buf); ifconf.ifc_buf = buf; bzero(buf, 1024); @@ -154,7 +154,7 @@ init_server(void) i = 1; /* One interface already */ #ifdef IPSEC - /* We also listen on PF_ENCAP for notify messages */ + /* We also listen on pfkeyv2 for notify messages */ newbuf = realloc(addresses, (i + 2) * sizeof(char *)); if (newbuf == NULL) { if (addresses != NULL) |