diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-17 19:30:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-17 19:30:12 +0000 |
commit | e0d8c3f1c05ab0cb218d7182c723298f7e981b58 (patch) | |
tree | b33c36503906c1ea96f11896db1d95603468e9a4 /src/exit/gnunet-daemon-exit.c | |
parent | 72c3f26dc08bd15e7142b002116950fe79baa5a1 (diff) | |
download | gnunet-e0d8c3f1c05ab0cb218d7182c723298f7e981b58.tar.gz gnunet-e0d8c3f1c05ab0cb218d7182c723298f7e981b58.zip |
-move IPv6 header initialization to tun library
Diffstat (limited to 'src/exit/gnunet-daemon-exit.c')
-rw-r--r-- | src/exit/gnunet-daemon-exit.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c index a4a0f967d..664a86f23 100644 --- a/src/exit/gnunet-daemon-exit.c +++ b/src/exit/gnunet-daemon-exit.c | |||
@@ -1159,12 +1159,11 @@ prepare_ipv6_packet (const void *payload, size_t payload_length, | |||
1159 | return; | 1159 | return; |
1160 | } | 1160 | } |
1161 | 1161 | ||
1162 | pkt6->version = 6; | 1162 | GNUNET_TUN_initialize_ipv6_header (pkt6, |
1163 | pkt6->next_header = protocol; | 1163 | protocol, |
1164 | pkt6->payload_length = htons ((uint16_t) (len + sizeof (struct GNUNET_TUN_IPv6Header))); | 1164 | len, |
1165 | pkt6->hop_limit = 255; | 1165 | &dst_address->address.ipv6, |
1166 | pkt6->destination_address = dst_address->address.ipv6; | 1166 | &src_address->address.ipv6); |
1167 | pkt6->source_address = src_address->address.ipv6; | ||
1168 | 1167 | ||
1169 | switch (protocol) | 1168 | switch (protocol) |
1170 | { | 1169 | { |