Koichiro IWAO
1ed7dbec53
common: add log for g_tcp_connect
...
in case getaddrinfo(3) might fail.
In FreeBSD, AI_V4MAPPED support for getaddrinfo(3) was very recently
implemented[1]. Most of FreeBSD systems in the world do not have
this implementation yet. This will be a problem when AI_V4MAPPED
isn't supported and xrdp is built with IPv6 option. In such a case,
g_tcp_connect always fails.
Of course getaddrinfo(3) might fail in other cases. The log helps
us to know what's happening.
[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198092
2016-02-23 18:18:28 +09:00
Pavel Roskin
92a6833e9b
Fix typos
2016-02-13 20:41:07 -08:00
Itamar Reis Peixoto
08121e0840
Merge pull request #254 from metalefty/freebsd/ipv6
...
Unbreak IPv6 on FreeBSD and add IPv6-only option
2016-02-08 22:40:05 -02:00
Pavel Roskin
964e860072
Run through codespell
2016-01-14 08:47:50 -08:00
Jay Sorg
ab3b8edf4a
common: change wait objs to use 'pipe' and remove per process temp directories in /tmp/.xrdp/
2015-10-06 20:55:47 -07:00
Jay Sorg
5c08ece708
common: add g_mirror_memcpy
2015-08-18 17:14:09 -07:00
Koichiro IWAO
536ee41c5e
common: add --enable-ipv6only option
2015-07-02 15:08:56 +09:00
Koichiro IWAO
5bc0453605
common: drop ipv6 autodetection only valid for linux
2015-07-02 15:08:55 +09:00
Koichiro IWAO
1f844b2d0e
common: workaround for #146
2015-03-18 08:46:23 +00:00
Koichiro IWAO
278e957dd7
common: add experimental --enable-ipv6 option
2015-03-10 14:05:13 +09:00
Jay Sorg
6b0bbbeefa
common: merge from a8
2014-11-07 22:10:59 -08:00
Laxmikant Rashinkar
0311a82c0a
coverity: copy into fixed sized buffer
2014-07-27 12:42:12 -07:00
Laxmikant Rashinkar
1c423dadf4
coverity: copy into fixed sized buffer
2014-07-26 16:33:36 -07:00
Laxmikant Rashinkar
a990287c46
coverity: fixed unchecked return value from library
2014-07-20 13:14:09 -07:00
Jay Sorg
1934c9ea00
sesman: more options for session lookup from Fredy Paquet
2014-04-20 00:42:19 -07:00
Jay Sorg
aa983d2b46
common: fix for clearing environment vars in BSD
2014-04-17 21:40:30 -07:00
Jay Sorg
43e388b7e5
remove some warning, move gethostname to os_calls
2014-02-08 21:48:44 -08:00
Jay Sorg
4e6d57dbe5
common: some notes and compile fixes
2014-02-08 18:05:52 -08:00
Jay Sorg
48228cae2e
common: added shm to os_calls
2014-01-28 10:38:36 -08:00
Jay Sorg
25369460a1
log client ip with pid, etc
2013-10-02 16:27:12 -07:00
Jay Sorg
7176f14647
added options to set tcp send and recv buffer sizes
2013-10-02 12:52:35 -07:00
Jay Sorg
b598e258a4
add pid logging
2013-10-01 22:42:12 -07:00
Laxmikant Rashinkar
ece8f1fb47
gracefully handle segfaults in chansrv code
2013-09-03 19:44:20 -07:00
Jay Sorg
1a616a1b46
move text2bool to os_calls
2013-08-24 22:41:44 -07:00
Jay Sorg
cd0a8721d1
disable ipv6 for now
2013-05-06 17:45:30 -07:00
Jay Sorg
2ed8b31a11
ipv6
2013-04-04 01:31:51 -07:00
Jay Sorg
d9c0af1e78
ipv6
2013-04-03 23:06:08 -07:00
Jay Sorg
54463affaf
autodetect ipv6
2013-04-03 00:54:52 -07:00
Jay Sorg
8b71f48f7b
adding ipv6 support
2013-04-03 00:16:52 -07:00
Jay Sorg
cae3b1b0f1
ipv6 started pushing bits
2013-04-02 02:08:10 -07:00
ArvidNorr
fb7294ed26
small len fixes
2013-01-31 20:17:42 +01:00
ArvidNorr
975d44e99f
More logging added
2013-01-18 10:24:25 +01:00
LawrenceK
a52dbba1a5
Add g_strchr to os_calls
2012-12-20 07:02:41 +00:00
Jay Sorg
82a8366fc0
added getgid to os_calls
2012-10-29 20:30:48 -07:00
Jay Sorg
e07dd5afb5
added a file open funtion
2012-10-13 22:48:05 -07:00
Laxmikant Rashinkar
1123323fda
o moved from GNU General Public License to Apache License, Version 2.0
...
o applied new coding standards to all .c files
o moved some files around
2012-09-19 20:51:34 -07:00
Jay Sorg
4e92468262
output error when set socket opt fails
2012-07-23 11:06:04 -07:00
Jay Sorg
7dc5a77116
common: no logic changes, code cleanup
2012-06-23 16:22:38 -07:00
ArvidNorr
d2903cd1fc
Merge pull request #28 from ArvidNorr/tcp_nodelay
...
Support for TCP keepalive and TCP no_delay added
2012-06-18 00:00:05 -07:00
ArvidNorr
1011b4a256
Merge pull request #22 from ArvidNorr/moduleload
...
Moduleload
2012-06-17 23:14:40 -07:00
norrarvid
31a5dd33dd
minor layout fixes
2012-06-18 08:11:26 +02:00
Jay Sorg
fcfd14fefd
common: fix some warnings
2012-06-11 20:10:56 -07:00
Jay Sorg
dbd2cbca8e
syslog: cs/minor changes
2012-06-04 12:51:22 -07:00
Jay Sorg
5cd7e29a9f
Merge remote branch 'syslog3/syslog3'
2012-06-04 01:11:16 -07:00
norrarvid
e5fb05e9cb
Support for TCP keepalive and TCP no_delay added
2012-06-04 10:11:11 +02:00
norrarvid
02f3fe1e2a
Improved error handling for module load and init, fixed bug in logwindow
2012-05-30 07:40:06 +02:00
norrarvid
2109d7a044
merge comments defines and simplified function
2012-05-29 13:24:23 +02:00
norrarvid
a45f993bfe
added comments, added define, removed unused inparameter
2012-05-29 12:46:56 +02:00
norrarvid
4d4ebbf363
Initial syslog support in XRDP
2012-05-27 17:17:39 +02:00
Jay Sorg
62bf3c61f5
xrdp: pid file fixes
2012-05-26 21:20:19 -07:00
Jay Sorg
bde5dd6671
added g_close_wait_obj and size parameter to g_write_ip_address
2012-05-26 17:24:04 -07:00
Jay Sorg
c7bd96ba85
xrdp: added -f command line option to fork on connections
2012-05-26 13:23:02 -07:00
Jay Sorg
cadad6e181
/tmp cleanup
2012-02-14 13:45:24 -08:00
Jay Sorg
2225aa80ad
fork change
2012-02-14 00:03:32 -08:00
Jay Sorg
35a22ac307
common: added signal for usr1
2012-02-12 22:27:51 -08:00
Jay Sorg
d8f9e8310d
move temp files from /tmp to /tmp/.xrdp
2012-02-11 13:56:27 -08:00
Jay Sorg
4ff502aa4b
fix init error
2012-02-06 00:02:00 -08:00
Jay Sorg
f10e5bbfd5
fix for https://bugzilla.redhat.com/show_bug.cgi?id=782619
2012-02-05 23:26:15 -08:00
Jay Sorg
c5b1b0fe45
added g_chown
2011-07-07 09:09:03 -07:00
Nicola Ruggero
d797b2cf49
Implemented client IP logging
2010-11-04 12:14:03 +01:00
Nicola Ruggero
4cf06dbbcb
Major code cleanup:
...
- Initialized and zeroed out local variables
- Check for some null pointers
- Fixed some typos
- Other minor changes (beautify, etc.)
2010-11-03 16:59:26 +01:00
Jay Sorg
1e8b5ea2cd
bind to specific address
2010-10-19 21:23:13 -07:00
jsorg71
0156c1448d
const char for atoi
2010-08-09 22:52:26 +00:00
jsorg71
530344462e
fixes for hppa
2010-02-22 21:17:31 +00:00
jsorg71
2a7c40dad8
add unix socket to trans
2009-09-05 03:29:43 +00:00
jsorg71
18a5e7917d
fix warnings
2009-08-20 21:17:29 +00:00
jsorg71
33b4e7f417
channel fixes
2009-08-15 02:49:13 +00:00
jsorg71
eeac7c938a
add extended log output
2009-08-05 06:16:05 +00:00
jsorg71
48e06d5267
remove g_signal and change g_waitpid to check for signal
2009-05-29 02:03:10 +00:00
jsorg71
d9ba6c30ca
remove g_set_file_rights since g_file_open sets the bits right
2009-05-19 05:04:24 +00:00
jsorg71
c6b9952fa2
work on chansrv
2009-04-20 04:31:24 +00:00
jsorg71
108cc8f030
fix some minor error issues
2009-04-19 17:13:56 +00:00
jsorg71
6c5f82fd04
update copyright year
2009-02-02 08:01:44 +00:00
jsorg71
c69bb282d4
added g_signal_* functions
2008-12-30 07:38:56 +00:00
jsorg71
9317386e74
add pid to event names
2008-12-01 09:37:08 +00:00
jsorg71
b768e8fb5d
remove unset_signals
2008-11-10 01:50:04 +00:00
jsorg71
4fb3a1a547
added HAVE_CONFIG_H
2008-08-10 06:14:14 +00:00
jsorg71
bb87afc364
added getuid function
2008-05-08 01:39:54 +00:00
jsorg71
85e42c068c
socket options fixes
2008-04-05 08:01:29 +00:00
jsorg71
11c5d72c55
wait objs function changes
2008-04-04 06:50:39 +00:00
jsorg71
53fce709d4
added wait obj functions
2008-03-31 11:07:55 +00:00
jsorg71
38b789e81f
update copyright year
2008-01-30 07:30:10 +00:00
jsorg71
3b85502657
fix warning
2007-12-24 03:09:19 +00:00
jsorg71
7f8ba596fe
add comments
2007-12-16 09:52:41 +00:00
jsorg71
d3fa8fd6f6
added g_strtrim
2007-10-27 05:53:19 +00:00
jsorg71
b7e71971a1
remove CLK_TCK, not always defined
2007-10-15 04:36:25 +00:00
jsorg71
5a2d2d67b5
added g_htoi
2007-10-15 03:47:26 +00:00
jsorg71
a432f91bc6
added g_time2 function
2007-10-03 22:24:29 +00:00
jsorg71
aa3ec01312
added g_file_get_size function
2007-09-26 07:14:22 +00:00
jsorg71
065c9b6a24
return value var
2007-09-23 07:52:17 +00:00
jsorg71
7a7b0c53fa
removed some warnings about wchar_t
2007-09-21 20:38:03 +00:00
jsorg71
f0a2f53e30
unicode
2007-09-21 07:22:29 +00:00
jsorg71
d5a89b8ce1
added init and deinit functions and windows unicode fixes
2007-09-15 05:48:13 +00:00
jsorg71
f82cf80d4f
make sure malloc didn't return nil
2007-07-26 05:40:27 +00:00
jsorg71
31fca99db7
don't set send buffer size unless its less than 32k
2007-06-11 23:17:51 +00:00
jsorg71
411d7deaf5
improve win32 random
2007-06-07 22:17:26 +00:00
jsorg71
8feaa527bc
added tcp_socket_ok to test socket status
2007-04-11 03:44:46 +00:00
jsorg71
02cd95ebef
copyright year update
2007-01-12 05:01:58 +00:00
jsorg71
d6e5f1996e
added EINPROGRESS as a valid blocking errno
2006-12-20 06:30:08 +00:00
jsorg71
e70c98548c
added calling convention defaults for os_calls
2006-12-12 06:34:17 +00:00