1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/net/destiny/udp.h
Oliver 1465da2e84 [projects tlayer]
- Added: Close_TCP, TCP_Performance test, UDP_Performance test

[sys net destiny]
- bugfixes
- Added: Simultaneous close, Memory protection for tcp timer thread

[sys net sixlowpan]
- Added: separate sending buffer (just a HACK workaround!)
2012-01-30 22:44:38 +01:00

33 lines
621 B
C

/*
* udp.h
*
* Created on: 05.09.2011
* Author: Oliver
*/
#ifndef UDP_H_
#define UDP_H_
#define UDP_HDR_LEN 8
// TODO: Probably stack size too high
#define UDP_STACK_SIZE 3072
#include "sys/net/sixlowpan/sixlowip.h"
typedef struct __attribute__ ((packed)) udp_h_t{
uint16_t src_port;
uint16_t dst_port;
uint16_t length;
uint16_t checksum;
} udp_hdr_t;
// uint8_t buffer_udp[BUFFER_SIZE];
char udp_stack_buffer[UDP_STACK_SIZE];
uint16_t udp_csum(ipv6_hdr_t *ipv6_header, udp_hdr_t *udp_header);
void udp_packet_handler(void);
#endif /* UDP_H_ */