Add DHCPv6 functionality.
[l2tpns.git] / ipv6_u.h
diff --git a/ipv6_u.h b/ipv6_u.h
new file mode 100644 (file)
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__ */