david/ipxe
Archived
1
0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/include/gpxe/ip6.h

39 lines
591 B
C
Raw Normal View History

2006-06-28 11:44:41 +02:00
#ifndef _GPXE_IP6_H
#define _GPXE_IP6_H
/** @file
*
* IP6 protocol
*
*/
#include <ip.h>
/* IP6 constants */
2006-08-08 05:42:30 +02:00
#define IP6_VERSION 0x6
#define IP6_HOP_LIMIT 64
2006-06-28 11:44:41 +02:00
/* 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 */