diff options
author | David Lamparter <equinox@diac24.net> | 2010-02-04 03:00:46 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-04 03:30:17 +0100 |
commit | f4b356490dc03d3758b50da11b1548254fb56138 (patch) | |
tree | ead2e56720973f2f1c7eebe0ae032f2c826bc328 /lib/sockunion.c | |
parent | 7d5fe54553c735a12e3fc40c3d9f0e59c79a33c6 (diff) | |
parent | 2442cdc3064f87860972ce6397fbaab52e200a00 (diff) | |
download | quagga-f4b356490dc03d3758b50da11b1548254fb56138.tar.bz2 quagga-f4b356490dc03d3758b50da11b1548254fb56138.tar.xz |
Merge branch 'patches/sh_bgp-write-cork' into dn42
Conflicts:
lib/sockunion.c
Diffstat (limited to 'lib/sockunion.c')
-rw-r--r-- | lib/sockunion.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/sockunion.c b/lib/sockunion.c index d1f6d80b..5de3bcfc 100644 --- a/lib/sockunion.c +++ b/lib/sockunion.c @@ -551,6 +551,16 @@ sockopt_v6only (int family, int sock) return 0; } +int +sockopt_cork (int sock, int onoff) +{ +#ifdef TCP_CORK + return setsockopt (sock, IPPROTO_TCP, TCP_CORK, &onoff, sizeof(onoff)); +#else + return 0; +#endif +} + /* If same family and same prefix return 1. */ int sockunion_same (union sockunion *su1, union sockunion *su2) |