| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | #ifndef _LINUX_ERRQUEUE_H
 | 
					
						
							|  |  |  | #define _LINUX_ERRQUEUE_H 1
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <net/ip.h>
 | 
					
						
							| 
									
										
										
										
											2011-12-10 09:48:31 +00:00
										 |  |  | #if IS_ENABLED(CONFIG_IPV6)
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | #include <linux/ipv6.h>
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2012-10-13 10:46:48 +01:00
										 |  |  | #include <uapi/linux/errqueue.h>
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | #define SKB_EXT_ERR(skb) ((struct sock_exterr_skb *) ((skb)->cb))
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-04 09:50:58 -08:00
										 |  |  | struct sock_exterr_skb { | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 	union { | 
					
						
							|  |  |  | 		struct inet_skb_parm	h4; | 
					
						
							| 
									
										
										
										
											2011-12-10 09:48:31 +00:00
										 |  |  | #if IS_ENABLED(CONFIG_IPV6)
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 		struct inet6_skb_parm	h6; | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 	} header; | 
					
						
							|  |  |  | 	struct sock_extended_err	ee; | 
					
						
							|  |  |  | 	u16				addr_offset; | 
					
						
							| 
									
										
										
										
											2006-09-27 18:34:02 -07:00
										 |  |  | 	__be16				port; | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 |