aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-17 14:43:24 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-17 14:43:24 +0000
commit7a82d22cda27f647039606254291528fb2d3025f (patch)
treef7af64bb3a677c6768ba7939587d7273d3035857 /src
parentfefc7bf98365946b0aedb106849996c122a55ae4 (diff)
downloadgnunet-7a82d22cda27f647039606254291528fb2d3025f.tar.gz
gnunet-7a82d22cda27f647039606254291528fb2d3025f.zip
-rename field
Diffstat (limited to 'src')
-rw-r--r--src/vpn/gnunet-service-vpn.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c
index afa577f98..2f7e16741 100644
--- a/src/vpn/gnunet-service-vpn.c
+++ b/src/vpn/gnunet-service-vpn.c
@@ -190,12 +190,12 @@ struct TunnelState
190 /** 190 /**
191 * Head of list of messages scheduled for transmission. 191 * Head of list of messages scheduled for transmission.
192 */ 192 */
193 struct TunnelMessageQueueEntry *head; 193 struct TunnelMessageQueueEntry *tmq_head;
194 194
195 /** 195 /**
196 * Tail of list of messages scheduled for transmission. 196 * Tail of list of messages scheduled for transmission.
197 */ 197 */
198 struct TunnelMessageQueueEntry *tail; 198 struct TunnelMessageQueueEntry *tmq_tail;
199 199
200 /** 200 /**
201 * Client that needs to be notified about the tunnel being 201 * Client that needs to be notified about the tunnel being
@@ -568,19 +568,19 @@ send_to_peer_notify_callback (void *cls, size_t size, void *buf)
568 ts->th = NULL; 568 ts->th = NULL;
569 if (NULL == buf) 569 if (NULL == buf)
570 return 0; 570 return 0;
571 tnq = ts->head; 571 tnq = ts->tmq_head;
572 GNUNET_assert (NULL != tnq); 572 GNUNET_assert (NULL != tnq);
573 GNUNET_assert (size >= tnq->len); 573 GNUNET_assert (size >= tnq->len);
574 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 574 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
575 "Sending %u bytes via mesh tunnel\n", 575 "Sending %u bytes via mesh tunnel\n",
576 tnq->len); 576 tnq->len);
577 GNUNET_CONTAINER_DLL_remove (ts->head, 577 GNUNET_CONTAINER_DLL_remove (ts->tmq_head,
578 ts->tail, 578 ts->tmq_tail,
579 tnq); 579 tnq);
580 memcpy (buf, tnq->msg, tnq->len); 580 memcpy (buf, tnq->msg, tnq->len);
581 ret = tnq->len; 581 ret = tnq->len;
582 GNUNET_free (tnq); 582 GNUNET_free (tnq);
583 if (NULL != (tnq = ts->head)) 583 if (NULL != (tnq = ts->tmq_head))
584 ts->th = GNUNET_MESH_notify_transmit_ready (ts->tunnel, 584 ts->th = GNUNET_MESH_notify_transmit_ready (ts->tunnel,
585 GNUNET_NO /* cork */, 585 GNUNET_NO /* cork */,
586 42 /* priority */, 586 42 /* priority */,
@@ -612,8 +612,8 @@ send_to_tunnel (struct TunnelMessageQueueEntry *tnq,
612 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 612 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
613 "Queueing %u bytes for transmission via mesh tunnel\n", 613 "Queueing %u bytes for transmission via mesh tunnel\n",
614 tnq->len); 614 tnq->len);
615 GNUNET_CONTAINER_DLL_insert_tail (ts->head, 615 GNUNET_CONTAINER_DLL_insert_tail (ts->tmq_head,
616 ts->tail, 616 ts->tmq_tail,
617 tnq); 617 tnq);
618 if (NULL == ts->th) 618 if (NULL == ts->th)
619 ts->th = GNUNET_MESH_notify_transmit_ready (ts->tunnel, 619 ts->th = GNUNET_MESH_notify_transmit_ready (ts->tunnel,
@@ -1967,10 +1967,10 @@ free_tunnel_state (struct TunnelState *ts)
1967 GNUNET_STATISTICS_update (stats, 1967 GNUNET_STATISTICS_update (stats,
1968 gettext_noop ("# Active tunnels"), 1968 gettext_noop ("# Active tunnels"),
1969 -1, GNUNET_NO); 1969 -1, GNUNET_NO);
1970 while (NULL != (tnq = ts->head)) 1970 while (NULL != (tnq = ts->tmq_head))
1971 { 1971 {
1972 GNUNET_CONTAINER_DLL_remove (ts->head, 1972 GNUNET_CONTAINER_DLL_remove (ts->tmq_head,
1973 ts->tail, 1973 ts->tmq_tail,
1974 tnq); 1974 tnq);
1975 GNUNET_free (tnq); 1975 GNUNET_free (tnq);
1976 } 1976 }