s/broadcast_packet_helper/route_broadcast/
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> # Conflicts: # src/route.c
This commit is contained in:
parent
496f775568
commit
0f3ae1a9f2
1 changed files with 5 additions and 5 deletions
10
src/route.c
10
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(decrement_ttl && source != myself)
|
||||||
if(!do_decrement_ttl(source, packet))
|
if(!do_decrement_ttl(source, packet))
|
||||||
return;
|
return;
|
||||||
|
@ -429,7 +429,7 @@ static void route_ipv4(node_t *source, vpn_packet_t *packet) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!subnet->owner) {
|
if (!subnet->owner) {
|
||||||
broadcast_packet_helper(source, packet);
|
route_broadcast(source, packet);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -614,7 +614,7 @@ static void route_ipv6(node_t *source, vpn_packet_t *packet) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!subnet->owner) {
|
if (!subnet->owner) {
|
||||||
broadcast_packet_helper(source, packet);
|
route_broadcast(source, packet);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -886,7 +886,7 @@ static void route_mac(node_t *source, vpn_packet_t *packet) {
|
||||||
subnet = lookup_subnet_mac(NULL, &dest);
|
subnet = lookup_subnet_mac(NULL, &dest);
|
||||||
|
|
||||||
if(!subnet || !subnet->owner) {
|
if(!subnet || !subnet->owner) {
|
||||||
broadcast_packet_helper(source, packet);
|
route_broadcast(source, packet);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1052,7 +1052,7 @@ void route(node_t *source, vpn_packet_t *packet) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RMODE_HUB:
|
case RMODE_HUB:
|
||||||
broadcast_packet_helper(source, packet);
|
route_broadcast(source, packet);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue