Commit Graph
2605 Commits
Author SHA1 Message Date
khorben 400ec0f576 Add a command-line option to enable IPv6 (TCP/UDP)
This is currently "--ipv6", or "-6" for short.
2018-07-30 15:57:40 +02:00
khorben 15530a2e5d Fix some issues with TCP over IPv6 2018-07-19 00:05:18 +02:00
khorben a89f2064b2 Constify 2018-07-19 00:05:18 +02:00
khorben 7dc6ab58c2 Use the correct offset for inet_ntop() 2018-07-18 22:02:02 +02:00
khorben 7a9d02ff00 Typo 2018-07-18 22:01:58 +02:00
khorben 8d0fb607aa Terminate IPs resolved externally as expected 2018-07-18 00:20:01 +02:00
khorben 3d4b15333d Add IPv6 support to the plain UDP and TCP servers 2018-07-18 00:20:01 +02:00
khorben 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
khorben 3b8ff51691 Use a constant for AF_INET
This should eventually help with portability to IPv6.
2018-07-18 00:20:01 +02:00
khorben 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
khorben 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
khorben 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
khorben c3acef56ef Rework IPv6 support when comparing addresses 2018-07-18 00:20:01 +02:00
khorben 083f812e2c Allow access control "ANY" with any protocol family 2018-07-18 00:20:01 +02:00
khorben f95fcc75a2 Let access list stanzas be defined in IPv6 2018-07-18 00:20:01 +02:00
khorben d115b4325d Interpret incoming addresses according to their family 2018-07-18 00:20:01 +02:00
khorben c49c96b77c Add support for receiving SPA messages over IPv6 2018-07-18 00:20:01 +02:00
khorben 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
khorben 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
khorben fe1704c41f Rework the network listening routine some more 2018-07-18 00:20:01 +02:00
khorben f23d9d4b34 Rework the network listening routine 2018-07-18 00:20:01 +02:00
khorben 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
khorben 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
khorben 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
khorben 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
khorben 1062021957 Fix typo in a comment 2018-04-25 03:48:24 +02:00
khorben 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