Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
# Conflicts:
# src/route.c
-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(decrement_ttl && source != myself)
if(!do_decrement_ttl(source, packet))
return;
- broadcast_packet_helper(source, packet);
+ route_broadcast(source, packet);
- broadcast_packet_helper(source, packet);
+ route_broadcast(source, packet);
subnet = lookup_subnet_mac(NULL, &dest);
if(!subnet || !subnet->owner) {
subnet = lookup_subnet_mac(NULL, &dest);
if(!subnet || !subnet->owner) {
- broadcast_packet_helper(source, packet);
+ route_broadcast(source, packet);
- broadcast_packet_helper(source, packet);
+ route_broadcast(source, packet);