diff options
Diffstat (limited to 'src/include/gnunet_tun_lib.h')
-rw-r--r-- | src/include/gnunet_tun_lib.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/gnunet_tun_lib.h b/src/include/gnunet_tun_lib.h index ae16bc65f..89cfdd2b3 100644 --- a/src/include/gnunet_tun_lib.h +++ b/src/include/gnunet_tun_lib.h | |||
@@ -165,4 +165,21 @@ GNUNET_TUN_initialize_ipv4_header (struct GNUNET_TUN_IPv4Header *ip, | |||
165 | const struct in_addr *dst); | 165 | const struct in_addr *dst); |
166 | 166 | ||
167 | 167 | ||
168 | /** | ||
169 | * Initialize an IPv6 header. | ||
170 | * | ||
171 | * @param ip header to initialize | ||
172 | * @param protocol protocol to use (i.e. IPPROTO_UDP) | ||
173 | * @param payload_length number of bytes of payload that follow (excluding IPv4 header) | ||
174 | * @param src source IP address to use | ||
175 | * @param dst destination IP address to use | ||
176 | */ | ||
177 | void | ||
178 | GNUNET_TUN_initialize_ipv6_header (struct GNUNET_TUN_IPv6Header *ip, | ||
179 | uint8_t protocol, | ||
180 | uint16_t payload_length, | ||
181 | const struct in6_addr *src, | ||
182 | const struct in6_addr *dst); | ||
183 | |||
184 | |||
168 | #endif | 185 | #endif |