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:
parent
aa36058c1d
commit
57131bb5ff
@ -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};
|
const unsigned char f6[] = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF};
|
||||||
|
|
||||||
if(memcpy(packet->dest_node, f6, 6) == 0) {
|
if(memcmp(packet->dest_node, f6, 6) == 0) {
|
||||||
flags |= 0x01;
|
addr->sa_flags |= 0x01;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ip_is_local(rp_header->src_ipaddr)) {
|
if(ip_is_local(rp_header->src_ipaddr)) {
|
||||||
flags |= 0x02;
|
addr->sa_flags |= 0x02;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
log_printf("IPX_EXTENDED_ADDRESS enabled, but recvfrom called with addrlen %d", addrlen);
|
log_printf("IPX_EXTENDED_ADDRESS enabled, but recvfrom called with addrlen %d", addrlen);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user