projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't forget to update destination MAC address.
[tinc]
/
src
/
net_packet.c
diff --git
a/src/net_packet.c
b/src/net_packet.c
index
8753bf6
..
255453e
100644
(file)
--- 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.
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.4
8 2003/12/24 10:48:14
guus Exp $
+ $Id: net_packet.c,v 1.1.2.4
9 2003/12/27 16:32:52
guus Exp $
*/
#include "system.h"
*/
#include "system.h"
@@
-35,6
+35,7
@@
#include "conf.h"
#include "connection.h"
#include "device.h"
#include "conf.h"
#include "connection.h"
#include "device.h"
+#include "ethernet.h"
#include "event.h"
#include "graph.h"
#include "list.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) {
cp();
if(n == myself) {
+ if(overwrite_mac)
+ memcpy(packet->data, mymac.x, ETH_ALEN);
write_packet(packet);
return;
}
write_packet(packet);
return;
}