|
@@ -265,6 +265,7 @@ struct xfrm_type
|
|
|
void (*destructor)(struct xfrm_state *);
|
|
|
int (*input)(struct xfrm_state *, struct sk_buff *skb);
|
|
|
int (*output)(struct xfrm_state *, struct sk_buff *pskb);
|
|
|
+ int (*hdr_offset)(struct xfrm_state *, struct sk_buff *, u8 **);
|
|
|
/* Estimate maximal size of result of transformation of a dgram */
|
|
|
u32 (*get_max_size)(struct xfrm_state *, int size);
|
|
|
};
|
|
@@ -960,6 +961,8 @@ extern u32 xfrm6_tunnel_alloc_spi(xfrm_address_t *saddr);
|
|
|
extern void xfrm6_tunnel_free_spi(xfrm_address_t *saddr);
|
|
|
extern u32 xfrm6_tunnel_spi_lookup(xfrm_address_t *saddr);
|
|
|
extern int xfrm6_output(struct sk_buff *skb);
|
|
|
+extern int xfrm6_find_1stfragopt(struct xfrm_state *x, struct sk_buff *skb,
|
|
|
+ u8 **prevhdr);
|
|
|
|
|
|
#ifdef CONFIG_XFRM
|
|
|
extern int xfrm4_rcv_encap(struct sk_buff *skb, __u16 encap_type);
|