From 519d63bedbdcc533dd7839aae02b4d7bc2debfb0 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 27 Dec 2003 16:32:52 +0000 Subject: [PATCH] Don't forget to update destination MAC address. --- src/net_packet.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.39.5