diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-08-02 03:02:47 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-08-02 03:02:47 +0000 |
commit | 5fd340ddc303679240ebb1c97bba1912309fc13c (patch) | |
tree | 30b2c110f48458d17b2924c4fc7f882565c9a464 /src | |
parent | f05dffb9c72236f4628bf6dfcc718af55cdd5904 (diff) | |
download | gnunet-5fd340ddc303679240ebb1c97bba1912309fc13c.tar.gz gnunet-5fd340ddc303679240ebb1c97bba1912309fc13c.zip |
- dead code
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/gnunet-service-mesh-enc.c | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/src/mesh/gnunet-service-mesh-enc.c b/src/mesh/gnunet-service-mesh-enc.c index 7b6bdf34d..7d4e1685d 100644 --- a/src/mesh/gnunet-service-mesh-enc.c +++ b/src/mesh/gnunet-service-mesh-enc.c | |||
@@ -1760,60 +1760,6 @@ send_core_connection_create (void *cls, size_t size, void *buf) | |||
1760 | 1760 | ||
1761 | 1761 | ||
1762 | /** | 1762 | /** |
1763 | * Function to send a create path packet to a peer. | ||
1764 | * | ||
1765 | * @param cls closure | ||
1766 | * @param size number of bytes available in buf | ||
1767 | * @param buf where the callee should write the message | ||
1768 | * @return number of bytes written to buf | ||
1769 | */ | ||
1770 | static size_t | ||
1771 | send_core_channel_create (void *cls, size_t size, void *buf) | ||
1772 | { | ||
1773 | // struct MeshChannel *ch = cls; | ||
1774 | // struct MeshTunnel2 *t = ch->t; | ||
1775 | // struct GNUNET_MESH_ConnectionCreate *msg; | ||
1776 | // struct GNUNET_PeerIdentity *peer_ptr; | ||
1777 | size_t size_needed; | ||
1778 | // uint32_t opt; | ||
1779 | // int i; | ||
1780 | // | ||
1781 | // GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending CHANNEL CREATE...\n"); | ||
1782 | // size_needed = | ||
1783 | // sizeof (struct GNUNET_MESH_ConnectionCreate) + | ||
1784 | // p->length * sizeof (struct GNUNET_PeerIdentity); | ||
1785 | // | ||
1786 | // if (size < size_needed || NULL == buf) | ||
1787 | // { | ||
1788 | // GNUNET_break (0); | ||
1789 | // return 0; | ||
1790 | // } | ||
1791 | // msg = (struct GNUNET_MESH_ConnectionCreate *) buf; | ||
1792 | // msg->header.size = htons (size_needed); | ||
1793 | // msg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_CONNECTION_CREATE); | ||
1794 | // msg->tid = ntohl (t->id.tid); | ||
1795 | // | ||
1796 | // opt = 0; | ||
1797 | // if (GNUNET_YES == ch->nobuffer) | ||
1798 | // opt |= GNUNET_MESH_OPTION_NOBUFFER; | ||
1799 | // if (GNUNET_YES == ch->reliable) | ||
1800 | // opt |= GNUNET_MESH_OPTION_RELIABLE; | ||
1801 | // msg->opt = htonl (opt); | ||
1802 | // msg->port = htonl (ch->port); | ||
1803 | // | ||
1804 | // peer_ptr = (struct GNUNET_PeerIdentity *) &msg[1]; | ||
1805 | // for (i = 0; i < p->length; i++) | ||
1806 | // { | ||
1807 | // GNUNET_PEER_resolve (p->peers[i], peer_ptr++); | ||
1808 | // } | ||
1809 | // | ||
1810 | // GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
1811 | // "CREATE PATH (%u bytes long) sent!\n", size_needed); | ||
1812 | return size_needed; | ||
1813 | } | ||
1814 | |||
1815 | |||
1816 | /** | ||
1817 | * Creates a path ack message in buf and frees all unused resources. | 1763 | * Creates a path ack message in buf and frees all unused resources. |
1818 | * | 1764 | * |
1819 | * @param cls closure (MeshTransmissionDescriptor) | 1765 | * @param cls closure (MeshTransmissionDescriptor) |
@@ -1916,20 +1862,6 @@ peer_get_short (const GNUNET_PEER_Id peer) | |||
1916 | 1862 | ||
1917 | 1863 | ||
1918 | /** | 1864 | /** |
1919 | * Select which PID to POLL for, to compensate for lost messages. | ||
1920 | * | ||
1921 | * @param pi Peer we want to poll. | ||
1922 | * | ||
1923 | * @return PID to use, (last sent). | ||
1924 | */ | ||
1925 | static uint32_t | ||
1926 | peer_get_first_pid (struct MeshPeer *p) | ||
1927 | { | ||
1928 | return p->fc->last_pid_sent; | ||
1929 | } | ||
1930 | |||
1931 | |||
1932 | /** | ||
1933 | * Get a cost of a path for a peer considering existing tunnel connections. | 1865 | * Get a cost of a path for a peer considering existing tunnel connections. |
1934 | * | 1866 | * |
1935 | * @param peer Peer towards which the path is considered. | 1867 | * @param peer Peer towards which the path is considered. |