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

Initialise ptype of IPX sockets correctly.

This commit is contained in:
Daniel Collins 2014-01-11 18:20:55 +00:00
parent d98c830877
commit 33071b40dd
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
Version XXX:
Bugfix: Allow address reuse when only the binding socket has SO_REUSEADDR.
Bugfix: Initialise the ptype of IPX sockets created with a nonzero
protocol value correctly.
Version 0.4.1:
Feature: Added workaround for point-to-point links.

View File

@ -178,7 +178,7 @@ SOCKET WSAAPI socket(int af, int type, int protocol)
}
nsock->flags = IPX_SEND | IPX_RECV | IPX_RECV_BCAST;
nsock->s_ptype = (protocol ? NSPROTO_IPX - protocol : 0);
nsock->s_ptype = (protocol ? protocol - NSPROTO_IPX : 0);
log_printf(LOG_INFO, "IPX socket created (fd = %d)", nsock->fd);