Keith Winstein
82830344ca
Hop ports when missing E2E2E connectivity, even if downlink working.
2012-08-13 14:26:53 +03:00
Keith Winstein
89da6105aa
When not connected, (1) client hops port numbers (2) server stops sending.
2012-08-13 11:19:25 +03:00
Timo Sirainen
9296ffbed7
Don't reopen stdio. It's not needed, and it doesn't compile with Solaris.
...
Signed-off-by: Timo Sirainen <tss@iki.fi >
2012-08-11 17:14:45 -04:00
Timo Sirainen
9cade23616
It's safer to close stdin/out/err by replacing their fd with /dev/null.
...
Otherwise the next opened fds are 0/1/2, and any code writing to
stdout/stderr might break things by writing to an unintentional fd.
Signed-off-by: Timo Sirainen <tss@iki.fi >
2012-08-11 17:14:45 -04:00
Timo Sirainen
b245ed00ca
Don't call setsid(), forkpty() does it anyway. This fixes a failing ioctl(TIOCSCTTY) in Solaris.
...
Signed-off-by: Timo Sirainen <tss@iki.fi >
2012-08-11 17:14:45 -04:00
Timo Sirainen
4f66e9a2e0
Remove __STRING() usage. It's nonstandard, while #expr works everywhere nowadays.
...
Signed-off-by: Timo Sirainen <tss@iki.fi >
2012-08-11 17:14:44 -04:00
Timo Sirainen
7117b61bf4
Don't do a 64bit read access from a string, since it may not be 64bit aligned.
...
Fixes crash with CPUs that require aligned access.
Signed-off-by: Timo Sirainen <tss@iki.fi >
2012-08-11 17:14:44 -04:00
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
Timo Sirainen
0c5307f345
Added forkpty() and cfmakeraw() fallback implementations if they don't exist.
...
Signed-off-by: Timo Sirainen <tss@iki.fi >
2012-08-11 17:14:44 -04:00
Keith Winstein
894a190f06
Revert creation of utmp entry to avoid uninitialized "master"
2012-08-11 17:13:43 -04:00
Keith Winstein
7989d381cf
Make fatal_assert() use abort() instead of exit()
2012-08-07 12:34:45 -04:00
Keith Winstein
c073ad364a
get_SSH_IP gracefully handles missing, IPv6-formatted environment var
...
Closes #292 github issue.
2012-07-26 22:54:45 -04:00
Keith Winstein
02f54881be
Use BEL instead of ST to terminate Operating System Command
...
ST is more correct, but BEL is apparently more widely supported.
Closes #304
2012-07-26 22:01:53 -04:00
Keith Winstein
a744004bf6
Get system timestamp less often (only after sleeping/selecting)
2012-07-26 21:13:26 -04:00
Anders Kaseorg
5e3ec2e037
Instantiate Parser::family once
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-07-24 15:01:55 -04:00
Keith Winstein
2cb2f3aeb5
Tidy up unattached warning, only print when showing motd
2012-07-23 01:25:55 -04:00
Keith Winstein
549cf0a9bd
Warn of unattached Mosh sessions on login
2012-07-23 01:16:57 -04:00
Keith Winstein
92ecb99b71
Add OpenSSL licensing exception
2012-07-20 16:46:00 -04:00
Keith Winstein
428d9b48c5
Remove AES reference implementation
2012-07-20 16:10:53 -04:00
Keith Winstein
9827d123f8
Switch to OpenSSL AES
2012-07-20 16:10:12 -04:00
Keith Winstein
57c4904ed8
Switch to OpenSSL base64 routines
2012-07-20 16:00:21 -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
2df9e07926
Add "experimental" mode to local echo (always predict even when incorrect)
2012-06-11 13:21:44 -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
78a5eaf8e3
Clearer error message on invalid port ( closes #278 )
2012-05-24 17:16:03 -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
Keith Winstein
b9ed0cdaa6
Cleanups to "firewalled" quit scenario.
2012-05-23 12:05:59 -04:00
Keith Winstein
c0a8cd61ee
More graceful quit sequence when UDP is firewalled.
2012-05-23 11:48:10 -04:00
Keith Winstein
8026c924dc
Quit with cursor visible.
2012-05-23 11:44:49 -04:00
Larry Doolittle
eda48085ba
Simple spelling fixes
2012-05-23 05:11:05 -04:00
Keith Winstein
5e86700a0a
Fix OS X 10.5 problem where FD_ISSET() argument isn't const
2012-05-23 03:19:36 -04:00
Keith Winstein
7700984bbb
Revert "Use protobuf's Gzip streams"
...
This reverts commit b0e05776f1 .
2012-05-23 01:55:57 -04:00
Keith Winstein
eca34ea0fd
Make mandatory check for bad throwaway from sender
2012-05-22 23:12:48 -04:00
Keith Winstein
e5f8ed7579
Cap state queue used by receiver, even if sender is malicious
2012-05-22 23:01:39 -04:00
Keith Winstein
1cf12f9e9b
Prevent integer overflow of very large escape sequence params. Fixes #274 .
2012-05-16 12:16:50 -04:00
Anders Kaseorg
b0e05776f1
Use protobuf's Gzip streams
...
This reverts commit 63459ed1c7 .
2012-05-16 00:24:21 -04:00
Keith Winstein
a4dd2fed89
Use static local variable for consistency with compressor, dispatch table
2012-05-16 00:17:37 -04:00
Keegan McAllister
dd941df19d
Remove unused sigfd and skalibs
...
Closes #265 .
2012-05-16 00:00:27 -04:00
Keegan McAllister
f7be5c8cec
Use Select signal handling in examples
2012-05-16 00:00:27 -04:00
Keegan McAllister
4f23326a92
Use Select signal handling in mosh-{client,server}
2012-05-16 00:00:27 -04:00
Keegan McAllister
1d0b16881c
Switch to pselect(2) and add signal handling to Select class
2012-05-16 00:00:27 -04:00
Keegan McAllister
6edc04ed1c
mosh-server: Ignore signals rather than blocking them
...
For pselect() we want to mess with the signal mask, and this is closer to our
intent anyway.
2012-05-16 00:00:27 -04:00
Keegan McAllister
7fc1aa30a5
Move dummy_fd_set into Select
...
Now that we have select.cc.
2012-05-16 00:00:27 -04:00
Keegan McAllister
768d4ce797
Make Select a singleton
...
It's going to manipulate process-global signal state, so multiple
instances do not make sense.
2012-05-16 00:00:27 -04:00
Keegan McAllister
bb651581a7
Remove unused poll(2) emulation
...
Closes #235 .
2012-05-16 00:00:27 -04:00
Keegan McAllister
043f9af260
Use Select in examples
2012-05-16 00:00:27 -04:00
Keegan McAllister
2112a3865c
Use Select in mosh-{client,server}
2012-05-16 00:00:27 -04:00