s/broadcast_packet_helper/route_broadcast/
authorVittorio Gambaletta (VittGam) <github@vittgam.net>
Fri, 25 Sep 2015 13:35:28 +0000 (15:35 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 28 Feb 2016 15:19:00 +0000 (16:19 +0100)
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
# Conflicts:
# src/route.c

src/route.c

index 6415f0e..e5b68b7 100644 (file)
@@ -252,7 +252,7 @@ static void learn_mac(mac_t *address) {
        }
 }
 
-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;
@@ -429,7 +429,7 @@ static void route_ipv4(node_t *source, vpn_packet_t *packet) {
        }
 
        if (!subnet->owner) {
-               broadcast_packet_helper(source, packet);
+               route_broadcast(source, packet);
                return;
        }
 
@@ -614,7 +614,7 @@ static void route_ipv6(node_t *source, vpn_packet_t *packet) {
        }
 
        if (!subnet->owner) {
-               broadcast_packet_helper(source, packet);
+               route_broadcast(source, packet);
                return;
        }
 
@@ -886,7 +886,7 @@ static void route_mac(node_t *source, vpn_packet_t *packet) {
        subnet = lookup_subnet_mac(NULL, &dest);
 
        if(!subnet || !subnet->owner) {
-               broadcast_packet_helper(source, packet);
+               route_broadcast(source, packet);
                return;
        }
 
@@ -1052,7 +1052,7 @@ void route(node_t *source, vpn_packet_t *packet) {
                        break;
 
                case RMODE_HUB:
-                       broadcast_packet_helper(source, packet);
+                       route_broadcast(source, packet);
                        break;
        }
 }