Messages in this thread | | | Date | Sun, 26 Mar 2000 12:40:08 +0200 | From | Manfred Spraul <> | Subject | Re: Fw: Local Denial-of-Service attack against Linux |
| |
Alexey Kuznetosv wrote: > > The code is really weird: > > > > * sk->sndbuf is initialized to wmem_default, but sock_setsockopt() sets > > sk->sndbuf to 2*the user supplied number. > > Yes. What is strange here? >
1) setsockopt(SO_SNDBUF,x); y=getsockopt(SO_SNDBUF);
now y=2*x
2) or x = get_wmem_default_with_sysctl(); setsockopt(SO_SNDBUF,x);
Doesn't restore the original send buffer, it doubles the send buffer size.
If we set the internal send buffers to 2* the user space number, then should do that everywhere. -- Manfred
- 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/
| |