Commit Graph

  • d358e23c27 BProcess: restore signal dispositions and signal mask for the child ambrop7 2011-01-15 21:07:38 +00:00
  • 6874ecb490 version 1.999.99rc3 ambrop7 2011-01-15 11:03:55 +00:00
  • 27140ea6e7 ncd: add ip_in_network module ambrop7 2011-01-15 11:03:03 +00:00
  • 2c38bac24c misc/ipaddr.h: add function for checking when addresses are in the same network ambrop7 2011-01-15 11:01:28 +00:00
  • 0d0e939835 DataProto: oops... don't call object's method while it's being freed ambrop7 2011-01-15 09:59:21 +00:00
  • eaa85e17e4 DataProto: minor changes ambrop7 2011-01-15 09:46:17 +00:00
  • 087189af36 PacketPassNotifier: remove useless debug code ambrop7 2011-01-15 09:16:29 +00:00
  • 433367e482 DataProto: protect against extra Route's ambrop7 2011-01-14 22:56:00 +00:00
  • 57ed1ee1eb version 1.999.99rc2 ambrop7 2011-01-14 22:09:00 +00:00
  • e28eeecf22 PacketRouter: first send, then receive more ambrop7 2011-01-14 22:08:39 +00:00
  • 8280136e3a version 1.999.99rc1 ambrop7 2011-01-14 19:37:57 +00:00
  • 57b288fff9 sysconf returns long not size_t ambrop7 2011-01-14 19:33:51 +00:00
  • ae621a700a client: use RouteBuffer's to route frames from the device to peers. Avoids a memcpy of the frame. ambrop7 2011-01-14 19:26:07 +00:00
  • 4af9060ffe flow: add PacketRouter ambrop7 2011-01-14 18:53:23 +00:00
  • 5fd2e0cf5b flow: add RouteBuffer ambrop7 2011-01-14 18:35:14 +00:00
  • e045865d04 FrameDecider: make some pointers const ambrop7 2011-01-14 15:07:58 +00:00
  • 4c35ff8fe1 BReactor: use LinkedList1 instead of LinkedList2 for timers ambrop7 2011-01-13 19:04:30 +00:00
  • e3652c37aa examples/ipc_server: add missing include ambrop7 2011-01-13 19:03:45 +00:00
  • 1f5176a841 BPending: use LinkedList1 instead of LinkedList2 ambrop7 2011-01-13 18:59:37 +00:00
  • cc73cd82d4 structure: add LinkedList1 ambrop7 2011-01-13 18:58:51 +00:00
  • feebd816c4 BReactor: optimize event loop ambrop7 2011-01-13 10:58:24 +00:00
  • 5f5bbfd36e version 1.999.98rc12 ambrop7 2011-01-10 00:58:31 +00:00
  • 26aeb61747 ncd/modules/command_template.c: remove debug output ambrop7 2011-01-10 00:10:39 +00:00
  • 2afa83b08f ncd: add strcmp module ambrop7 2011-01-10 00:04:49 +00:00
  • 1b4a14382b ncd: add if module ambrop7 2011-01-10 00:02:15 +00:00
  • 716691f00b ncd/modules/net_iptables: run all iptables commands synchronously, use BEventLock to achieve that. Otherwise, if two iptables commands are run concurrently, one might fail. ambrop7 2011-01-09 23:56:47 +00:00
  • 0ea41b455e system: add BEventLock ambrop7 2011-01-09 23:54:36 +00:00
  • fe46c08569 ncd: pass BReactor and BProcessManager in module func_globalinit, add func_globalfree ambrop7 2011-01-09 22:47:50 +00:00
  • 1d6caaca25 ncd/modules/depend: allow accessing provide variables through depend ambrop7 2011-01-09 22:41:57 +00:00
  • b5e69f40e4 ncd: allow modules to resolve variables in preceding statements ambrop7 2011-01-09 22:40:16 +00:00
  • c4e7db1871 NCDValue_InitString: take a const string ambrop7 2011-01-09 22:36:10 +00:00
  • 836b93e805 NCDValue_InitString: take a const string ambrop7 2011-01-09 22:35:12 +00:00
  • bfea9543b5 BProcess: fix fd mapping ambrop7 2011-01-09 22:14:13 +00:00
  • a62da7a439 BProcess: support specifying a list of file descriptors to preserve and fd numbers to map them to inside the child ambrop7 2010-12-29 18:57:01 +00:00
  • 3cdee2a3b6 BSocket: BSocket_Reactor is for windows too ambrop7 2010-12-28 13:45:20 +00:00
  • 5219871b0b BProcess: move to process/ ambrop7 2010-12-28 13:43:40 +00:00
  • a81e202895 version 1.999.98rc11 ambrop7 2010-12-27 14:20:03 +00:00
  • 301ae54a82 examples/ipc_server: don't handle termination requests ambrop7 2010-12-27 14:03:44 +00:00
  • 99333ee64d examples/ipc_client: do cleanup in one place ambrop7 2010-12-27 13:35:01 +00:00
  • 9924fef1f3 examples/bprocess_example: do cleanup in one place ambrop7 2010-12-27 13:21:33 +00:00
  • aac81b5bca examples/dhcpclient_test: do cleanup in one place ambrop7 2010-12-27 13:11:16 +00:00
  • cf2b736cd0 tun2socks: do cleanup in one place ambrop7 2010-12-27 12:49:44 +00:00
  • 2939d5706d flooder: do cleanup in one place (error and normal exit). This is possible now that all processing is done using jobs, and there are no error reporters enforcing immediate cleanup with dead vars. ambrop7 2010-12-27 12:14:31 +00:00
  • 0b916dfca2 server: do cleanup in one place (error and normal exit). This is possible now that all processing is done using jobs, and there are no error reporters enforcing immediate cleanup with dead vars. ambrop7 2010-12-27 10:51:01 +00:00
  • 2fe3fbf8dc client: do cleanup in one place (error and normal exit). This is possible now that all processing is done using jobs, and there are no error reporters enforcing immediate cleanup with dead vars. ambrop7 2010-12-27 00:04:36 +00:00
  • 481b171588 DebugError: don't use a dead var, use a job to enforce destruction, allowing the destruction to be done from the handler's jobs (rather than just the handler) ambrop7 2010-12-26 23:40:34 +00:00
  • 5a34d9b18a NCDModule: port to DebugError ambrop7 2010-12-26 23:31:25 +00:00
  • a2972f08a3 ServerConnection: remove unused dead var ambrop7 2010-12-26 23:11:32 +00:00
  • 5d4028ff49 examples/ipc_client.c: remove unused dead var ambrop7 2010-12-26 23:08:15 +00:00
  • fb36530668 examples/ipc_server.c: remove unused dead var ambrop7 2010-12-26 23:07:33 +00:00
  • 7efb19f024 PasswordSender: port to DebugError ambrop7 2010-12-26 23:05:27 +00:00
  • f288c81ef2 flooder: remove unused dead var ambrop7 2010-12-26 23:03:16 +00:00
  • 71a1e88546 DataProto: remove unused dead vars ambrop7 2010-12-26 23:00:37 +00:00
  • 19091bc38a BIPCServer: don't include misc/dead.h ambrop7 2010-12-26 22:54:00 +00:00
  • ec7bc60c54 BIPC: port to DebugError ambrop7 2010-12-26 22:53:01 +00:00
  • 288a969301 BSocksClient: port to DebugError ambrop7 2010-12-26 22:48:54 +00:00
  • f939a00937 PRStreamSink: port to DebugError ambrop7 2010-12-26 22:45:32 +00:00
  • 502b77d1b8 PRStreamSource: port to DebugError ambrop7 2010-12-26 22:42:48 +00:00
  • adaa666328 SinglePacketSender: port to DebugError ambrop7 2010-12-26 22:39:34 +00:00
  • ced69b1b88 StreamSocketSink: port to DebugError ambrop7 2010-12-26 22:36:58 +00:00
  • 32ee730ed1 StreamSocketSource: port to DebugError ambrop7 2010-12-26 22:34:10 +00:00
  • a72cb44424 flow: simplify implementation of flow interfaces ambrop7 2010-12-26 22:25:04 +00:00
  • 12fe99ea8d BProcess: port to DebugError ambrop7 2010-12-26 21:08:44 +00:00
  • 3197c8a986 BTap: port to DebugError ambrop7 2010-12-26 20:57:53 +00:00
  • feb875f9dc ServerConnection: use DebugError ambrop7 2010-12-26 20:28:58 +00:00
  • d2d023dec2 add misc/debugerror.h ambrop7 2010-12-26 20:28:22 +00:00
  • ddbddb4438 PasswordListener: remove unused dead var ambrop7 2010-12-26 19:39:43 +00:00
  • fc2561fa55 Listener: Remove the socket event handler when freeing. Use a job for default accepting instead of directly using a dead var. ambrop7 2010-12-26 19:22:49 +00:00
  • 49a56089a7 system/BAddr.h: replace *_IsRecognized in favour of *_Assert ambrop7 2010-12-26 11:50:07 +00:00
  • d8f27fac92 ncd: minor changes ambrop7 2010-12-26 00:09:57 +00:00
  • c14bd9c6df version 1.999.98rc10 ambrop7 2010-12-24 23:34:36 +00:00
  • 32a9dd10af ncd/modules/net_iptables: add net.iptables.policy ambrop7 2010-12-24 23:10:10 +00:00
  • 2b439110e5 ncd: add iptables module ambrop7 2010-12-24 22:54:05 +00:00
  • d41d39b0f8 ncd: add concat module ambrop7 2010-12-24 01:06:16 +00:00
  • 7adc3f6c79 ncd: add some documentation ambrop7 2010-12-24 00:11:25 +00:00
  • 5a3fe6fb0c version 1.999.98rc9 ambrop7 2010-12-23 21:34:46 +00:00
  • 9e62542b6d ncd: add dependencies module ambrop7 2010-12-23 21:31:14 +00:00
  • 18ce64753d NCDConfigParser: increase stack size, workaround token leak when the stack overflows ambrop7 2010-12-23 21:07:04 +00:00
  • de849d2500 ncd: allow a module to export multiple statement types ambrop7 2010-12-23 15:21:21 +00:00
  • f7e4dff34a ncd: use jobs instead of direct iteration when initializing processes and when initiating their shutdown. This allows a module to do its job work before NCD does something with another module, and allows modules not to be independent. Otherwise, if modules were not independent, problems would arise when a job event between a module and NCD is scheduled but not yet delivered, and another module causes an internal event at the module. ambrop7 2010-12-23 14:46:13 +00:00
  • 443def606f ncd: major rework, make NCD into a much more general system ambrop7 2010-12-23 13:45:59 +00:00
  • bbc49bf989 LinkedList2: add LinkedList2Node_Next, LinkedList2Node_Prev ambrop7 2010-12-23 13:33:20 +00:00
  • b7a6433651 add misc/bsort.h ambrop7 2010-12-23 13:32:47 +00:00
  • 2267e267d2 add misc/expstring.h ambrop7 2010-12-23 13:32:32 +00:00
  • 63ef9fa528 NCDIfConfig: use "ip" instead of "route" for setting up routes (or we have problem with "host" routes), fix TUNSETOWNER ambrop7 2010-12-23 13:31:29 +00:00
  • 1dac9f5d8c version 1.999.98rc8 ambrop7 2010-12-19 15:12:57 +00:00
  • b760ee95eb ncd: gracefully finish modules when terminating ambrop7 2010-12-19 15:10:46 +00:00
  • e084b20f1f ncd/interface_modules/interface_badvpn: support running the client program as a specific user ambrop7 2010-12-19 13:14:59 +00:00
  • 8e73c9d4b3 BUnixSignal: don't provide any information about a signal other than the signal number. This is because multiple signals (at least SIGCHLD) may be merged into one, so it is useless to provide additional info about a signal. ambrop7 2010-12-19 10:10:00 +00:00
  • 1acfbfad55 version 1.999.98rc7 ambrop7 2010-12-19 00:40:21 +00:00
  • 9ed951a643 ncd: wait for module to finish (TODO on exit) ambrop7 2010-12-19 00:26:19 +00:00
  • e155b20128 minor changes ambrop7 2010-12-18 23:50:28 +00:00
  • 2b5d2cdfb0 ncd/interface_modules/interface_badvpn: log error if we can't destory the device ambrop7 2010-12-18 23:22:22 +00:00
  • 5e6176ebf1 BProcess: Wait for any process in waitpid(), not just the pid that came with the signal. Needed because we may only get a single signal when multiple processes terminate. ambrop7 2010-12-18 23:21:20 +00:00
  • 84fb7aad9e ncd: add BadVPN interface module ambrop7 2010-12-18 20:50:34 +00:00
  • de005d2790 add misc/cmdline ambrop7 2010-12-18 20:50:06 +00:00
  • ce27d123ad add misc/exparray ambrop7 2010-12-18 20:28:29 +00:00
  • 501ea0f98b ncd: Improve interface module interface. Support routes without a gateway. NCDIfConfig: add functions for creating and removing TUN/TAP devices. ambrop7 2010-12-18 20:26:52 +00:00
  • 7dd1d83522 BProcess: call waitpid() for all processes, not just recognized ones. This is needed so that BProcess processes whose BProcess objects have been freed don't remain zombies. Be quiet if we wait for an unknown process, or if the wait fails. This is because we may catch SIGCHLD signals for processes which were ran synchronously and were already waited for, e.g. with system(). ambrop7 2010-12-18 20:17:28 +00:00
  • d40051f9c1 ncd: add some convenience functions for interface modules ambrop7 2010-12-18 14:10:31 +00:00