diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2010-01-13 00:32:44 +0000 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-03 01:53:43 +0100 |
commit | 2442cdc3064f87860972ce6397fbaab52e200a00 (patch) | |
tree | 882d9c515a902619d858bb304aa3bca6e1bb359a /lib/sockunion.h | |
parent | d8a0b61139fa64192269fd121bb6ccc90e16dfe2 (diff) | |
download | quagga-2442cdc3064f87860972ce6397fbaab52e200a00.tar.bz2 quagga-2442cdc3064f87860972ce6397fbaab52e200a00.tar.xz |
BGP: enable TCP corking
On BGP write, use TCP_CORK to provide hints to kernel about TCP buffering.
This will cause BGP packets to occur in bigger chunks (full size MTU),
improving performance and getting rid of one of the problems reported
in the UNH BGP conformance test.
Diffstat (limited to 'lib/sockunion.h')
-rw-r--r-- | lib/sockunion.h | 1 |
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, |