aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_tun_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_tun_lib.h')
-rw-r--r--src/include/gnunet_tun_lib.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/gnunet_tun_lib.h b/src/include/gnunet_tun_lib.h
index dc6f01e1e..ae16bc65f 100644
--- a/src/include/gnunet_tun_lib.h
+++ b/src/include/gnunet_tun_lib.h
@@ -148,4 +148,21 @@ struct GNUNET_TUN_DnsHeader
148GNUNET_NETWORK_STRUCT_END 148GNUNET_NETWORK_STRUCT_END
149 149
150 150
151/**
152 * Initialize an IPv4 header.
153 *
154 * @param ip header to initialize
155 * @param protocol protocol to use (i.e. IPPROTO_UDP)
156 * @param payload_length number of bytes of payload that follow (excluding IPv4 header)
157 * @param src source IP address to use
158 * @param dst destination IP address to use
159 */
160void
161GNUNET_TUN_initialize_ipv4_header (struct GNUNET_TUN_IPv4Header *ip,
162 uint8_t protocol,
163 uint16_t payload_length,
164 const struct in_addr *src,
165 const struct in_addr *dst);
166
167
151#endif 168#endif