1
0
mirror of https://github.com/bgp/bgpq4.git synced 2024-05-11 05:55:05 +00:00

rcvbuf fixed

This commit is contained in:
snar
2011-06-18 12:12:25 +00:00
parent c550350e4a
commit 6c4a4c2e42
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,10 @@
0.1.13 (2011-06-14)
0.1.14 (2011-06-18)
- Fixed bug in sx_maxsockbuf in rare cases of OS maxsockbuf >2M.
Thanks to Andreas Lundin.
0.1.13 (2011-06-14)
- never publically released.
0.1.12 (2010-10-08)
- Fixed bug preventing AS262144 (that's AS4.0 in asdot) to expand.
Thanks to Sergey Matveychuk

View File

@ -78,7 +78,7 @@ sx_maxsockbuf(int s, int dir)
voptlen=sizeof(voptval);
if(getsockopt(s,SOL_SOCKET,SO_RCVBUF,(void*)&voptval,&voptlen)==-1) {
if(getsockopt(s,SOL_SOCKET,dir,(void*)&voptval,&voptlen)==-1) {
sx_report(SX_ERROR,"getsockopt(final stage) failed: %s\n",
strerror(errno));
return -1;