Timo Sirainen
620152261e
Don't use s_addr as parameter name. Fixes compiling with Solaris.
...
Signed-off-by: Timo Sirainen <tss@iki.fi >
2012-08-11 17:14:44 -04:00
Keith Winstein
a744004bf6
Get system timestamp less often (only after sleeping/selecting)
2012-07-26 21:13:26 -04:00
Keith Winstein
92ecb99b71
Add OpenSSL licensing exception
2012-07-20 16:46:00 -04:00
Alexander Chernyakhovsky
0099f080ad
Fix FTBFS on ARM on GCC 4.7.0
...
GCC v4.7.0, as found in Fedora 17 and newer, fails to build mosh on
ARM because of a narrowing warning, which is then promoted to an error
by -Werror. This error message is new, and did not occur under
previous versions of GCC.
This patch corrects this error by explicitly casting to the desired
datatype the return value of the offending code, the result of a macro
from glibc to implement htobe16().
2012-06-20 01:24:08 -04:00
Keith Winstein
88bed3e94a
Remove warning for IP_TOS failure
2012-06-12 14:39:36 -04:00
Keith Winstein
37f78d0e4c
Disable out-of-order warning (fires too much on some 802.11n networks)
...
This reverts commit 682bbdfebd .
2012-05-30 02:04:32 -04:00
Keith Winstein
ade0aaa3e8
Make IP_TOS failure non-fatal per Keegan.
2012-05-25 21:00:51 -04:00
Dave Taht
72e6c85e3d
Set diffserv values to AF42 + ECT
...
AF42 has both the properties of CS42 and the IMM bit.
Whether this has the advantages or disadvantages of just one or
the other, I don't know. With most mac80211 stacks this will
force mosh packets in the VI queue on wireless.
As for pfifo_fast, have to look it up...
2012-05-25 20:40:49 -04:00
Keith Winstein
682bbdfebd
Warn on out-of-order or duplicated packets (or missing nonce increment!)
2012-05-23 18:08:31 -04:00
Keegan McAllister
67a85eaf99
Deliver sendto() exceptions without disturbing control flow
...
This prevents the client from waking up every 200 ms while the network is down.
Addresses #243 .
2012-05-09 14:19:46 -04:00
Massimo Gengarelli
49fc21c8a3
Catch by const reference (remove Eclipse warnings)
...
(closes #245 )
2012-04-29 02:24:31 -04:00
Keith Winstein
22e7cf60d3
Keep aligned buffers around, instead of allocing on each packet
...
Fixes #238 github issue.
Also fixes armel "Bad alignment" problem.
2012-04-24 18:40:01 -04:00
Keith Winstein
99e8626a01
Tidy check for exception in Network::Connection::send().
2012-04-15 23:29:05 -04:00
Keith Winstein
aca69ef684
Server does not need to raise exception on failed sendto(). Fixes #183 .
2012-04-15 23:13:58 -04:00
Keith Winstein
7be90ae244
Close server-related file descriptors before executing child process
...
Closes #170 github issue.
2012-04-13 13:48:56 -04:00
Alexander Chernyakhovsky
87d57c9567
Add unistd.h to network.cc to allow mosh to build on Fedora Rawhide (future Fedora 18)
2012-03-26 18:46:52 -04:00
Keith Winstein
66c6c0669a
Print pre-CONNECT output only on failure
2012-03-10 03:55:25 -05:00
Keith Winstein
df3eec1397
Allow explicit UDP port option, confine ports to range 60000..61000
2012-03-10 03:34:47 -05:00
Quentin Smith
a1671bcf3b
Handle the absence of IP_MTU_DISCOVER
2012-03-07 03:05:36 -05:00
Quentin Smith
582bf347c9
Add alternate timestamp implementations
...
Add mach_absolute_time and gettimeofday timestamp implementations, and
fix clock_gettime check so that it can actually succeed
2012-03-07 03:05:36 -05:00
Quentin Smith
17d6962af8
Check for proper byteorder functions
...
[andersk@mit.edu: Add byteorder.h to libmoshcrypto_a_SOURCES]
2012-03-07 03:05:36 -05:00
Keegan McAllister
e35733a2c1
Rename 'attached' to 'has_remote_addr'
...
Even with future support for detaching and reattaching, this variable will keep
its original meaning.
2012-03-06 11:54:56 -08:00
Keith Winstein
58b584a2b3
Move from protobuf-lite to protobuf to accommodate Ubuntu lucid
...
Add changelog entry
2012-02-20 00:40:08 -05:00
Anders Kaseorg
af649a035c
Add missing #includes
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-02-17 19:24:51 -05:00
Keith Winstein
d8533ca3a6
Get rid of PMTU discovery; Cisco VPN has MTU=1200 and breaks ICMP too-big.
2012-02-09 00:36:28 -05:00
Keith Winstein
3781a290c8
Add copyright/license notices
2012-02-06 20:52:48 -05:00
Keith Winstein
38c9e99882
Separate modules by subdirectory
2012-02-06 18:26:45 -05:00