projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add missing parentheses in check for IPv4 multicast addresses.
[tinc]
/
src
/
route.c
diff --git
a/src/route.c
b/src/route.c
index
742fbc2
..
ec01491
100644
(file)
--- a/
src/route.c
+++ b/
src/route.c
@@
-376,7
+376,7
@@
static void route_ipv4(node_t *source, vpn_packet_t *packet)
if(!checklength(source, packet, ether_size + ip_size))
return;
- if(
packet->data[30] & 0xf0 == 0xe0
||
+ if(
((packet->data[30] & 0xf0) == 0xe0)
||
packet->data[30] == 255 &&
packet->data[31] == 255 &&
packet->data[32] == 255 &&