le>
aboutsummaryrefslogblamecommitdiffstats
path: root/include/linux/xfrm.h
blob: fb0c215a3051a0e697d305c98067f39c25a2c790 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                     

                              








                                                                
                            


                              















                                                





                                                                    



                           





































                                         
                                     
                                                     
                                   

  
                       



                                                     

  







                                 

                                    

                                     



    


                            
                             










                                                           

                             

                                     

                        
 





































                                                 



                                     



                                       


                                         



                                               




                                               
                      
  
                                         
 

                                                           











                                                                        














                                         

                                    


                                 














                                                         





                                  







                                                                               

                     
                                                         



                            
                                                    
                                                    
                       
                                                                 
                      
                                                           




                                   

                          

                        




                                           




                                                   

                          

                        




                                           













                       









                                               
                                                                           



                                                      
                                 
                                 
                                  
                                  



                                              
                                            



                                               
                       
                                              
                                              
                                              
                                              

  

















                                                                                  

                                                                              

































                                               




                                              












                                                   

                                           

                                 

                                 
                                    












                                                 

                                                 

                                                

                                                 


                                             

                          
#ifndef _LINUX_XFRM_H
#define _LINUX_XFRM_H

#include <linux/types.h>

/* All of the structures in this file may not change size as they are
 * passed into the kernel from userspace via netlink sockets.
 */

/* Structure to encapsulate addresses. I do not want to use
 * "standard" structure. My apologies.
 */
typedef union
{
	__be32		a4;
	__be32		a6[4];
} xfrm_address_t;

/* Ident of a specific xfrm_state. It is used on input to lookup
 * the state by (spi,daddr,ah/esp) or to store information about
 * spi, protocol and tunnel address on output.
 */
struct xfrm_id
{
	xfrm_address_t	daddr;
	__be32		spi;
	__u8		proto;
};

struct xfrm_sec_ctx {
	__u8	ctx_doi;
	__u8	ctx_alg;
	__u16	ctx_len;
	__u32	ctx_sid;
	char	ctx_str[0];