X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/cbe2d68fd7c7c7bac692b3a2d200a5d2429ab201..39934deb5202149f98198c111a35c21cb4d0d0f8:/mac/otnet.c diff --git a/mac/otnet.c b/mac/otnet.c index 970a78e5..35d3b16c 100644 --- a/mac/otnet.c +++ b/mac/otnet.c @@ -234,7 +234,7 @@ Socket ot_register(void *sock, Plug plug) } Socket ot_new(SockAddr addr, int port, int privport, int oobinline, - int nodelay, Plug plug) + int nodelay, int keepalive, Plug plug) { static struct socket_function_table fn_table = { ot_tcp_plug, @@ -281,7 +281,7 @@ Socket ot_new(SockAddr addr, int port, int privport, int oobinline, return (Socket) ret; } - /* TODO: oobinline, nodelay */ + /* TODO: oobinline, nodelay, keepalive */ /* * Bind to local address. @@ -324,6 +324,8 @@ Socket ot_new(SockAddr addr, int port, int privport, int oobinline, ret->next->prev = &ret->next; ot.socklist = ret; + /* XXX: don't know whether we can sk_addr_free(addr); */ + return (Socket) ret; }