diff options
author | ng0 <ng0@n0.is> | 2019-02-13 21:53:41 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-02-13 21:53:41 +0000 |
commit | 7285ae216aeb5dad89055085f2d7710c4ed5934e (patch) | |
tree | 8fe342cb10cd6c0ef5115ba761a07591ddaf2e05 /src/include | |
parent | 1104fccaef9483fb92303eb5ce854b971b1b8151 (diff) | |
parent | 94911c3e57d5f77ddf68032789244d0475955149 (diff) | |
download | gnunet-7285ae216aeb5dad89055085f2d7710c4ed5934e.tar.gz gnunet-7285ae216aeb5dad89055085f2d7710c4ed5934e.zip |
Merge branch 'master' of gnunet.org:gnunet
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_cadet_service.h | 21 | ||||
-rw-r--r-- | src/include/gnunet_hello_lib.h | 2 | ||||
-rw-r--r-- | src/include/gnunet_protocols.h | 33 | ||||
-rw-r--r-- | src/include/gnunet_transport_address_service.h | 4 |
4 files changed, 37 insertions, 23 deletions
diff --git a/src/include/gnunet_cadet_service.h b/src/include/gnunet_cadet_service.h index ac3d11216..b8326657d 100644 --- a/src/include/gnunet_cadet_service.h +++ b/src/include/gnunet_cadet_service.h | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -369,7 +369,7 @@ GNUNET_CADET_channel_get_info (struct GNUNET_CADET_Channel *channel, | |||
369 | 369 | ||
370 | /** | 370 | /** |
371 | * Internal details about a channel. | 371 | * Internal details about a channel. |
372 | */ | 372 | */ |
373 | struct GNUNET_CADET_ChannelInternals | 373 | struct GNUNET_CADET_ChannelInternals |
374 | { | 374 | { |
375 | /** | 375 | /** |
@@ -431,7 +431,7 @@ GNUNET_CADET_get_channel_cancel (struct GNUNET_CADET_ChannelMonitor *cm); | |||
431 | 431 | ||
432 | /** | 432 | /** |
433 | * Information we return per peer. | 433 | * Information we return per peer. |
434 | */ | 434 | */ |
435 | struct GNUNET_CADET_PeerListEntry | 435 | struct GNUNET_CADET_PeerListEntry |
436 | { | 436 | { |
437 | /** | 437 | /** |
@@ -446,7 +446,7 @@ struct GNUNET_CADET_PeerListEntry | |||
446 | 446 | ||
447 | /** | 447 | /** |
448 | * Number of disjoint known paths to @e peer. | 448 | * Number of disjoint known paths to @e peer. |
449 | */ | 449 | */ |
450 | unsigned int n_paths; | 450 | unsigned int n_paths; |
451 | 451 | ||
452 | /** | 452 | /** |
@@ -504,7 +504,7 @@ GNUNET_CADET_list_peers_cancel (struct GNUNET_CADET_PeersLister *pl); | |||
504 | 504 | ||
505 | /** | 505 | /** |
506 | * Detailed information we return per peer. | 506 | * Detailed information we return per peer. |
507 | */ | 507 | */ |
508 | struct GNUNET_CADET_PeerPathDetail | 508 | struct GNUNET_CADET_PeerPathDetail |
509 | { | 509 | { |
510 | /** | 510 | /** |
@@ -513,6 +513,11 @@ struct GNUNET_CADET_PeerPathDetail | |||
513 | struct GNUNET_PeerIdentity peer; | 513 | struct GNUNET_PeerIdentity peer; |
514 | 514 | ||
515 | /** | 515 | /** |
516 | * Offset of the target peer on the @e path. | ||
517 | */ | ||
518 | unsigned int target_offset; | ||
519 | |||
520 | /** | ||
516 | * Number of entries on the @e path. | 521 | * Number of entries on the @e path. |
517 | */ | 522 | */ |
518 | unsigned int path_length; | 523 | unsigned int path_length; |
@@ -583,7 +588,7 @@ struct GNUNET_CADET_TunnelDetails | |||
583 | 588 | ||
584 | /** | 589 | /** |
585 | * How many channels use the tunnel. | 590 | * How many channels use the tunnel. |
586 | */ | 591 | */ |
587 | uint32_t channels; | 592 | uint32_t channels; |
588 | 593 | ||
589 | /** | 594 | /** |
@@ -597,8 +602,8 @@ struct GNUNET_CADET_TunnelDetails | |||
597 | uint16_t estate; | 602 | uint16_t estate; |
598 | 603 | ||
599 | /** | 604 | /** |
600 | * What is our connectivity state? | 605 | * What is our connectivity state? |
601 | */ | 606 | */ |
602 | uint16_t cstate; | 607 | uint16_t cstate; |
603 | }; | 608 | }; |
604 | 609 | ||
diff --git a/src/include/gnunet_hello_lib.h b/src/include/gnunet_hello_lib.h index c2256fd0a..fcd422701 100644 --- a/src/include/gnunet_hello_lib.h +++ b/src/include/gnunet_hello_lib.h | |||
@@ -526,7 +526,7 @@ GNUNET_HELLO_extract_address (const void *raw, | |||
526 | * | 526 | * |
527 | * @param address a peer's address | 527 | * @param address a peer's address |
528 | * @return NULL if the address is mal-formed, otherwise the prefix | 528 | * @return NULL if the address is mal-formed, otherwise the prefix |
529 | */ | 529 | */ |
530 | char * | 530 | char * |
531 | GNUNET_HELLO_address_to_prefix (const char *address); | 531 | GNUNET_HELLO_address_to_prefix (const char *address); |
532 | 532 | ||
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index 793430184..29db8372f 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h | |||
@@ -3106,40 +3106,47 @@ extern "C" | |||
3106 | /** | 3106 | /** |
3107 | * Type of a fragment of a CORE message created by transport to adjust | 3107 | * Type of a fragment of a CORE message created by transport to adjust |
3108 | * message length to a queue's MTU. | 3108 | * message length to a queue's MTU. |
3109 | */ | 3109 | */ |
3110 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_FRAGMENT 1214 | 3110 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_FRAGMENT 1214 |
3111 | 3111 | ||
3112 | /** | 3112 | /** |
3113 | * Acknowledgement generated for a fragment. | 3113 | * Acknowledgement generated for a fragment. |
3114 | */ | 3114 | */ |
3115 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_FRAGMENT_ACK 1215 | 3115 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_FRAGMENT_ACK 1215 |
3116 | 3116 | ||
3117 | /** | 3117 | /** |
3118 | * Wrapper around non-fragmented CORE message used to measure RTT | 3118 | * Wrapper around non-fragmented CORE message used to measure RTT |
3119 | * and ensure reliability. | 3119 | * and ensure reliability. |
3120 | */ | 3120 | */ |
3121 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_RELIABILITY_BOX 1216 | 3121 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_RELIABILITY_BOX 1216 |
3122 | 3122 | ||
3123 | /** | 3123 | /** |
3124 | * Confirmation for a #GNUNET_MESSAGE_TYPE_TRANSPORT_RELIABILITY_BOX. | 3124 | * Confirmation for a #GNUNET_MESSAGE_TYPE_TRANSPORT_RELIABILITY_BOX. |
3125 | */ | 3125 | */ |
3126 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_RELIABILITY_ACK 1217 | 3126 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_RELIABILITY_ACK 1217 |
3127 | 3127 | ||
3128 | /** | 3128 | /** |
3129 | * Message sent for topology discovery at transport level. | 3129 | * Message sent for topology discovery at transport level. |
3130 | */ | 3130 | */ |
3131 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_LEARN 1218 | 3131 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_LEARN 1218 |
3132 | 3132 | ||
3133 | /** | 3133 | /** |
3134 | * Source-routed transport message based DV information gathered. | 3134 | * Source-routed transport message based DV information gathered. |
3135 | */ | 3135 | */ |
3136 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_BOX 1219 | 3136 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_BOX 1219 |
3137 | 3137 | ||
3138 | /** | 3138 | /** |
3139 | * Transport signalling incoming backchannel message to a communicator. | 3139 | * Transport signalling incoming backchannel message to a communicator. |
3140 | */ | 3140 | */ |
3141 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_BACKCHANNEL_INCOMING 1220 | 3141 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_BACKCHANNEL_INCOMING 1220 |
3142 | 3142 | ||
3143 | /** | ||
3144 | * We learned a possible network address of another peer. Transport | ||
3145 | * should consider verifying it, and if successful, remembering it | ||
3146 | * in the Peerstore. | ||
3147 | */ | ||
3148 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_CONSIDER_VERIFY 1221 | ||
3149 | |||
3143 | 3150 | ||
3144 | /** | 3151 | /** |
3145 | * Message sent to indicate to the transport that a monitor | 3152 | * Message sent to indicate to the transport that a monitor |
@@ -3230,7 +3237,7 @@ extern "C" | |||
3230 | 3237 | ||
3231 | /** | 3238 | /** |
3232 | * TCP communicator end of stream. | 3239 | * TCP communicator end of stream. |
3233 | */ | 3240 | */ |
3234 | #define GNUNET_MESSAGE_TYPE_COMMUNICATOR_TCP_FINISH 1452 | 3241 | #define GNUNET_MESSAGE_TYPE_COMMUNICATOR_TCP_FINISH 1452 |
3235 | 3242 | ||
3236 | /** | 3243 | /** |
diff --git a/src/include/gnunet_transport_address_service.h b/src/include/gnunet_transport_address_service.h index 86d0a423e..9f0717d00 100644 --- a/src/include/gnunet_transport_address_service.h +++ b/src/include/gnunet_transport_address_service.h | |||
@@ -90,11 +90,13 @@ GNUNET_TRANSPORT_address_disconnect (struct GNUNET_TRANSPORT_AddressHandle *ch); | |||
90 | * lost. | 90 | * lost. |
91 | * | 91 | * |
92 | * @param ch communicator handle | 92 | * @param ch communicator handle |
93 | * @param pid peer the address is for | ||
93 | * @param raw raw address data | 94 | * @param raw raw address data |
94 | * @param raw_size number of bytes in @a raw | 95 | * @param raw_size number of bytes in @a raw |
95 | */ | 96 | */ |
96 | void | 97 | void |
97 | GNUNET_TRANSPORT_address_try (struct GNUNET_TRANSPORT_CommunicatorHandle *ch, | 98 | GNUNET_TRANSPORT_address_try (struct GNUNET_TRANSPORT_AddressHandle *ch, |
99 | const struct GNUNET_PeerIdentity *pid, | ||
98 | const void *raw, | 100 | const void *raw, |
99 | const size_t raw_size); | 101 | const size_t raw_size); |
100 | 102 | ||