Networking Forums

Networking Forums > Computer Networking > Linux Networking > SO_REUSEPORT -- available in linux ?

Reply
Thread Tools Display Modes

SO_REUSEPORT -- available in linux ?

 
 
vivekian
Guest
Posts: n/a

 
      02-27-2006, 01:38 AM
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 ?

Thanks in advance.

 
Reply With Quote
 
 
 
 
Uwe Bonnes
Guest
Posts: n/a

 
      02-27-2006, 09:33 AM
vivekian <(E-Mail Removed)> 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 (E-Mail Removed)

Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If I replace my existing Linksys box with Linux Router, how can I know what kind of Routing to be enabled on my Linux Box? santa19992000@yahoo.com Linux Networking 3 01-06-2005 01:18 PM
Trouble Installing Linux/Cisco VPN Client Has anyone had trouble compiling the linux cisco vpn client? Here is the output of the install script: # uname -rviosm Linux 2.4.22-1.2188.nptl #1 Wed Apr 21 20:19:18 EDT 2004 x86_64 x86_64 GNU/Linux JSH Linux Networking 4 07-02-2004 12:48 PM
Red Hot Linux v9.0 [2 DVDs]. Red Hot Linux v9.0 [3 CDs]. Redhat Enterprise Linux ES v3.0 REPACK [4 CDs]. Mandrake Linux 9.2 [3 CDs] -new ! TEL Linux Networking 0 12-01-2003 12:06 PM
Red Hot Linux v9.0 [2 DVDs]. Red Hot Linux v9.0 [3 CDs]. Redhat Enterprise Linux ES v3.0 REPACK [4 CDs]. Mandrake Linux 9.2 [3 CDs] - new ! TEL Linux Networking 0 11-29-2003 11:27 AM
SO_REUSEPORT - any workaround? Paul D.Smith Linux Networking 2 10-10-2003 10:41 PM



1 2 3 4 5 6 7 8 9 10 11