Parse ipv6 header on incoming packets.
This commit is contained in:
		
							parent
							
								
									bf6d9eeb53
								
							
						
					
					
						commit
						1edb7287ff
					
				
					 4 changed files with 39 additions and 19 deletions
				
			
		|  | @ -16,6 +16,18 @@ struct iphdr { | |||
|   grub_uint32_t  dest; | ||||
| } __attribute__ ((packed)) ; | ||||
| 
 | ||||
| struct ip6hdr | ||||
| { | ||||
|   grub_uint8_t  version:4, | ||||
|                            priority:4; | ||||
|   grub_uint8_t flow_lbl[3]; | ||||
|   grub_uint16_t payload_len; | ||||
|   grub_uint8_t nexthdr; | ||||
|   grub_uint8_t hop_limit; | ||||
|   grub_uint8_t saddr[16]; | ||||
|   grub_uint8_t daddr[16]; | ||||
| } __attribute__ ((packed)); | ||||
| 
 | ||||
| #define IP_UDP          17              /* UDP protocol */ | ||||
| #define IP_BROADCAST    0xFFFFFFFF | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue