]> granicus.if.org Git - curl/commit
lib/connect: restrict IP/TCP options to said sockets
authorPeter Wu <peter@lekensteyn.nl>
Thu, 27 Nov 2014 22:59:18 +0000 (23:59 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 30 Nov 2014 22:21:14 +0000 (23:21 +0100)
commitaba5888f6b68633ff84f73f22c67f7af900f8511
tree2ce125b20d356b7a5b0c04aae6da354bf3076619
parent397a634ebd027c5f20d365327d9d340679f294d8
lib/connect: restrict IP/TCP options to said sockets

This patch prepares for adding UNIX domain sockets support.

TCP_NODELAY and TCP_KEEPALIVE are specific to TCP/IP sockets, so do not
apply these to other socket types. bindlocal only works for IP sockets
(independent of TCP/UDP), so filter that out too for other types.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
lib/connect.c