diff options
author | Philipp Tölke <toelke@in.tum.de> | 2010-11-17 08:55:36 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2010-11-17 08:55:36 +0000 |
commit | 7f26577b88816cd33b6b12114c47ec36cada6bc2 (patch) | |
tree | 2b50b647068666fb9b391480ffd4d6f1f25de9a1 /src | |
parent | fbbb198260d8de3021d8245670cd7e1d1adfe0e0 (diff) | |
download | gnunet-7f26577b88816cd33b6b12114c47ec36cada6bc2.tar.gz gnunet-7f26577b88816cd33b6b12114c47ec36cada6bc2.zip |
fold a bit
Diffstat (limited to 'src')
-rw-r--r-- | src/vpn/gnunet-daemon-vpn.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c index 023209e8f..1334800ab 100644 --- a/src/vpn/gnunet-daemon-vpn.c +++ b/src/vpn/gnunet-daemon-vpn.c | |||
@@ -134,6 +134,7 @@ static void dns_answer_handler(void* cls, const struct GNUNET_MessageHeader *msg | |||
134 | /** | 134 | /** |
135 | * Callback called by notify_transmit_ready; sends dns-queries or rehijack-messages | 135 | * Callback called by notify_transmit_ready; sends dns-queries or rehijack-messages |
136 | * to the service-dns | 136 | * to the service-dns |
137 | * {{{ | ||
137 | */ | 138 | */ |
138 | static size_t | 139 | static size_t |
139 | send_query(void* cls, size_t size, void* buf) { | 140 | send_query(void* cls, size_t size, void* buf) { |
@@ -181,9 +182,11 @@ send_query(void* cls, size_t size, void* buf) { | |||
181 | 182 | ||
182 | return len; | 183 | return len; |
183 | } | 184 | } |
185 | /* }}} */ | ||
184 | 186 | ||
185 | /** | 187 | /** |
186 | * Function scheduled as very last function, cleans up after us | 188 | * Function scheduled as very last function, cleans up after us |
189 | *{{{ | ||
187 | */ | 190 | */ |
188 | static void | 191 | static void |
189 | cleanup(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tskctx) { | 192 | cleanup(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tskctx) { |
@@ -205,9 +208,11 @@ cleanup(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tskctx) { | |||
205 | dns_connection = NULL; | 208 | dns_connection = NULL; |
206 | } | 209 | } |
207 | } | 210 | } |
211 | /*}}}*/ | ||
208 | 212 | ||
209 | /** | 213 | /** |
210 | * Start the helper-process | 214 | * Start the helper-process |
215 | * {{{ | ||
211 | */ | 216 | */ |
212 | static void | 217 | static void |
213 | start_helper_and_schedule(void *cls, | 218 | start_helper_and_schedule(void *cls, |
@@ -236,9 +241,11 @@ start_helper_and_schedule(void *cls, | |||
236 | 241 | ||
237 | GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, fh_from_helper, &helper_read, NULL); | 242 | GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, fh_from_helper, &helper_read, NULL); |
238 | } | 243 | } |
244 | /*}}}*/ | ||
239 | 245 | ||
240 | /** | 246 | /** |
241 | * Restart the helper-process | 247 | * Restart the helper-process |
248 | * {{{ | ||
242 | */ | 249 | */ |
243 | static void | 250 | static void |
244 | restart_helper(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tskctx) { | 251 | restart_helper(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tskctx) { |
@@ -254,9 +261,11 @@ restart_helper(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tskctx) { | |||
254 | /* Restart the helper */ | 261 | /* Restart the helper */ |
255 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, start_helper_and_schedule, NULL); | 262 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, start_helper_and_schedule, NULL); |
256 | } | 263 | } |
264 | /*}}}*/ | ||
257 | 265 | ||
258 | /** | 266 | /** |
259 | * Read from the helper-process | 267 | * Read from the helper-process |
268 | * {{{ | ||
260 | */ | 269 | */ |
261 | static void | 270 | static void |
262 | helper_read(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tsdkctx) { | 271 | helper_read(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tsdkctx) { |
@@ -279,6 +288,7 @@ helper_read(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tsdkctx) { | |||
279 | 288 | ||
280 | GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, fh_from_helper, &helper_read, NULL); | 289 | GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, fh_from_helper, &helper_read, NULL); |
281 | } | 290 | } |
291 | /*}}}*/ | ||
282 | 292 | ||
283 | /** | 293 | /** |
284 | * Calculate the checksum of an IPv4-Header | 294 | * Calculate the checksum of an IPv4-Header |