X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Froute.c;h=16423892fa58c479c987d520a26fa6dae1d7afd3;hp=5c69671ad30a7d55602569defe55db43eb970f9d;hb=92aefd25bf9e8e63f199cc252218f5c427f836b7;hpb=44834d030464bbe1f7733caba8d96c678f1d6cf2 diff --git a/src/route.c b/src/route.c index 5c69671a..16423892 100644 --- a/src/route.c +++ b/src/route.c @@ -104,7 +104,7 @@ static void learn_mac(mac_t *address) { avl_node_t *node; connection_t *c; - subnet = lookup_subnet_mac(address); + subnet = lookup_subnet_mac(myself, address); /* If we don't know this MAC address yet, store it */ @@ -705,7 +705,7 @@ static void route_mac(node_t *source, vpn_packet_t *packet) { /* Lookup destination address */ memcpy(&dest, &packet->data[0], sizeof dest); - subnet = lookup_subnet_mac(&dest); + subnet = lookup_subnet_mac(NULL, &dest); if(!subnet) { broadcast_packet(source, packet);