This function has usage beside IPsec so move it to the core skbuff code. While doing so, give it some documentation and change its return type to 'unsigned char *' to be in line with skb_put(). Signed-off-by: Mathias Krause <mathias.krause@secunet.com> Cc: Steffen Klassert <steffen.klassert@secunet.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			225 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			225 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef _NET_ESP_H
 | 
						|
#define _NET_ESP_H
 | 
						|
 | 
						|
#include <linux/skbuff.h>
 | 
						|
 | 
						|
struct ip_esp_hdr;
 | 
						|
 | 
						|
static inline struct ip_esp_hdr *ip_esp_hdr(const struct sk_buff *skb)
 | 
						|
{
 | 
						|
	return (struct ip_esp_hdr *)skb_transport_header(skb);
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |