xref: /illumos-gate/usr/src/grub/grub-0.97/netboot/in.h (revision 1b8adde7)
17c478bd9Sstevel@tonic-gate #ifndef	_IN_H
27c478bd9Sstevel@tonic-gate #define	_IN_H
37c478bd9Sstevel@tonic-gate 
47c478bd9Sstevel@tonic-gate #include "types.h"
57c478bd9Sstevel@tonic-gate 
67c478bd9Sstevel@tonic-gate #define IP		0x0800
77c478bd9Sstevel@tonic-gate #define ARP		0x0806
87c478bd9Sstevel@tonic-gate #define	RARP		0x8035
97c478bd9Sstevel@tonic-gate 
107c478bd9Sstevel@tonic-gate #define IP_ICMP		1
117c478bd9Sstevel@tonic-gate #define IP_IGMP		2
127c478bd9Sstevel@tonic-gate #define IP_UDP		17
137c478bd9Sstevel@tonic-gate 
147c478bd9Sstevel@tonic-gate /* Same after going through htonl */
157c478bd9Sstevel@tonic-gate #define IP_BROADCAST	0xFFFFFFFF
167c478bd9Sstevel@tonic-gate 
177c478bd9Sstevel@tonic-gate typedef struct {
187c478bd9Sstevel@tonic-gate 	uint32_t	s_addr;
197c478bd9Sstevel@tonic-gate } in_addr;
207c478bd9Sstevel@tonic-gate 
217c478bd9Sstevel@tonic-gate #endif	/* _IN_H */
22