diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-10-07 10:11:29 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-10-07 10:11:29 +0000 |
commit | 6c83690184e6f258e61d8187ad5999f4f87f2e49 (patch) | |
tree | e64f62d92cd88b0fe5e663b1671934bd8f45f778 /src/include/gnunet_dnsstub_lib.h | |
parent | c787d89df7c64eceb6145b0a8847736641ea73ca (diff) | |
download | gnunet-6c83690184e6f258e61d8187ad5999f4f87f2e49.tar.gz gnunet-6c83690184e6f258e61d8187ad5999f4f87f2e49.zip |
enable clean up of NAT STUN state, prevents test_plugin_udp from segfaulting
Diffstat (limited to 'src/include/gnunet_dnsstub_lib.h')
-rw-r--r-- | src/include/gnunet_dnsstub_lib.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/include/gnunet_dnsstub_lib.h b/src/include/gnunet_dnsstub_lib.h index 54740ec69..164df18c6 100644 --- a/src/include/gnunet_dnsstub_lib.h +++ b/src/include/gnunet_dnsstub_lib.h | |||
@@ -65,12 +65,13 @@ GNUNET_DNSSTUB_stop (struct GNUNET_DNSSTUB_Context *ctx); | |||
65 | * @param cls closure | 65 | * @param cls closure |
66 | * @param rs socket that received the response | 66 | * @param rs socket that received the response |
67 | * @param dns dns response, never NULL | 67 | * @param dns dns response, never NULL |
68 | * @param dns_len number of bytes in 'dns' | 68 | * @param dns_len number of bytes in @a dns |
69 | */ | 69 | */ |
70 | typedef void (*GNUNET_DNSSTUB_ResultCallback)(void *cls, | 70 | typedef void |
71 | struct GNUNET_DNSSTUB_RequestSocket *rs, | 71 | (*GNUNET_DNSSTUB_ResultCallback)(void *cls, |
72 | const struct GNUNET_TUN_DnsHeader *dns, | 72 | struct GNUNET_DNSSTUB_RequestSocket *rs, |
73 | size_t dns_len); | 73 | const struct GNUNET_TUN_DnsHeader *dns, |
74 | size_t dns_len); | ||
74 | 75 | ||
75 | 76 | ||
76 | /** | 77 | /** |
@@ -82,7 +83,7 @@ typedef void (*GNUNET_DNSSTUB_ResultCallback)(void *cls, | |||
82 | * @param request DNS request to transmit | 83 | * @param request DNS request to transmit |
83 | * @param request_len number of bytes in msg | 84 | * @param request_len number of bytes in msg |
84 | * @param rc function to call with result | 85 | * @param rc function to call with result |
85 | * @param rc_cls closure for 'rc' | 86 | * @param rc_cls closure for @a rc |
86 | * @return socket used for the request, NULL on error | 87 | * @return socket used for the request, NULL on error |
87 | */ | 88 | */ |
88 | struct GNUNET_DNSSTUB_RequestSocket * | 89 | struct GNUNET_DNSSTUB_RequestSocket * |
@@ -102,7 +103,7 @@ GNUNET_DNSSTUB_resolve (struct GNUNET_DNSSTUB_Context *ctx, | |||
102 | * @param request DNS request to transmit | 103 | * @param request DNS request to transmit |
103 | * @param request_len number of bytes in msg | 104 | * @param request_len number of bytes in msg |
104 | * @param rc function to call with result | 105 | * @param rc function to call with result |
105 | * @param rc_cls closure for 'rc' | 106 | * @param rc_cls closure for @a rc |
106 | * @return socket used for the request, NULL on error | 107 | * @return socket used for the request, NULL on error |
107 | */ | 108 | */ |
108 | struct GNUNET_DNSSTUB_RequestSocket * | 109 | struct GNUNET_DNSSTUB_RequestSocket * |