projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
099bc56
)
Add missing parentheses in check for IPv4 multicast addresses.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 26 Dec 2008 12:46:45 +0000
(12:46 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 26 Dec 2008 12:46:45 +0000
(12:46 +0000)
src/route.c
patch
|
blob
|
history
diff --git
a/src/route.c
b/src/route.c
index 742fbc28dcf1bf29929414c83cca6417839e55e3..ec01491cd5f35979f1269c5d2a2c5357ea006c0d 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 &&