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

24 lines
466 B
C
Raw Normal View History

/* 6LoWPAN IP header file */
#include <stdint.h>
#define IPV6_VERSION 0x60
#define ICMP_NEXTHEADER 0x3A
#define NEIGHBOR_DISCOVERY_HOPLIMIT 255
typedef struct icmp_hdr{
uint8_t type;
uint8_t code;
uint16_t checksum;
} icmp_hdr;
typedef struct ip_hdr{
uint8_t version_trafficclass;
uint8_t trafficclass_flowlabel;
uint16_t flowlabel;
uint16_t length;
uint8_t nextheader;
uint8_t hoplimit;
} ip_hdr;