Commit Graph

2601 Commits

Author SHA1 Message Date
7a9d02ff00 Typo 2018-07-18 22:01:58 +02:00
8d0fb607aa Terminate IPs resolved externally as expected 2018-07-18 00:20:01 +02:00
3d4b15333d Add IPv6 support to the plain UDP and TCP servers 2018-07-18 00:20:01 +02:00
5daa522d47 Specify the family at run-time for TCP/UDP servers
This is still using IPv4 by default for the moment.
2018-07-18 00:20:01 +02:00
3b8ff51691 Use a constant for AF_INET
This should eventually help with portability to IPv6.
2018-07-18 00:20:01 +02:00
d1625c71ad Use sizeof() instead of re-using hard-coded values
This should help with portability for the protocol family eventually.
2018-07-18 00:20:01 +02:00
a7ecf432dd Use sizeof() instead of re-using hard-coded values
This should help with portability for the protocol family eventually.
2018-07-18 00:20:01 +02:00
a9c834b6aa Use AF_INET instead of PF_INET
I believe it should be more portable this way, since AF_INET is required
to be present in <sys/socket.h> in POSIX.
2018-07-18 00:20:01 +02:00
c3acef56ef Rework IPv6 support when comparing addresses 2018-07-18 00:20:01 +02:00
083f812e2c Allow access control "ANY" with any protocol family 2018-07-18 00:20:01 +02:00
f95fcc75a2 Let access list stanzas be defined in IPv6 2018-07-18 00:20:01 +02:00
d115b4325d Interpret incoming addresses according to their family 2018-07-18 00:20:01 +02:00
c49c96b77c Add support for receiving SPA messages over IPv6 2018-07-18 00:20:01 +02:00
4c92ab116f Let IPs resolve to IPv6 addresses
The remote code seems to be independent from the fwknop project though.
Until it will be capable to return IPv6 addresses, in itself this will
remain irrelevant for the purpose of adding IPv6 support to fwknop.

On another hand, it does help us introduce definitions and update
headers to actually support IPv6.
2018-07-18 00:20:01 +02:00
01fd694056 Also check for <netinet/ip6.h> and <netinet/icmp6.h>
This will allow porting the raw ICMP code to IPv6.
2018-07-18 00:20:01 +02:00
fe1704c41f Rework the network listening routine some more 2018-07-18 00:20:01 +02:00
f23d9d4b34 Rework the network listening routine 2018-07-18 00:20:01 +02:00
8c0a4e9038 Allow connecting to remote IPv6 hosts for TCP or UDP
This alone should allow interacting with IPv4 firewalling rules over
IPv6, for these two protocols.
2018-07-18 00:20:01 +02:00
Michael Rash
b4c75d195f Merge pull request #274 from DeforaNetworks/khorben/typo 2018-07-11 22:36:40 -04:00
50f56a581f Fix the configuration variable name for GPG_DECRYPT_PW 2018-07-10 11:31:54 +02:00
Michael Rash
e6b095a430 Merge pull request #271 from DeforaNetworks/khorben/warnings
Addressing most warnings
2018-07-02 23:57:58 -04:00
5228fe88d0 Avoid compilation warnings from ctype(3) helpers
Characters should be casted as unsigned before use in functions from
<ctype.h>. Otherwise the compiler treats 8-bit characters (eg UTF-8) as
negative values (since it expects signed integers) and they no longer
match the comparison tables. Worse, the character 0xff gets interpreted
as -1 (like EOF). In turn, it helps to explicitly cast the result as a
signed integer, since this is what is expected. Characters in the range
0x80-0xff do keep their original values.

