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

Bugfixes: Correctly check for broadcast address and set sa_flags when dealing with extended addresses.

This commit is contained in:
Daniel Collins 2011-11-13 01:45:32 +00:00
parent aa36058c1d
commit 57131bb5ff

View File

@ -373,12 +373,12 @@ static int recv_packet(ipx_socket *sockptr, char *buf, int bufsize, int flags, s
const unsigned char f6[] = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF};
if(memcpy(packet->dest_node, f6, 6) == 0) {
flags |= 0x01;
if(memcmp(packet->dest_node, f6, 6) == 0) {
addr->sa_flags |= 0x01;
}
if(ip_is_local(rp_header->src_ipaddr)) {
flags |= 0x02;
addr->sa_flags |= 0x02;
}
}else{
log_printf("IPX_EXTENDED_ADDRESS enabled, but recvfrom called with addrlen %d", addrlen);