diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-01-21 14:14:42 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-01-21 14:14:42 +0100 |
commit | 634aea297cc983c3d70f65a004f698f215abe590 (patch) | |
tree | c337abee0cf6e15b14785efcfc6cec49883a92b7 /src/transport/transport_api2_communication.c | |
parent | 7ed02994541af600b0d080829e944ab414445dcc (diff) | |
download | gnunet-634aea297cc983c3d70f65a004f698f215abe590.tar.gz gnunet-634aea297cc983c3d70f65a004f698f215abe590.zip |
more work on tng
Diffstat (limited to 'src/transport/transport_api2_communication.c')
-rw-r--r-- | src/transport/transport_api2_communication.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/transport/transport_api2_communication.c b/src/transport/transport_api2_communication.c index 1a176e68f..a816ecb67 100644 --- a/src/transport/transport_api2_communication.c +++ b/src/transport/transport_api2_communication.c | |||
@@ -274,11 +274,6 @@ struct GNUNET_TRANSPORT_QueueHandle | |||
274 | enum GNUNET_TRANSPORT_ConnectionStatus cs; | 274 | enum GNUNET_TRANSPORT_ConnectionStatus cs; |
275 | 275 | ||
276 | /** | 276 | /** |
277 | * How many hops is the target away (DV-only) | ||
278 | */ | ||
279 | uint32_t distance; | ||
280 | |||
281 | /** | ||
282 | * ID for this queue when talking to the transport service. | 277 | * ID for this queue when talking to the transport service. |
283 | */ | 278 | */ |
284 | uint32_t queue_id; | 279 | uint32_t queue_id; |
@@ -418,7 +413,6 @@ send_add_queue (struct GNUNET_TRANSPORT_QueueHandle *qh) | |||
418 | aqm->nt = htonl ((uint32_t) qh->nt); | 413 | aqm->nt = htonl ((uint32_t) qh->nt); |
419 | aqm->mtu = htonl (qh->mtu); | 414 | aqm->mtu = htonl (qh->mtu); |
420 | aqm->cs = htonl ((uint32_t) qh->cs); | 415 | aqm->cs = htonl ((uint32_t) qh->cs); |
421 | aqm->distance = htonl (qh->distance); | ||
422 | memcpy (&aqm[1], | 416 | memcpy (&aqm[1], |
423 | qh->address, | 417 | qh->address, |
424 | strlen (qh->address) + 1); | 418 | strlen (qh->address) + 1); |
@@ -956,7 +950,6 @@ GNUNET_TRANSPORT_communicator_receive (struct GNUNET_TRANSPORT_CommunicatorHandl | |||
956 | * sending is not supported, SIZE_MAX for no MTU | 950 | * sending is not supported, SIZE_MAX for no MTU |
957 | * @param nt which network type does the @a address belong to? | 951 | * @param nt which network type does the @a address belong to? |
958 | * @param cc what characteristics does the communicator have? | 952 | * @param cc what characteristics does the communicator have? |
959 | * @param distance how many hops does this queue use (DV-only)? | ||
960 | * @param cs what is the connection status of the queue? | 953 | * @param cs what is the connection status of the queue? |
961 | * @param mq message queue of the @a peer | 954 | * @param mq message queue of the @a peer |
962 | * @return API handle identifying the new MQ | 955 | * @return API handle identifying the new MQ |
@@ -967,7 +960,6 @@ GNUNET_TRANSPORT_communicator_mq_add (struct GNUNET_TRANSPORT_CommunicatorHandle | |||
967 | const char *address, | 960 | const char *address, |
968 | uint32_t mtu, | 961 | uint32_t mtu, |
969 | enum GNUNET_NetworkType nt, | 962 | enum GNUNET_NetworkType nt, |
970 | uint32_t distance, | ||
971 | enum GNUNET_TRANSPORT_ConnectionStatus cs, | 963 | enum GNUNET_TRANSPORT_ConnectionStatus cs, |
972 | struct GNUNET_MQ_Handle *mq) | 964 | struct GNUNET_MQ_Handle *mq) |
973 | { | 965 | { |
@@ -979,7 +971,6 @@ GNUNET_TRANSPORT_communicator_mq_add (struct GNUNET_TRANSPORT_CommunicatorHandle | |||
979 | qh->address = GNUNET_strdup (address); | 971 | qh->address = GNUNET_strdup (address); |
980 | qh->nt = nt; | 972 | qh->nt = nt; |
981 | qh->mtu = mtu; | 973 | qh->mtu = mtu; |
982 | qh->distance = distance; | ||
983 | qh->cs = cs; | 974 | qh->cs = cs; |
984 | qh->mq = mq; | 975 | qh->mq = mq; |
985 | qh->queue_id = ch->queue_gen++; | 976 | qh->queue_id = ch->queue_gen++; |