François Revol
39c3154a77
Haiku has daemon() in libbsd
2023-11-18 18:20:22 +01:00
Erik Ekman
f1e7823a3d
Add helper for matching topdomain and getting data length
2021-08-25 01:13:48 +02:00
Erik Ekman
589027568b
Add option to allow wildcard as start of topdomain
2021-08-24 23:32:57 +02:00
Erik Ekman
cb6cbecba1
Make it clearer that iodine is asking for a password
...
To not confuse it with sudo or similar
2021-08-16 10:34:41 +02:00
Erik Ekman
8041e0368c
Print address when failing to bind
2021-06-04 18:38:50 +02:00
Erik Ekman
dc307b7183
Add prototypes for vwarn/vwarnx
...
Fixes this warning:
common.c:406:1: warning: no previous prototype for 'vwarn' [-Wmissing-prototypes]
406 | vwarn(const char *fmt, va_list list)
| ^~~~~
common.c:429:1: warning: no previous prototype for 'vwarnx' [-Wmissing-prototypes]
429 | vwarnx(const char *fmt, va_list list)
| ^~~~~~
Also move err() to have non-x versions first.
2021-01-31 14:08:27 +01:00
Erik Ekman
aeacfbc2c0
Formatting: No spaces after '(' or before ')'
2020-07-24 19:02:41 +02:00
Erik Ekman
15f12d0693
Formatting: Space between 'for' and parenthesis
2020-07-24 18:57:57 +02:00
Erik Ekman
19d0d1be64
Formatting: Space between 'if' and parenthesis
2020-07-24 18:56:30 +02:00
Ralf Ramsauer
43dad946c6
common: no need for \n in check_superuser
...
warnx adds the \n for us.
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2017-03-11 02:17:27 -08:00
Ralf Ramsauer
1c86bf347f
iodine/iodined: do not print usage if no superuser
...
There is no value in printing the usage in this case, as the usage
doesn't give the user any hint on how to solve this issue.
Furthermore, replace the Windows implementation with an empty inline
function, which will result in no code.
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2017-03-11 02:17:27 -08:00
Jes Bodi Klinke
68443abd60
Fixed non-standard passing of va_list into functions declared with ...
2016-11-29 11:10:38 -08:00
Erik Ekman
fc1611fc40
Only accept IPv6 in server IPv6 socket
...
Set IPV6_V6ONLY flag on server socket. Not all operating systems
support mixing v4/v6 in one socket, so separate them all the time.
2015-06-30 21:58:16 +02:00
Erik Ekman
b4e9148df8
Support raw mode for both IPv4 and IPv6
...
Read destination address of IP request packet and return it.
Check length in client and use it as IPv4 or v6 depending on length.
2015-06-28 22:41:54 +02:00
Erik Ekman
9a45c4aa66
Change license wording to follow ISC license exactly
...
"Permission to use, copy, modify, and distribute this software" is now
"Permission to use, copy, modify, and/or distribute this software".
Add license header to source files missing one.
2014-08-07 21:18:33 +02:00
Erik Ekman
fbb5a49cf3
Fix windows build
2014-06-05 02:19:57 +02:00
Erik Ekman
3fadbfb580
Do not let sockets be inherited by sub-processes
...
Set FD_CLOEXEC flag on tunnel and UDP file descriptors.
Fixes ticket #99 , "should not allow UDP socket to be inherited by ifconfig"
2014-06-04 17:48:43 +09:00
Erik Ekman
a23899513d
Remove trailing whitespace
2014-06-01 08:46:54 +02:00
Erik Ekman
388afe3845
Update copyright
2014-06-01 08:46:54 +02:00
Erik Ekman
3914d37c99
Move error message generation into topdomain check method
...
Change isalpha() to a-z check to avoid locale issues
2014-05-31 10:07:36 +02:00
Erik Ekman
9bb2323f84
Improve check of topdomain to use
...
Add more checks and unit tests
2014-05-30 00:18:45 +02:00
Erik Ekman
b079b0eda5
Fix build error and a warning on OpenBSD
2014-05-29 16:18:59 +02:00
Erik Ekman
eca80f769b
Merge branch 'master' of https://github.com/jedisct1/iodine
2014-04-06 13:31:34 +02:00
Erik Ekman
540d3795a9
Switch from inet_pton() to getnameinfo() for portability
...
Windows XP is supported again
2014-02-06 22:50:23 +01:00
Erik Ekman
f02339b3b2
IPv6: Create single way to format IP addresses
2014-02-06 19:44:26 +01:00
Erik Ekman
400f45c793
Do not use AI_ADDRCONFIG on Windows
...
It was not available on my MinGW crosscompiler,
and it may be harmful:
https://code.google.com/p/chromium/issues/detail?id=5234
Also, remove old conflicting WINVER in osflags.
It is set in src/windows.h now.
2014-02-05 22:55:35 +01:00
Erik Ekman
a1d88c4f0a
IPv6 support for client ( #107 )
...
The iodine client now supports both IPv4 and IPv6 nameservers for
sending DNS queries to an IPv4 iodined. The nameserver will
transparently handle translation between IP protocols.
Windows port needs Vista or later to support IPv6.
2014-02-05 22:36:53 +01:00
Frank Denis
ac7cbd4435
Check set[e]uid return code
2013-05-20 10:27:23 -07:00
Erik Ekman
b30abea6b0
Reorganize imports for OpenBSD
2012-02-10 23:26:27 +01:00
Marcel Bokhorst
a569030bb7
Android support ( #105 ) patch from Marcel Bokhorst
2012-02-04 20:34:05 +01:00
Håkan Kvist
9c3343e6ac
Allow spaces in passwords, #93
2012-02-04 20:34:05 +01:00
J. A. Bezemer
05e99c7a3f
start merging common and docs #76
2012-02-04 20:34:04 +01:00
Guillaume Rischard
3879f96a80
Fix build error on OSX 10.6 by Guillaume Rischard, #79
2012-02-04 20:34:03 +01:00
misc
7efdd01ae2
add -F option for writing pid file. Patch from misc@mandriva.org #70
2012-02-04 20:34:03 +01:00
Sebastien Raveau
d5acb508bc
Add support for applying SELinux context
2012-02-04 20:34:02 +01:00
Erik Ekman
c92ed9bad8
#36 send raw login packet directly to server
2012-02-04 20:34:02 +01:00
Erik Ekman
3db5cd24b7
Fix (ignore) Dont-Fragment for OpenBSD and OS X
2012-02-04 20:34:01 +01:00
Erik Ekman
1bddcd33aa
Set Dont-Fragment for various os
2012-02-04 20:34:01 +01:00
Erik Ekman
3e07afd13b
change all printf to fprintf on stderr for #49
2012-02-04 20:34:01 +01:00
Erik Ekman
9c738bbc81
#44 hide password input
2012-02-04 20:34:01 +01:00
Erik Ekman
b3e8cf0554
#43 : Basic windows support operational
2012-02-04 20:34:00 +01:00
Erik Ekman
b43e97aeb0
added proper warn/warnx/err/errx
2012-02-04 20:34:00 +01:00
Erik Ekman
94f412a8d8
Dont need plibc
2012-02-04 20:34:00 +01:00
Erik Ekman
155f0c6f37
Merged branch with mingw port. Compiles now, tun work to do
2012-02-04 20:34:00 +01:00
Erik Ekman
0836ad0a5b
revert cygwin stuff
2012-02-04 20:34:00 +01:00
Erik Ekman
6de3368f39
turn off root check in cygwin for now
2012-02-04 20:34:00 +01:00
Erik Ekman
97bf71e944
Make it build and fix tests in cygwin
2012-02-04 20:33:59 +01:00
Erik Ekman
352d75131f
Move superuser check to common.c
2012-02-04 20:33:59 +01:00
Erik Ekman
a5031ee9dd
Happy new year
2012-02-04 20:33:59 +01:00
Erik Ekman
49695a4cb4
Updated year
2012-02-04 20:33:57 +01:00