From: Vittorio Gambaletta (VittGam) Date: Fri, 25 Sep 2015 13:35:28 +0000 (+0200) Subject: s/broadcast_packet_helper/route_broadcast/ X-Git-Tag: release-1.1pre12~66 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=0f3ae1a9f29c845a69e44a4f691f43d6a6651583;p=tinc s/broadcast_packet_helper/route_broadcast/ Signed-off-by: Vittorio Gambaletta # Conflicts: # src/route.c --- diff --git a/src/route.c b/src/route.c index 6415f0ed..e5b68b7d 100644 --- a/src/route.c +++ b/src/route.c @@ -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; } }