diff options
author | Nikhil Chandru Rao | 2006-06-28 11:44:41 +0200 |
---|---|---|
committer | Nikhil Chandru Rao | 2006-06-28 11:44:41 +0200 |
commit | e60817fa7adcdbc439e0110b7147eba20fada524 (patch) | |
tree | fcdf14f38cd5ad6418b1b7d83ebbfacd89b56668 /src/include/gpxe/ip6.h | |
parent | Fixed endianness of 16- and 32- bit values (diff) | |
download | ipxe-e60817fa7adcdbc439e0110b7147eba20fada524.tar.gz ipxe-e60817fa7adcdbc439e0110b7147eba20fada524.tar.xz ipxe-e60817fa7adcdbc439e0110b7147eba20fada524.zip |
IP6 specifications
Diffstat (limited to 'src/include/gpxe/ip6.h')
-rw-r--r-- | src/include/gpxe/ip6.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/include/gpxe/ip6.h b/src/include/gpxe/ip6.h new file mode 100644 index 00000000..1ddba0a9 --- /dev/null +++ b/src/include/gpxe/ip6.h @@ -0,0 +1,37 @@ +#ifndef _GPXE_IP6_H +#define _GPXE_IP6_H + +/** @file + * + * IP6 protocol + * + */ + +#include <ip.h> + +/* 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 */ |