* Added new BufferQueue.cpp sources.
* The MTU returned by the domain was too large; it should already take the IP header into account. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19373 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
5fcf044823
commit
817a7408d4
|
@ -35,6 +35,7 @@ SimpleTest tcp_tester :
|
|||
# tcp
|
||||
tcp.cpp
|
||||
TCPConnection.cpp
|
||||
BufferQueue.cpp
|
||||
|
||||
# misc
|
||||
argv.c
|
||||
|
@ -44,7 +45,7 @@ SimpleTest tcp_tester :
|
|||
;
|
||||
|
||||
SEARCH on [ FGristFiles
|
||||
tcp.cpp TCPConnection.cpp
|
||||
tcp.cpp TCPConnection.cpp BufferQueue.cpp
|
||||
] = [ FDirName $(HAIKU_TOP) src add-ons kernel network protocols tcp ] ;
|
||||
|
||||
SEARCH on [ FGristFiles
|
||||
|
|
|
@ -209,10 +209,10 @@ socket_create(int family, int type, int protocol, net_socket **_socket)
|
|||
goto err1;
|
||||
|
||||
// set defaults (may be overridden by the protocols)
|
||||
socket->send.buffer_size = 65536;
|
||||
socket->send.buffer_size = 65535;
|
||||
socket->send.low_water_mark = 1;
|
||||
socket->send.timeout = B_INFINITE_TIMEOUT;
|
||||
socket->receive.buffer_size = 65536;
|
||||
socket->receive.buffer_size = 65535;
|
||||
socket->receive.low_water_mark = 1;
|
||||
socket->receive.timeout = B_INFINITE_TIMEOUT;
|
||||
|
||||
|
@ -751,7 +751,8 @@ domain_get_domain(net_protocol *protocol)
|
|||
size_t
|
||||
domain_get_mtu(net_protocol *protocol, const struct sockaddr *address)
|
||||
{
|
||||
return 1500;
|
||||
return 1480;
|
||||
// 1500 ethernet - IPv4 header
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue