mirror of
https://github.com/xcat2/xNBA.git
synced 2026-03-26 08:13:29 +00:00
Access to the gpxe.org and etherboot.org domains and associated resources has been revoked by the registrant of the domain. Work around this problem by renaming project from gPXE to iPXE, and updating URLs to match. Also update README, LOG and COPYRIGHTS to remove obsolete information. Signed-off-by: Michael Brown <mcb30@ipxe.org>
60 lines
1.0 KiB
C
60 lines
1.0 KiB
C
#ifndef _IPXE_ICMP6_H
|
|
#define _IPXE_ICMP6_H
|
|
|
|
/** @file
|
|
*
|
|
* ICMP6 protocol
|
|
*
|
|
*/
|
|
|
|
FILE_LICENCE ( GPL2_OR_LATER );
|
|
|
|
#include <ipxe/ip6.h>
|
|
#include <ipxe/ndp.h>
|
|
|
|
#define ICMP6_NSOLICIT 135
|
|
#define ICMP6_NADVERT 136
|
|
|
|
extern struct tcpip_protocol icmp6_protocol;
|
|
|
|
struct icmp6_header {
|
|
uint8_t type;
|
|
uint8_t code;
|
|
uint16_t csum;
|
|
/* Message body */
|
|
};
|
|
|
|
struct neighbour_solicit {
|
|
uint8_t type;
|
|
uint8_t code;
|
|
uint16_t csum;
|
|
uint32_t reserved;
|
|
struct in6_addr target;
|
|
/* "Compulsory" options */
|
|
uint8_t opt_type;
|
|
uint8_t opt_len;
|
|
/* FIXME: hack alert */
|
|
uint8_t opt_ll_addr[6];
|
|
};
|
|
|
|
struct neighbour_advert {
|
|
uint8_t type;
|
|
uint8_t code;
|
|
uint16_t csum;
|
|
uint8_t flags;
|
|
uint8_t reserved;
|
|
struct in6_addr target;
|
|
uint8_t opt_type;
|
|
uint8_t opt_len;
|
|
/* FIXME: hack alert */
|
|
uint8_t opt_ll_addr[6];
|
|
};
|
|
|
|
#define ICMP6_FLAGS_ROUTER 0x80
|
|
#define ICMP6_FLAGS_SOLICITED 0x40
|
|
#define ICMP6_FLAGS_OVERRIDE 0x20
|
|
|
|
int icmp6_send_solicit ( struct net_device *netdev, struct in6_addr *src, struct in6_addr *dest );
|
|
|
|
#endif /* _IPXE_ICMP6_H */
|