Add DHCPv6 functionality.

This commit is contained in:
fendo 2014-09-11 16:19:57 +02:00
parent 786a8c4546
commit b3f40f41f7
36 changed files with 2430 additions and 546 deletions

16
ipv6_u.h Normal file
View file

@ -0,0 +1,16 @@
#ifndef __IPV6_U_H__
#define __IPV6_U_H__
struct ipv6_pseudo_hdr {
struct in6_addr src;
struct in6_addr dest;
uint32_t ulp_length;
uint32_t zero : 24;
uint32_t nexthdr : 8;
} __attribute__((packed));
// dhcp6.c
uint16_t ipv6_checksum(struct ipv6_pseudo_hdr *p_pshdr, uint8_t *buff, int lenbuff);
#endif /* __IPV6_U_H__ */