1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

[sys net destiny]

- minor fix concerning float calculations
This commit is contained in:
Oliver 2012-02-14 01:56:49 +01:00
parent 45a41bd189
commit 5176640664
5 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@
#ifndef DESTINY_H_
#define DESTINY_H_
//#define TCP_HC
#define TCP_HC
void init_transport_layer(void);

View File

@ -14,7 +14,7 @@
#include "in.h"
#include "sys/net/sixlowpan/sixlowip.h"
//#define TCP_HC
#define TCP_HC
/*
* Types

View File

@ -8,7 +8,7 @@
#ifndef TCP_H_
#define TCP_H_
//#define TCP_HC
#define TCP_HC
#define TCP_HDR_LEN 20

View File

@ -8,7 +8,7 @@
#ifndef TCP_HC_H_
#define TCP_HC_H_
//#define TCP_HC
#define TCP_HC
#include "tcp.h"
#include "sys/net/sixlowpan/sixlowip.h"

View File

@ -50,7 +50,7 @@ void handle_synchro_timeout(socket_internal_t *current_socket)
void handle_established(socket_internal_t *current_socket)
{
msg_t send;
uint32_t current_timeout = (uint32_t)(current_socket->socket_values.tcp_control.rto);
double current_timeout = current_socket->socket_values.tcp_control.rto;
uint8_t i;
if ((current_socket->socket_values.tcp_control.send_nxt > current_socket->socket_values.tcp_control.send_una) &&
(thread_getstatus(current_socket->send_pid) == STATUS_RECEIVE_BLOCKED))
@ -70,7 +70,7 @@ void handle_established(socket_internal_t *current_socket)
printReasBuffers();
current_socket->socket_values.tcp_control.no_of_retries++;
net_msg_send(&send, current_socket->send_pid, 0, TCP_RETRY);
printf("GOT NO ACK YET, %i. RETRY! Now: %lu Before: %lu, Diff: %lu, Cur Timeout: %lu\n", current_socket->socket_values.tcp_control.no_of_retries,
printf("GOT NO ACK YET, %i. RETRY! Now: %lu Before: %lu, Diff: %lu, Cur Timeout: %f\n", current_socket->socket_values.tcp_control.no_of_retries,
vtimer_now().microseconds, current_socket->socket_values.tcp_control.last_packet_time.microseconds,
vtimer_now().microseconds - current_socket->socket_values.tcp_control.last_packet_time.microseconds,
current_timeout);