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:
parent
ae2837258f
commit
2ad2707f89
@ -213,9 +213,13 @@ static bool handle_recv(int fd)
|
|||||||
HASH_ITER(hh, sockets, sock, tmp)
|
HASH_ITER(hh, sockets, sock, tmp)
|
||||||
{
|
{
|
||||||
if(
|
if(
|
||||||
|
/* Socket isn't SPX */
|
||||||
|
|
||||||
|
!(sock->flags & IPX_IS_SPX)
|
||||||
|
|
||||||
/* Socket is bound and not shutdown for recv. */
|
/* 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
|
/* Packet type filtering is off, or packet type matches
|
||||||
* filter.
|
* filter.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user