1
0
mirror of https://github.com/solemnwarning/ipxwrapper synced 2024-12-30 16:45:37 +01:00

207 Commits

Author SHA1 Message Date
Daniel Collins
2dd19ce6d7 Perform source address filtering using the IPs registered with the IPX interface
of the target address rather than the one in the router_addr structure.

Bugfix: Don't overwrite packet IP address on first relay.
2012-11-03 23:07:42 +00:00
Daniel Collins
2f9677c3d2 Replaced single_iface option with iface_mode. 2012-11-03 13:11:16 +00:00
Daniel Collins
f72e88ea34 Iterate over interface broadcast addresses in sendto rather than storing a
single address in ipx_socket during router bind.
2012-11-03 12:57:34 +00:00
Daniel Collins
f087fc26b1 Removed addr_cache_ttl and iface_ttl from main_config structure. 2012-11-03 02:14:14 +00:00
Daniel Collins
d8a0dcf5c8 Removed ip_is_local and associated code. Test for packets originating from us by
attempting to fetch an interface using the IPX source address instead.
2012-11-03 02:03:46 +00:00
Daniel Collins
57e4f27bb8 Implemented (virtual) interface address cache and ipx_interface utility functions. 2012-11-03 01:21:25 +00:00
Daniel Collins
bee68d52b9 Store zero or more IPs in ipx_interface structures rather than one. 2012-11-02 20:45:10 +00:00
Daniel Collins
7fe8d74f22 Implemented config saving functions and added log_level to main_config. 2012-10-28 15:53:54 +00:00
Daniel Collins
39c6e18b46 Implemented registry writing functions.
Implemented random (locally-administered) MAC address generator.

Added config options for single interface mode.
2012-10-28 13:08:36 +00:00
Daniel Collins
c6e1cc9665 Bugfix for addr48_from_string. 2012-10-21 11:02:09 +00:00
Daniel Collins
32bf06ebed Implemented string-to-addr{32,48} functions and added headers. 2012-10-21 11:00:03 +00:00
Daniel Collins
e96c9db3e2 Moved address cache and interface TTL values into main_config. 2012-10-21 10:33:20 +00:00
Daniel Collins
ebcf1673e2 REFACTOR ALL THE THINGS. 2012-10-21 10:26:52 +00:00
Daniel Collins
c836c55ee4 Implemented function for formatting complete IPX addresses as strings.
Bugfix: mkstubs.pl used wrong DLL number for calls to log_call.
2012-10-20 19:21:59 +00:00
Daniel Collins
0f6c458bcc Implemented new address cache. 2012-10-20 18:06:11 +00:00
Daniel Collins
97b303822d Fixed a deadlock. 2012-07-22 19:29:39 +00:00
Daniel Collins
999500b865 Fixed a couple of interface ordering bugs. 2012-07-22 18:57:06 +00:00
Daniel Collins
f000b16d03 Fixed bug causing closesocket() to crash if used on the oldest existing IPX socket when newer ones exist. 2012-07-21 23:30:22 +00:00
Daniel Collins
a5837f0fdc Added workaround for games that break WinSock IP support by clearing the environment (Carmageddon II). 2012-05-10 01:18:25 +00:00
Daniel Collins
23c934c192 Added some debug messages 2012-05-09 23:35:21 +00:00
Daniel Collins
f1fa666c00 Log stub DLL name rather than target DLL when logging calls. 2011-11-16 22:29:27 +00:00
Daniel Collins
e7c6358044 Updated logging API. 2011-11-16 21:32:59 +00:00
Daniel Collins
4266b85cc9 Cleaned up error handling in SPInit and updated changelog. 2011-11-14 02:59:15 +00:00
Daniel Collins
406b4710bc Log version/revision and compile time while initializing ipxwrapper.dll. 2011-11-14 02:21:29 +00:00
Daniel Collins
225f46948b Added some extra log messages for debugging. 2011-11-13 18:31:22 +00:00
Daniel Collins
4340e3f5b2 Bugfix: Don't choke on rpacket_header in ioctlsocket/FIONREAD. 2011-11-13 02:12:39 +00:00
Daniel Collins
57131bb5ff Bugfixes: Correctly check for broadcast address and set sa_flags when dealing with extended addresses. 2011-11-13 01:45:32 +00:00
Daniel Collins
aa36058c1d Updated changelog and added some notes to service provider. 2011-11-08 22:01:32 +00:00
Daniel Collins
b3db46de40 Fixed bug: Requesting single interface when disabled interfaces are present from get_interfaces. 2011-11-07 16:14:10 +00:00
Daniel Collins
e82ffa87e2 Added workaround for Hamachi bug. 2011-11-05 20:22:16 +00:00
Daniel Collins
7a6c8e95da Cleaned up IPX_Send/IPX_SendEx. 2011-10-08 20:14:16 +00:00
Daniel Collins
705ba9a71f Code cleanup. 2011-10-03 11:17:05 +00:00
Daniel Collins
8fd710578d Set 0x02 in sa_flags when packet is from a local (IPX) IP and free the hosts list while cleaning up. 2011-10-03 11:13:45 +00:00
Daniel Collins
4255a77898 Log address location/size in SPInit. 2011-10-02 19:25:01 +00:00
Daniel Collins
33b3e39a98 Added warning when unknown NSPROTO_IPX socket options are used and updated changelog. 2011-09-28 22:05:36 +00:00
Daniel Collins
5d1c56e5f1 Implemented IPX_EXTENDED_ADDRESS socket option. 2011-09-28 21:49:31 +00:00
Daniel Collins
0093259c1d Tweaked logging code. 2011-09-28 19:48:56 +00:00
Daniel Collins
49119b4831 Redesigned DirectPlay locking code as deadlocks could occur inside IDirectPlaySP_GetSPData call. Release more resources in IPX_ShutdownEx. 2011-09-28 19:10:08 +00:00
Daniel Collins
7c822c97b6 Tweaked some code and updated changelog. 2011-09-21 21:57:28 +00:00
Daniel Collins
8820b7d478 Correctly initialise router_addr.remote_addr, use correct width for rpacket_header.src_ip and correctly set router copy of socket flags. 2011-09-19 23:49:16 +00:00
Daniel Collins
93ce7e3ea7 Fix segfault. 2011-09-19 22:14:19 +00:00
Daniel Collins
82c3d8f242 Moved icon-related stuff to subdir. 2011-09-19 00:49:31 +00:00
Daniel Collins
a8a700b6f2 Added option to change router control port. 2011-09-19 00:43:16 +00:00
Daniel Collins
c5a3429d9a Fix ipxconfig icon loading. 2011-09-18 22:47:45 +00:00
Daniel Collins
f8b53b1d1b Added ipxconfig icon. 2011-09-18 22:24:26 +00:00
Daniel Collins
d9684fd53b Added icon for ipxrouter. 2011-09-18 15:43:13 +00:00
Daniel Collins
322b2fe97d Added tray icon and menu with exit option to ipxrouter. Added filename argument to log_open. 2011-09-18 14:36:24 +00:00
Daniel Collins
fd555ce7c2 Implemented IPX_RECEIVE_BROADCAST option, updated router/rclient API and added proper checks when receiving broadcast packets to the router main loop. 2011-09-17 23:47:31 +00:00
Daniel Collins
646ab3b011 Reduced packet data limit to 8192 bytes, the standard driver included with XP only supports 1467 anyway. 2011-09-17 19:54:53 +00:00
Daniel Collins
f560fae7ad Added header to packets sent from router to loopback sockets. 2011-09-17 19:17:13 +00:00