]> err.no Git - linux-2.6/blobdiff - include/net/esp.h
[IPV6]: Make ip6_route_init to return an error code.
[linux-2.6] / include / net / esp.h
index e793d769430eb999943ebe273d8d6bf7dec4a785..c05f529bff2824c9bc6f92a0a454b0f2260cc884 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/crypto.h>
 #include <net/xfrm.h>
-#include <asm/scatterlist.h>
+#include <linux/scatterlist.h>
 
 #define ESP_NUM_FAST_SG                4
 
@@ -53,4 +53,11 @@ static inline int esp_mac_digest(struct esp_data *esp, struct sk_buff *skb,
        return crypto_hash_final(&desc, esp->auth.work_icv);
 }
 
+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