See the manual page for ctype(3) for more details (eg from NetBSD)
2018-06-12 14:01:22 -04:00
42be3dcff5 Avoid a warning about deprecated assertions 2018-06-12 13:48:00 -04:00
Michael Rash
44c3defa4c Merge pull request #268 from DeforaNetworks/khorben/typo
Fix typo in a comment
2018-04-24 21:59:54 -04:00
Michael Rash
92182d34c2 Merge pull request #267 from DeforaNetworks/khorben/netbsd
Let fwknop build on NetBSD
2018-04-24 21:59:40 -04:00
1062021957 Fix typo in a comment 2018-04-25 03:48:24 +02:00
4d88f08f56 Let fwknop build on NetBSD 2018-04-25 03:47:56 +02:00
Michael Rash
576d09afbf Merge pull request #260 from mstair/erlang_server
Adding Erlang server component
2018-03-16 22:11:15 -04:00
Michael Rash
bd6eb44b8a Merge pull request #252 from jwilk-forks/httphttp
[extras] fix URL in OpenWRT packaging
2018-03-16 22:10:01 -04:00
Michael Stair
6353032ea4 Merge pull request #2 from sparrell/erlang_server
Update deprecated crypto:rand_uniform
2018-03-03 15:08:17 -05:00
Duncan Sparrell
3c94f92fb4 Update deprecated crypto:rand_uniform
plus fix missing newline
2018-03-03 13:49:40 -05:00
Michael Stair
4486489570 Merge pull request #1 from sparrell/erlang_server
server on localhost
2018-03-03 12:38:00 -05:00
Duncan Sparrell
5c5911e96a server on localhost 2018-03-03 11:09:32 -05:00
Michael Stair
f0f8abd8e8 Adding erlang spa server component 2017-11-27 10:16:14 -05:00
Michael Rash
ecb25a042c regenerate fwknopd man page with Jonathan's pcap loop fix 2017-09-18 22:25:52 -04:00
Michael Rash
3cd88ac62e Merge branch 'master' of ssh://github.com/mrash/fwknop 2017-09-18 22:20:31 -04:00
Michael Rash
8c33a104d6 a further byte-order refinement 2017-09-18 22:20:02 -04:00
Jonathan Bennett
e89d2c38e0 Correct default value of PCAP_LOOP_SLEEP in man page
The default value of PCAP_LOOP_SLEEP was misstated, a 0 was missed.
2017-09-11 23:27:26 -05:00
Michael Rash
a617502b25 update ChangeLog with OpenBSD endian fix 2017-09-09 09:22:02 -04:00
Michael Rash
10d31064c3 Endian fix for OpenBSD systems
Per github issue #257, Jérémie Courrèges-Anglas and Ingo Feinerer
contributed a patch to fix endian detection on OpenBSD systems. This is
based on information contained at:

https://www.opengroup.org/austin/docs/austin_514.txt
2017-09-09 09:06:07 -04:00
Jakub Wilk
ca320c1c73 [extras] fix URL in OpenWRT packaging 2017-04-25 21:12:24 +02:00
Michael Rash
78b3a215cb fix gnupg.org link in the ChangeLog 2017-04-15 08:56:13 -04:00
Michael Rash
d5c841140f image markdown fix for the README 2017-03-28 23:03:16 -04:00
Michael Rash
013509832e Merge branch 'master' of ssh://moria/home/mbr/git/fwknop 2017-03-28 22:57:12 -04:00
Michael Rash
456b51693f minor README images path update 2017-03-28 22:56:08 -04:00
Michael Rash
bc1505934e Merge branch 'master' of ssh://github.com/mrash/fwknop 2017-02-20 22:09:56 -05:00
Michael Rash
ac9ccb9ab0 [libfko] check NULL ptr before utilizing - discovered by the PVS-Studio static analyzer 2017-02-20 21:54:22 -05:00
Michael Rash
9f963df723 minor comment addition 2017-02-20 21:51:35 -05:00
Michael Rash
5dffde18fd Merge pull request #250 from jwilk/python-errstr 2017-02-12 16:46:50 -05:00
Jakub Wilk
42ebb04605 [python] fix name error in Fko.errstr() 2017-02-09 12:16:29 +01:00