Order includes in destiny
This commit is contained in:
parent
94217d03e8
commit
4825ec21b9
@ -19,13 +19,14 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <vtimer.h>
|
|
||||||
#include "udp.h"
|
|
||||||
#include "tcp.h"
|
|
||||||
#include "tcp_timer.h"
|
|
||||||
#include "destiny.h"
|
#include "destiny.h"
|
||||||
|
#include "vtimer.h"
|
||||||
|
|
||||||
#include "socket.h"
|
#include "socket.h"
|
||||||
|
#include "tcp.h"
|
||||||
|
#include "tcp_timer.h"
|
||||||
|
#include "udp.h"
|
||||||
|
|
||||||
char tcp_stack_buffer[TCP_STACK_SIZE];
|
char tcp_stack_buffer[TCP_STACK_SIZE];
|
||||||
char udp_stack_buffer[UDP_STACK_SIZE];
|
char udp_stack_buffer[UDP_STACK_SIZE];
|
||||||
|
|||||||
@ -23,7 +23,9 @@
|
|||||||
#define DESTINY_SOCKET_H
|
#define DESTINY_SOCKET_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "ipv6.h"
|
#include "ipv6.h"
|
||||||
|
|
||||||
#include "destiny/in.h"
|
#include "destiny/in.h"
|
||||||
|
|
||||||
typedef uint8_t sa_family_t; ///< POSIX compatible type for address family.
|
typedef uint8_t sa_family_t; ///< POSIX compatible type for address family.
|
||||||
|
|||||||
@ -7,9 +7,13 @@
|
|||||||
|
|
||||||
#include <thread.h>
|
#include <thread.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "msg_help.h"
|
|
||||||
|
#include "thread.h"
|
||||||
|
|
||||||
#include "tcp_timer.h"
|
#include "tcp_timer.h"
|
||||||
|
|
||||||
|
#include "msg_help.h"
|
||||||
|
|
||||||
void block_continue_thread(void)
|
void block_continue_thread(void)
|
||||||
{
|
{
|
||||||
// msg_t recv_m;
|
// msg_t recv_m;
|
||||||
|
|||||||
@ -8,6 +8,8 @@
|
|||||||
#ifndef MSG_HELP_H_
|
#ifndef MSG_HELP_H_
|
||||||
#define MSG_HELP_H_
|
#define MSG_HELP_H_
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
// Function IDs
|
// Function IDs
|
||||||
#define FID_SIXLOWIP_TCP 0
|
#define FID_SIXLOWIP_TCP 0
|
||||||
#define FID_SIXLOWIP_UDP 1
|
#define FID_SIXLOWIP_UDP 1
|
||||||
|
|||||||
@ -15,22 +15,25 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <thread.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "ipv6.h"
|
#include <stdio.h>
|
||||||
#include "udp.h"
|
#include <stdlib.h>
|
||||||
#include "tcp.h"
|
#include <string.h>
|
||||||
#include "vtimer.h"
|
|
||||||
#include "hwtimer.h"
|
#include "hwtimer.h"
|
||||||
#include "msg_help.h"
|
#include "ipv6.h"
|
||||||
#include "tcp_timer.h"
|
#include "thread.h"
|
||||||
#include "tcp_hc.h"
|
#include "vtimer.h"
|
||||||
|
|
||||||
#include "../net_help/net_help.h"
|
#include "../net_help/net_help.h"
|
||||||
|
|
||||||
|
#include "msg_help.h"
|
||||||
|
#include "tcp.h"
|
||||||
|
#include "tcp_hc.h"
|
||||||
|
#include "tcp_timer.h"
|
||||||
|
#include "udp.h"
|
||||||
|
|
||||||
#include "socket.h"
|
#include "socket.h"
|
||||||
|
|
||||||
#define EPHEMERAL_PORTS 49152
|
#define EPHEMERAL_PORTS 49152
|
||||||
|
|||||||
@ -1,8 +1,10 @@
|
|||||||
#ifndef _DESTINY_SOCKET
|
#ifndef _DESTINY_SOCKET
|
||||||
#define _DESTINY_SOCKET
|
#define _DESTINY_SOCKET
|
||||||
#include "destiny/socket.h"
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
|
|
||||||
|
#include "destiny/socket.h"
|
||||||
|
|
||||||
#include "tcp.h"
|
#include "tcp.h"
|
||||||
#include "udp.h"
|
#include "udp.h"
|
||||||
|
|
||||||
|
|||||||
@ -15,23 +15,25 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <thread.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "vtimer.h"
|
|
||||||
#include "tcp_timer.h"
|
|
||||||
#include "tcp_hc.h"
|
|
||||||
#include "tcp.h"
|
|
||||||
#include "destiny/in.h"
|
|
||||||
#include "msg_help.h"
|
|
||||||
#include "../net_help/net_help.h"
|
|
||||||
#include "sixlowpan.h"
|
#include "sixlowpan.h"
|
||||||
|
#include "thread.h"
|
||||||
|
#include "vtimer.h"
|
||||||
|
|
||||||
|
#include "destiny/in.h"
|
||||||
|
|
||||||
|
#include "../net_help/net_help.h"
|
||||||
|
|
||||||
|
#include "msg_help.h"
|
||||||
#include "socket.h"
|
#include "socket.h"
|
||||||
|
#include "tcp_hc.h"
|
||||||
|
#include "tcp_timer.h"
|
||||||
|
|
||||||
|
#include "tcp.h"
|
||||||
|
|
||||||
void printTCPHeader(tcp_hdr_t *tcp_header)
|
void printTCPHeader(tcp_hdr_t *tcp_header)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -18,6 +18,8 @@
|
|||||||
#ifndef TCP_H_
|
#ifndef TCP_H_
|
||||||
#define TCP_H_
|
#define TCP_H_
|
||||||
|
|
||||||
|
#include "ipv6.h"
|
||||||
|
|
||||||
#define TCP_HDR_LEN 20
|
#define TCP_HDR_LEN 20
|
||||||
|
|
||||||
#define TCP_EOO_OPTION 0x00 // End of option list
|
#define TCP_EOO_OPTION 0x00 // End of option list
|
||||||
@ -78,8 +80,6 @@ enum tcp_codes {
|
|||||||
|
|
||||||
#define TCP_STACK_SIZE KERNEL_CONF_STACKSIZE_DEFAULT
|
#define TCP_STACK_SIZE KERNEL_CONF_STACKSIZE_DEFAULT
|
||||||
|
|
||||||
#include "ipv6.h"
|
|
||||||
|
|
||||||
typedef struct __attribute__((packed)) tcp_mms_o_t {
|
typedef struct __attribute__((packed)) tcp_mms_o_t {
|
||||||
uint8_t kind;
|
uint8_t kind;
|
||||||
uint8_t len;
|
uint8_t len;
|
||||||
|
|||||||
@ -16,16 +16,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#include "tcp_hc.h"
|
|
||||||
#include "tcp.h"
|
|
||||||
#include "ipv6.h"
|
#include "ipv6.h"
|
||||||
|
|
||||||
#include "../net_help/net_help.h"
|
#include "../net_help/net_help.h"
|
||||||
|
|
||||||
#include "socket.h"
|
#include "socket.h"
|
||||||
|
#include "tcp.h"
|
||||||
|
|
||||||
|
#include "tcp_hc.h"
|
||||||
|
|
||||||
#ifdef TCP_HC
|
#ifdef TCP_HC
|
||||||
|
|
||||||
|
|||||||
@ -8,10 +8,12 @@
|
|||||||
#ifndef TCP_HC_H_
|
#ifndef TCP_HC_H_
|
||||||
#define TCP_HC_H_
|
#define TCP_HC_H_
|
||||||
|
|
||||||
#include "tcp.h"
|
|
||||||
#include "sixlowpan.h"
|
#include "sixlowpan.h"
|
||||||
|
|
||||||
#include "destiny/socket.h"
|
#include "destiny/socket.h"
|
||||||
|
|
||||||
|
#include "tcp.h"
|
||||||
|
|
||||||
#ifdef TCP_HC
|
#ifdef TCP_HC
|
||||||
|
|
||||||
#define FULL_HEADER 1
|
#define FULL_HEADER 1
|
||||||
|
|||||||
@ -15,21 +15,23 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <thread.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "tcp_timer.h"
|
#include <stdio.h>
|
||||||
#include "msg_help.h"
|
#include <stdlib.h>
|
||||||
#include "vtimer.h"
|
#include <string.h>
|
||||||
#include "thread.h"
|
|
||||||
#include "destiny.h"
|
|
||||||
#include "sixlowpan.h"
|
|
||||||
|
|
||||||
|
#include "sixlowpan.h"
|
||||||
|
#include "thread.h"
|
||||||
|
#include "vtimer.h"
|
||||||
|
|
||||||
|
#include "destiny.h"
|
||||||
|
|
||||||
|
#include "msg_help.h"
|
||||||
#include "socket.h"
|
#include "socket.h"
|
||||||
|
|
||||||
|
#include "tcp_timer.h"
|
||||||
|
|
||||||
|
|
||||||
void handle_synchro_timeout(socket_internal_t *current_socket)
|
void handle_synchro_timeout(socket_internal_t *current_socket)
|
||||||
{
|
{
|
||||||
msg_t send;
|
msg_t send;
|
||||||
|
|||||||
@ -15,21 +15,23 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <thread.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "udp.h"
|
|
||||||
#include "msg.h"
|
|
||||||
#include "ipv6.h"
|
#include "ipv6.h"
|
||||||
|
#include "msg.h"
|
||||||
#include "sixlowpan.h"
|
#include "sixlowpan.h"
|
||||||
#include "destiny/in.h"
|
#include "thread.h"
|
||||||
#include "../net_help/net_help.h"
|
|
||||||
#include "msg_help.h"
|
|
||||||
|
|
||||||
|
#include "destiny/in.h"
|
||||||
|
|
||||||
|
#include "../net_help/net_help.h"
|
||||||
|
|
||||||
|
#include "msg_help.h"
|
||||||
#include "socket.h"
|
#include "socket.h"
|
||||||
|
|
||||||
|
#include "udp.h"
|
||||||
|
|
||||||
uint16_t udp_csum(ipv6_hdr_t *ipv6_header, udp_hdr_t *udp_header)
|
uint16_t udp_csum(ipv6_hdr_t *ipv6_header, udp_hdr_t *udp_header)
|
||||||
{
|
{
|
||||||
uint16_t sum;
|
uint16_t sum;
|
||||||
|
|||||||
@ -25,12 +25,12 @@
|
|||||||
#ifndef UDP_H_
|
#ifndef UDP_H_
|
||||||
#define UDP_H_
|
#define UDP_H_
|
||||||
|
|
||||||
|
#include "ipv6.h"
|
||||||
|
|
||||||
#define UDP_HDR_LEN 8
|
#define UDP_HDR_LEN 8
|
||||||
|
|
||||||
#define UDP_STACK_SIZE KERNEL_CONF_STACKSIZE_DEFAULT
|
#define UDP_STACK_SIZE KERNEL_CONF_STACKSIZE_DEFAULT
|
||||||
|
|
||||||
#include "ipv6.h"
|
|
||||||
|
|
||||||
typedef struct __attribute__((packed)) udp_h_t {
|
typedef struct __attribute__((packed)) udp_h_t {
|
||||||
uint16_t src_port;
|
uint16_t src_port;
|
||||||
uint16_t dst_port;
|
uint16_t dst_port;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user