projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40374d3
)
Yes, I know.
author
Philipp Tölke
<toelke@in.tum.de>
Fri, 4 Feb 2011 12:56:56 +0000
(12:56 +0000)
committer
Philipp Tölke
<toelke@in.tum.de>
Fri, 4 Feb 2011 12:56:56 +0000
(12:56 +0000)
src/vpn/gnunet-daemon-vpn.c
patch
|
blob
|
history
diff --git
a/src/vpn/gnunet-daemon-vpn.c
b/src/vpn/gnunet-daemon-vpn.c
index ce3da8ccd01c1fb685468d6a3e28b17d77c51671..9a6bc90b658d2ae0a00c4da26a767e88e76dd2c6 100644
(file)
--- a/
src/vpn/gnunet-daemon-vpn.c
+++ b/
src/vpn/gnunet-daemon-vpn.c
@@
-404,8
+404,7
@@
receive_udp_back (void *cls, struct GNUNET_MESH_Tunnel* tunnel,
unsigned int i;
for (i = 0; i < 16; i++)
pkt6->ip6_hdr.sadr[15-i] = addr[i];
- char temp_addr[] = {0x12, 0x34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1};
- memcpy(pkt6->ip6_hdr.dadr, temp_addr, 16);
+ inet_pton (AF_INET6, "1234::1", pkt6->ip6_hdr.dadr);
memcpy(&pkt6->udp_hdr, pkt, ntohs(pkt->len));