}
}
-static void broadcast_packet_helper(node_t *source, vpn_packet_t *packet) {
+static void route_broadcast(node_t *source, vpn_packet_t *packet) {
if(decrement_ttl && source != myself)
if(!do_decrement_ttl(source, packet))
return;
}
if (!subnet->owner) {
- broadcast_packet_helper(source, packet);
+ route_broadcast(source, packet);
return;
}
}
if (!subnet->owner) {
- broadcast_packet_helper(source, packet);
+ route_broadcast(source, packet);
return;
}
subnet = lookup_subnet_mac(NULL, &dest);
if(!subnet || !subnet->owner) {
- broadcast_packet_helper(source, packet);
+ route_broadcast(source, packet);
return;
}
break;
case RMODE_HUB:
- broadcast_packet_helper(source, packet);
+ route_broadcast(source, packet);
break;
}
}