summaryrefslogtreecommitdiff
path: root/lib/sockunion.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2010-08-05 10:26:24 -0700
committerPaul Jakma <paul@quagga.net>2011-03-21 17:30:52 +0000
commit58192df7746231fbc82e248b5ddfc7cab95ab1e7 (patch)
tree15184e9fadcad65385fda94ae9f397bdc6e53b76 /lib/sockunion.h
parent35398589cf1293956dfefb5096aa5284c72a696f (diff)
lib: add TCP_CORK wrapper
* sockunion.{c,h}: (sockopt_cork) wrapper for TCP_CORK socket option for those platforms that provide it. For other platforms, it is just a nop.
Diffstat (limited to 'lib/sockunion.h')
-rw-r--r--lib/sockunion.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sockunion.h b/lib/sockunion.h
index 96b9a0d4..91bfbc7f 100644
--- a/lib/sockunion.h
+++ b/lib/sockunion.h
@@ -102,6 +102,7 @@ extern int sockopt_reuseport (int);
extern int sockunion_bind (int sock, union sockunion *,
unsigned short, union sockunion *);
extern int sockopt_ttl (int family, int sock, int ttl);
+extern int sockopt_cork (int sock, int onoff);
extern int sockunion_socket (union sockunion *su);
extern const char *inet_sutop (union sockunion *su, char *str);
extern enum connect_result sockunion_connect (int fd, union sockunion *su,