Commit Graph

  • d4e0a60119 Fix a parsing bug in the rules that would ignore the very first rule. See #23. main Sam Hocevar 2021-03-02 15:25:34 +01:00
  • af88e6fd4f Release version 0.73. v0.73 Sam Hocevar 2021-02-19 09:56:52 +01:00
  • ff41723590 Improve error reporting. Fixes #15. Sam Hocevar 2021-02-19 09:12:29 +01:00
  • d3dd35327f Do not log to syslog when running in the foreground. Addresses #15. Sam Hocevar 2021-02-19 08:52:46 +01:00
  • 49bf544bad Fix another IPv6 parsing issue. Addresses #20. Sam Hocevar 2021-02-17 14:12:58 +01:00
  • 1060048fe8 Refactor getaddrinfo error reporting. Sam Hocevar 2021-02-17 08:21:58 +01:00
  • e3b47d086a Fix some hostnames (e.g. 123.example.com) being wrongfully parsed as IPv6. Sam Hocevar 2021-02-17 07:55:28 +01:00
  • f91e34c3af Release version 0.72. v0.72 Sam Hocevar 2021-02-16 09:26:26 +01:00
  • 5e8be95d8a Fix a configuration parsing bug. Sam Hocevar 2021-02-16 09:22:25 +01:00
  • 7887c17096 Fix Mac OS X build. Sam Hocevar 2021-02-14 14:41:15 +01:00
  • 432aa4d230 Release version 0.71. v0.71 Sam Hocevar 2021-02-14 12:12:53 +01:00
  • b00f175fa4 Fix HTML documentation generation. Sam Hocevar 2021-02-14 12:09:26 +01:00
  • 6a1e7e75a3 Prepare version 0.71. Sam Hocevar 2021-02-14 12:06:31 +01:00
  • 7f76652af9 Improve documentation. Sam Hocevar 2021-02-14 12:05:29 +01:00
  • bb0d64ed5d Refactor code to avoid duplication. Sam Hocevar 2021-02-14 11:54:48 +01:00
  • 3b33f45925 Merge branch 'feature-ipv6-support' into main Sam Hocevar 2021-02-14 11:41:54 +01:00
  • 878c804d32 Update changelog for upcoming version 0.71. Sam Hocevar 2021-02-14 11:39:04 +01:00
  • f9f5aeda80 Properly release the lexer context after reading the configuration. Sam Hocevar 2021-02-14 11:20:37 +01:00
  • 655584ad78 Fix a format string issue on Windows. feature-ipv6-support Sam Hocevar 2021-02-14 10:10:47 +01:00
  • 4c5a7a1a22 Fix deny/allow rules to support IPv6 addresses. Sam Hocevar 2021-02-14 09:59:38 +01:00
  • 7790a617d8 Remove all legacy IPv4 code. Sam Hocevar 2021-02-14 09:48:12 +01:00
  • 7781e97734 Remove deprecated getAddress() function now that we use getaddrinfo() ubiquitously. Sam Hocevar 2021-02-14 09:18:49 +01:00
  • 79bafee414 Allow connecting to remote IPv6 addresses. Sam Hocevar 2021-02-14 09:04:08 +01:00
  • b7fcf65a97 Use getaddrinfo() to resolve source address. Sam Hocevar 2021-02-14 08:44:49 +01:00
  • c9de417f2e Use sockaddr_storage for IPv6 compatibility. Sam Hocevar 2021-02-14 08:25:27 +01:00
  • 26b0e63bf5 Get rid of useless fromProtocol struct member. Sam Hocevar 2021-02-14 08:24:08 +01:00
  • f58db7ea8d Add a helper function to retrieve socket type from protocol. Sam Hocevar 2021-02-14 08:09:08 +01:00
  • 7ef50421c0 Remove the protocolType enum in favour of IPPROTO_TCP/IPPROTO_UDP. Sam Hocevar 2021-02-14 08:06:02 +01:00
  • 0ef4f1042f Add a helper function to retrieve port from addrinfo. Sam Hocevar 2021-02-14 07:52:51 +01:00
  • f7cd21f91f Fix getaddrinfo() hint initialisation issues. Sam Hocevar 2021-02-14 07:51:46 +01:00
  • a5905bbcea Fix Windows build. Sam Hocevar 2021-02-14 00:49:31 +01:00
  • a1d2c297ba Merge branch 'main' into feature-ipv6-support Sam Hocevar 2021-02-13 23:11:35 +01:00
  • 5a70f2bf4e Allow to build application with Visual Studio. Sam Hocevar 2021-02-13 23:02:03 +01:00
  • 7e287f5913 Create log file if it does not exist already. Sam Hocevar 2021-02-13 21:52:15 +01:00
  • 4f64342ed5 Allow listening on IPv6 addresses. Sam Hocevar 2021-02-13 21:37:11 +01:00
  • 44f973d9fd Allow DNS labels to start with an underscore. Sam Hocevar 2021-02-13 18:43:33 +01:00
  • a8ca595620 Merge branch 'master' into feature-ipv6-support Sam Hocevar 2021-02-13 12:52:44 +01:00
  • 2f8fd87518 Allow hostnames to start with a ‘_’, e.g. ‘_http.example.com’. Sam Hocevar 2021-02-13 12:15:16 +01:00
  • 04d1b74e24 Allow service names that contain dashes, e.g. snmp-trap. Sam Hocevar 2021-02-13 12:02:07 +01:00
  • 2681d17eb4 Fix minor compilation warnings on mingw64. Sam Hocevar 2021-02-13 11:44:26 +01:00
  • 8bde6f6259 Distribute COPYING file with source tarballs. Sam Hocevar 2021-01-08 18:41:05 +01:00
  • ae9af9d030 Add GPLv2 license text. Fixes #19. Sam Hocevar 2021-01-08 18:39:12 +01:00
  • ebd31cc72e Improve code readability by using enum typedefs. Sam Hocevar 2019-07-05 10:35:39 +02:00
  • da497404ab Use uint64_t for data usage statistics. Sam Hocevar 2019-07-05 10:28:46 +02:00
  • d9f661ee5d Use uint16_t for port numbers. Sam Hocevar 2019-07-05 10:08:09 +02:00
  • 0ea83281e3 Merge branch 'master' into feature-ipv6-support Sam Hocevar 2017-11-28 09:33:48 +01:00
  • a37e13c910 Forgot to put src/Makefile.am in source control, lol. Fixes #13. Sam Hocevar 2017-11-28 09:25:38 +01:00
  • 3e18951d7a Merge branch 'master' into feature-ipv6-support Sam Hocevar 2017-09-11 19:28:53 +02:00
  • 9d140d8f87 Move C source files to an src/ subdirectory. Sam Hocevar 2017-09-11 19:25:26 +02:00
  • b5f75eae99 Version 0.70. v0.70 Sam Hocevar 2017-09-09 19:28:12 +02:00
  • be9f46e7f1 Rewrite a lot of the documentation. Sam Hocevar 2017-09-09 19:25:06 +02:00
  • dd17267afe Start working on IPv6 support. Sam Hocevar 2017-09-08 19:42:18 +02:00
  • 5d0e44c451 Support for source address binding. Sam Hocevar 2017-09-08 19:14:21 +02:00
  • 173a738be0 Fix regression: hostnames in bind address were broken. Sam Hocevar 2017-09-08 19:12:53 +02:00
  • 37437a5c5b Improve UDP connection handling. Sam Hocevar 2017-09-08 13:28:09 +02:00
  • b833d456dd Fix “make dist” by adding a few missing filenames. Sam Hocevar 2017-09-08 13:10:53 +02:00
  • f64f42ba81 Merge branch 'feature-udp-support'. Closes #8. Sam Hocevar 2017-09-08 13:02:13 +02:00
  • efc3474d1b Add proper destination address when answering an UDP client. feature-udp-support Sam Hocevar 2017-09-08 12:56:29 +02:00
  • f04eada6a9 Add UDP client timeout support. Sam Hocevar 2017-09-08 12:32:05 +02:00
  • 17d17e233b Merge some code into a new net.c source file. Sam Hocevar 2017-09-07 17:13:58 +02:00
  • 6750f65c35 Only call set FIONBIO on TCP sockets. Sam Hocevar 2017-09-07 17:04:05 +02:00
  • 6bb27c18a6 Support multiple UDP clients with connection tracking. Sam Hocevar 2017-09-07 16:29:23 +02:00
  • b5206eab4e Add \n to all syslog calls because on Windows it will use fprintf. Sam Hocevar 2017-09-07 13:26:04 +02:00
  • 759cd83724 Use BUILT_SOURCES, not GENERATED_SOURCES. Sam Hocevar 2017-09-07 12:11:06 +02:00
  • 577a3be97a Improve code clarity in get_gmtoff(). Sam Hocevar 2017-09-06 18:19:57 +02:00
  • e35403e112 Minor #ifdef cleanup. Sam Hocevar 2017-09-06 18:17:33 +02:00
  • ff3974440e Get rid of useless refuse() function. Sam Hocevar 2017-09-06 18:05:25 +02:00
  • 79f2e14e22 Do not always try to write PID file in foreground mode. Sam Hocevar 2017-09-06 17:58:54 +02:00
  • 00dec123da Use recvfrom() in UDP listening mode to get remote address. Sam Hocevar 2017-09-06 13:55:49 +02:00
  • 6909d2c3de Move connection authorisation logic to a separate function. Sam Hocevar 2017-09-06 14:54:52 +02:00
  • b0511c6ab9 Merge branch 'master' into feature-udp-support Sam Hocevar 2017-09-06 13:01:10 +02:00
  • 7f9f97a963 Count configuration file lines for better error reporting. feature-peg-grammar Sam Hocevar 2017-09-06 12:57:05 +02:00
  • 7b62e576cf Reorganise some code for clarity and add license headers. Sam Hocevar 2017-09-05 12:52:39 +02:00
  • a613195ad9 Do not call listen() on UDP listeners. Sam Hocevar 2017-09-05 17:26:30 +02:00
  • 33e8b8d7f9 Start playing around with UDP. Sam Hocevar 2017-09-05 01:45:00 +02:00
  • 718f4cddf7 Implement a new parser using a PEG grammar. Sam Hocevar 2017-09-04 20:14:11 +02:00
  • b3550b8e77 Release 0.63 seems ready. v0.63 Sam Hocevar 2017-07-19 19:23:24 +02:00
  • 9cd2114bcb Rename CHANGES and README to CHANGES.md and README.md. Sam Hocevar 2017-07-19 19:15:45 +02:00
  • 982c14f46f Properly handle FD_SET on Windows. Fixes #5. Sam Hocevar 2017-07-19 18:36:42 +02:00
  • 8feb3e0513 Fix a memory corruption in the configuration file parsing. Fixes: #11. Sam Hocevar 2017-07-17 11:57:12 +02:00
  • 96d60bcabb Remove old debug code. Not sure why it was there. Sam Hocevar 2017-07-05 15:06:24 +02:00
  • 8b071acbe4 Fix a few issues in the Windows port. Sam Hocevar 2016-02-09 02:28:19 +01:00
  • cb60037d58 Fix Windows cross-compilation. Sam Hocevar 2016-02-08 09:20:55 +01:00
  • a259a67e2d Fix a probably harmless uninitialised memory access. Sam Hocevar 2016-02-08 02:49:24 +01:00
  • c92c0cf4bb Stop passing server indices around. Sam Hocevar 2016-02-08 02:36:23 +01:00
  • 53d670f9b1 Some cleaning up in includes and ifdefs. Sam Hocevar 2016-02-07 00:02:29 +01:00
  • 86cba0ad56 Remove patternBad() and inline its code in its only caller. Sam Hocevar 2016-02-06 23:35:43 +01:00
  • e3c2b09c01 Reformat and reorganise CHANGES file with newest entries on top. Sam Hocevar 2016-02-06 18:45:16 +01:00
  • 65273124f3 Free all memory when quitting, and quit when SIGINT is received. Sam Hocevar 2016-02-06 18:40:02 +01:00
  • 830b7e5fd1 Allow to shrink the number of connections. Sam Hocevar 2016-02-06 18:31:50 +01:00
  • f65f4d2506 Pedantic C fixes. Sam Hocevar 2016-02-06 18:23:50 +01:00
  • f2d3ecd7f2 Reorganise log categories. Sam Hocevar 2016-02-06 18:14:14 +01:00
  • d4c4c99ec7 Move a few declarations and definitions to rinetd.h. Sam Hocevar 2016-02-06 18:10:44 +01:00
  • e365bf65f0 Increase buffer size to 16k instead of 1k. Sam Hocevar 2016-02-06 17:44:35 +01:00
  • 31f320a74d Merge openLocalFd() into handleAccept(). Sam Hocevar 2016-02-06 17:28:47 +01:00
  • 568b04acd6 Merge some similar functions. Sam Hocevar 2016-02-06 17:05:49 +01:00
  • af28930cd7 Merge similar ConnectionInfo members into another struct. Sam Hocevar 2016-02-06 16:54:17 +01:00
  • da1fbfbf4f Make a few pointer types const. Sam Hocevar 2016-02-06 15:37:29 +01:00
  • ad8874362c Merge allow and deny rules in a single array. Sam Hocevar 2016-02-06 15:34:53 +01:00
  • e9f4d50051 Move some magic numbers and strings to constants. Sam Hocevar 2016-02-06 15:07:12 +01:00