From: Nikhil Chandru Rao Date: Wed, 28 Jun 2006 09:44:41 +0000 (+0000) Subject: IP6 specifications X-Git-Tag: v0.9.3~1224 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e60817fa7adcdbc439e0110b7147eba20fada524;p=thirdparty%2Fipxe.git IP6 specifications --- diff --git a/src/include/gpxe/ip6.h b/src/include/gpxe/ip6.h new file mode 100644 index 000000000..1ddba0a95 --- /dev/null +++ b/src/include/gpxe/ip6.h @@ -0,0 +1,37 @@ +#ifndef _GPXE_IP6_H +#define _GPXE_IP6_H + +/** @file + * + * IP6 protocol + * + */ + +#include + +/* IP6 constants */ + +#define IP6_VER 6 + +/* IP6 header */ + +struct ip6_header { + uint32_t vers:4, + traffic_class:8, + flow_label:20; + uint16_t payload_len; + uint8_t nxt_hdr; + uint8_t hop_limit; + struct in6_addr src; + struct in6_addr dest; +}; + +struct pk_buff; +struct net_device; +struct net_protocol; + +extern struct net_protocol ipv6_protocol; + +extern int ipv6_tx ( struct pk_buff *pkb, uint16_t trans_proto, struct in6_addr *dest ); + +#endif /* _GPXE_IP6_H */