From 4a66370224e44b9fdd9b80b8360d4ac0f1a6b54c Mon Sep 17 00:00:00 2001 From: "Vittorio Gambaletta (VittGam)" Date: Fri, 25 Sep 2015 15:35:28 +0200 Subject: [PATCH] s/broadcast_packet_helper/route_broadcast/ Signed-off-by: Vittorio Gambaletta --- src/route.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/route.c b/src/route.c index 1b539aa1..a568d1ef 100644 --- a/src/route.c +++ b/src/route.c @@ -253,7 +253,7 @@ void age_subnets(void) { } } -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; @@ -479,7 +479,7 @@ static void route_ipv4(node_t *source, vpn_packet_t *packet) { packet->data[31] == 255 && packet->data[32] == 255 && packet->data[33] == 255))) - broadcast_packet_helper(source, packet); + route_broadcast(source, packet); else route_ipv4_unicast(source, packet); } @@ -801,7 +801,7 @@ static void route_ipv6(node_t *source, vpn_packet_t *packet) { } if(broadcast_mode && packet->data[38] == 255) - broadcast_packet_helper(source, packet); + route_broadcast(source, packet); else route_ipv6_unicast(source, packet); } @@ -894,7 +894,7 @@ static void route_mac(node_t *source, vpn_packet_t *packet) { subnet = lookup_subnet_mac(NULL, &dest); if(!subnet) { - broadcast_packet_helper(source, packet); + route_broadcast(source, packet); return; } @@ -1042,7 +1042,7 @@ void route(node_t *source, vpn_packet_t *packet) { break; case RMODE_HUB: - broadcast_packet_helper(source, packet); + route_broadcast(source, packet); break; } } -- 2.20.1