diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-17 11:54:31 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-17 11:54:31 +0100 |
commit | 500842f42c4e51c4c5fc3c1cdfc1c1f7166b2d0d (patch) | |
tree | 9a80967af02b49319d0ab406b0ec9fa3d31e13fd /src/cadet/gnunet-service-cadet_connection.c | |
parent | d0bb14e2a958f4f816c6c006dd8b7a979e6de289 (diff) | |
download | gnunet-500842f42c4e51c4c5fc3c1cdfc1c1f7166b2d0d.tar.gz gnunet-500842f42c4e51c4c5fc3c1cdfc1c1f7166b2d0d.zip |
more work on new CADET
Diffstat (limited to 'src/cadet/gnunet-service-cadet_connection.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index e727ef199..ffd98bf34 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c | |||
@@ -218,7 +218,7 @@ struct CadetConnection | |||
218 | /** | 218 | /** |
219 | * ID of the connection. | 219 | * ID of the connection. |
220 | */ | 220 | */ |
221 | struct GNUNET_CADET_Hash id; | 221 | struct GNUNET_CADET_ConnectionTunnelIdentifier id; |
222 | 222 | ||
223 | /** | 223 | /** |
224 | * Path being used for the tunnel. At the origin of the connection | 224 | * Path being used for the tunnel. At the origin of the connection |
@@ -1100,7 +1100,7 @@ send_broken (struct CadetConnection *c, | |||
1100 | * @param neighbor Peer to notify (neighbor who sent the connection). | 1100 | * @param neighbor Peer to notify (neighbor who sent the connection). |
1101 | */ | 1101 | */ |
1102 | static void | 1102 | static void |
1103 | send_broken_unknown (const struct GNUNET_CADET_Hash *connection_id, | 1103 | send_broken_unknown (const struct GNUNET_CADET_ConnectionTunnelIdentifier *connection_id, |
1104 | const struct GNUNET_PeerIdentity *id1, | 1104 | const struct GNUNET_PeerIdentity *id1, |
1105 | const struct GNUNET_PeerIdentity *id2, | 1105 | const struct GNUNET_PeerIdentity *id2, |
1106 | struct CadetPeer *neighbor) | 1106 | struct CadetPeer *neighbor) |
@@ -1836,7 +1836,7 @@ add_to_peer (struct CadetConnection *c, | |||
1836 | static void | 1836 | static void |
1837 | log_message (const struct GNUNET_MessageHeader *message, | 1837 | log_message (const struct GNUNET_MessageHeader *message, |
1838 | const struct CadetPeer *peer, | 1838 | const struct CadetPeer *peer, |
1839 | const struct GNUNET_CADET_Hash *conn_id) | 1839 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *conn_id) |
1840 | { | 1840 | { |
1841 | uint16_t size; | 1841 | uint16_t size; |
1842 | uint16_t type; | 1842 | uint16_t type; |
@@ -1874,7 +1874,7 @@ void | |||
1874 | GCC_handle_create (struct CadetPeer *peer, | 1874 | GCC_handle_create (struct CadetPeer *peer, |
1875 | const struct GNUNET_CADET_ConnectionCreate *msg) | 1875 | const struct GNUNET_CADET_ConnectionCreate *msg) |
1876 | { | 1876 | { |
1877 | const struct GNUNET_CADET_Hash *cid; | 1877 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *cid; |
1878 | struct GNUNET_PeerIdentity *id; | 1878 | struct GNUNET_PeerIdentity *id; |
1879 | struct CadetPeerPath *path; | 1879 | struct CadetPeerPath *path; |
1880 | struct CadetPeer *dest_peer; | 1880 | struct CadetPeer *dest_peer; |
@@ -2409,7 +2409,7 @@ GCC_handle_poll (struct CadetPeer *peer, | |||
2409 | */ | 2409 | */ |
2410 | static int | 2410 | static int |
2411 | check_message (const struct GNUNET_MessageHeader *message, | 2411 | check_message (const struct GNUNET_MessageHeader *message, |
2412 | const struct GNUNET_CADET_Hash* cid, | 2412 | const struct GNUNET_CADET_ConnectionTunnelIdentifier* cid, |
2413 | struct CadetConnection *c, | 2413 | struct CadetConnection *c, |
2414 | struct CadetPeer *sender, | 2414 | struct CadetPeer *sender, |
2415 | uint32_t pid) | 2415 | uint32_t pid) |
@@ -2534,7 +2534,7 @@ void | |||
2534 | GCC_handle_kx (struct CadetPeer *peer, | 2534 | GCC_handle_kx (struct CadetPeer *peer, |
2535 | const struct GNUNET_CADET_KX *msg) | 2535 | const struct GNUNET_CADET_KX *msg) |
2536 | { | 2536 | { |
2537 | const struct GNUNET_CADET_Hash* cid; | 2537 | const struct GNUNET_CADET_ConnectionTunnelIdentifier* cid; |
2538 | struct CadetConnection *c; | 2538 | struct CadetConnection *c; |
2539 | int fwd; | 2539 | int fwd; |
2540 | 2540 | ||
@@ -2591,7 +2591,7 @@ void | |||
2591 | GCC_handle_encrypted (struct CadetPeer *peer, | 2591 | GCC_handle_encrypted (struct CadetPeer *peer, |
2592 | const struct GNUNET_CADET_Encrypted *msg) | 2592 | const struct GNUNET_CADET_Encrypted *msg) |
2593 | { | 2593 | { |
2594 | const struct GNUNET_CADET_Hash* cid; | 2594 | const struct GNUNET_CADET_ConnectionTunnelIdentifier* cid; |
2595 | struct CadetConnection *c; | 2595 | struct CadetConnection *c; |
2596 | uint32_t pid; | 2596 | uint32_t pid; |
2597 | int fwd; | 2597 | int fwd; |
@@ -2734,7 +2734,7 @@ GCC_shutdown (void) | |||
2734 | * NULL in case of error: own id not in path, wrong neighbors, ... | 2734 | * NULL in case of error: own id not in path, wrong neighbors, ... |
2735 | */ | 2735 | */ |
2736 | struct CadetConnection * | 2736 | struct CadetConnection * |
2737 | GCC_new (const struct GNUNET_CADET_Hash *cid, | 2737 | GCC_new (const struct GNUNET_CADET_ConnectionTunnelIdentifier *cid, |
2738 | struct CadetTunnel *t, | 2738 | struct CadetTunnel *t, |
2739 | struct CadetPeerPath *path, | 2739 | struct CadetPeerPath *path, |
2740 | unsigned int own_pos) | 2740 | unsigned int own_pos) |
@@ -2871,7 +2871,7 @@ GCC_destroy (struct CadetConnection *c) | |||
2871 | * | 2871 | * |
2872 | * @return ID of the connection. | 2872 | * @return ID of the connection. |
2873 | */ | 2873 | */ |
2874 | const struct GNUNET_CADET_Hash * | 2874 | const struct GNUNET_CADET_ConnectionTunnelIdentifier * |
2875 | GCC_get_id (const struct CadetConnection *c) | 2875 | GCC_get_id (const struct CadetConnection *c) |
2876 | { | 2876 | { |
2877 | return &c->id; | 2877 | return &c->id; |