mirror of
				https://git.proxmox.com/git/grub2
				synced 2025-11-04 03:55:15 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			733 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			733 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef GRUB_NET_ARP_HEADER
 | 
						|
#define GRUB_NET_ARP_HEADER	1
 | 
						|
 | 
						|
#include <grub/net/ethernet.h>
 | 
						|
struct arphdr{
 | 
						|
    grub_int16_t hwtype;        /* hardware type (must be ARPHRD_ETHER) */
 | 
						|
    grub_int16_t protocol;      /* protocol type (must be ETH_P_IP) */
 | 
						|
    grub_int8_t hwlen;            /* hardware address length (must be 6) */
 | 
						|
    grub_int8_t protolen;         /* protocol address length (must be 4) */
 | 
						|
    grub_uint16_t opcode;        /* ARP opcode */
 | 
						|
    grub_uint8_t shwaddr[6];     /* sender's hardware address */
 | 
						|
    grub_uint32_t sipaddr;     /* sender's IP address */
 | 
						|
    grub_uint8_t thwaddr[6];     /* target's hardware address */
 | 
						|
    grub_uint32_t tipaddr;     /* target's IP address */
 | 
						|
}__attribute__ ((packed));
 | 
						|
 | 
						|
#endif 
 |