#define MAX(a, b) ((a) > (b) ? (a) : (b))
#endif
+volatile int dummy;
static timeout_t age_subnets_timeout;
/* RFC 1071 */
checksum = (checksum & 0xFFFF) + (checksum >> 16);
}
+ // Work around a compiler optimization bug.
+ if(checksum) {
+ dummy = 1;
+ }
+
return ~checksum;
}
}
static void age_subnets(void *data) {
+ (void)data;
bool left = false;
for splay_each(subnet_t, s, myself->subnet_tree) {
memcpy(DATA(packet), DATA(packet) + ETH_ALEN, ETH_ALEN); /* copy destination address */
DATA(packet)[ETH_ALEN * 2 - 1] ^= 0xFF; /* mangle source address so it looks like it's not from us */
- ip6.ip6_dst = ip6.ip6_src; /* swap destination and source protocoll address */
+ ip6.ip6_dst = ip6.ip6_src; /* swap destination and source protocol address */
ip6.ip6_src = ns.nd_ns_target;
if(has_opt) {