X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/786a8c4546c4a28f21d8995567e6f8f28f2eb053..b3f40f41f7de7a383c6f1170e546d0b09cc57338:/ipv6_u.h diff --git a/ipv6_u.h b/ipv6_u.h new file mode 100644 index 0000000..6c1c7b5 --- /dev/null +++ b/ipv6_u.h @@ -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__ */