Re: SO_REUSEPORT -- available in linux ?
- From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 27 Feb 2006 10:33:31 +0000 (UTC)
vivekian <viveklinux@xxxxxxxxx> wrote:
Hi,
Have a simple socket program running in linux where a snippet has :
if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEPORT, &yes, sizeof(int)) ==
-1) {
perror("setsockopt");
exit(1);
}
This fails to compile ; the error being
SO_REUSEPORT' undeclared (first use in this function)
Is there something wrong here ?
grep SO_REUSEPORT /usr/include/*/*/usr/include/asm/socket.h:/* To add :#define SO_REUSEPORT 15 */
--
Uwe Bonnes bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
.
- References:
- SO_REUSEPORT -- available in linux ?
- From: vivekian
- SO_REUSEPORT -- available in linux ?
- Prev by Date: Re: dhcp-client cleanup
- Next by Date: linux: router: -problem
- Previous by thread: SO_REUSEPORT -- available in linux ?
- Next by thread: linux: router: -problem
- Index(es):
Relevant Pages |