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:
parent
d98c830877
commit
33071b40dd
@ -1,5 +1,8 @@
|
|||||||
Version XXX:
|
Version XXX:
|
||||||
Bugfix: Allow address reuse when only the binding socket has SO_REUSEADDR.
|
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:
|
Version 0.4.1:
|
||||||
Feature: Added workaround for point-to-point links.
|
Feature: Added workaround for point-to-point links.
|
||||||
|
@ -178,7 +178,7 @@ SOCKET WSAAPI socket(int af, int type, int protocol)
|
|||||||
}
|
}
|
||||||
|
|
||||||
nsock->flags = IPX_SEND | IPX_RECV | IPX_RECV_BCAST;
|
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);
|
log_printf(LOG_INFO, "IPX socket created (fd = %d)", nsock->fd);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user