From: Guus Sliepen Date: Sat, 27 Dec 2003 16:32:52 +0000 (+0000) Subject: Don't forget to update destination MAC address. X-Git-Tag: release-1.0.3~37^2~12 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=519d63bedbdcc533dd7839aae02b4d7bc2debfb0;hp=aebc97a77f37ec63fbd36721f9b284c975e54270;p=tinc Don't forget to update destination MAC address. --- diff --git a/src/net_packet.c b/src/net_packet.c index 8753bf65..255453e9 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: net_packet.c,v 1.1.2.48 2003/12/24 10:48:14 guus Exp $ + $Id: net_packet.c,v 1.1.2.49 2003/12/27 16:32:52 guus Exp $ */ #include "system.h" @@ -35,6 +35,7 @@ #include "conf.h" #include "connection.h" #include "device.h" +#include "ethernet.h" #include "event.h" #include "graph.h" #include "list.h" @@ -412,6 +413,8 @@ void send_packet(const node_t *n, vpn_packet_t *packet) cp(); if(n == myself) { + if(overwrite_mac) + memcpy(packet->data, mymac.x, ETH_ALEN); write_packet(packet); return; }