+connection_t *route_mac(vpn_packet_t *packet)
+{
+ connection_t *cl;
+cp
+ cl = lookup_subnet_mac((mac_t *)(&packet.data[6]));
+ if(!cl)
+ if(debug_lvl >= DEBUG_TRAFFIC)
+ {
+ syslog(LOG_WARNING, _("Cannot route packet: unknown destination address %x:%x:%x:%x:%x:%x"),
+ packet.data[6],
+ packet.data[7],
+ packet.data[8],
+ packet.data[9],
+ packet.data[10],
+ packet.data[11]);
+ }
+cp
+ return cl;
+}
+
+
+connection_t *route_ipv4(vpn_packet_t *packet)