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

Filter out SPX sockets when relaying IPX packets.

This commit is contained in:
Daniel Collins 2014-01-11 23:21:47 +00:00
parent ae2837258f
commit 2ad2707f89

View File

@ -213,9 +213,13 @@ static bool handle_recv(int fd)
HASH_ITER(hh, sockets, sock, tmp)
{
if(
/* Socket isn't SPX */
!(sock->flags & IPX_IS_SPX)
/* Socket is bound and not shutdown for recv. */
(sock->flags & IPX_BOUND) && (sock->flags & IPX_RECV)
&& (sock->flags & IPX_BOUND) && (sock->flags & IPX_RECV)
/* Packet type filtering is off, or packet type matches
* filter.