lkml.org 
[lkml]   [1999]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectsock.c! sk->rcvbuf=max(val*2,256);
Date
why is the value which is given throu "setsockopt"
multiplikated with 2

example:
int i=4000;
setsockopt(fd,SOL_SOCKET,SO_RCVBUF,&i,sizeof(i));

now i want get the value
getsockopt(fd,SOL_SOCKET,SO_RCVBUF......

and i is 8000
why is the value *2 ??

in socket.c
line 235 sk->rcvbuf=max(val*2,256);

i use kernel 2.2.13

mfg
frank peters

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.808 / U:0.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site