diff options
| author | Tony Luck <tony.luck@intel.com> | 2005-05-17 18:53:14 -0400 |
|---|---|---|
| committer | Tony Luck <tony.luck@intel.com> | 2005-05-17 18:53:14 -0400 |
| commit | 325a479c4c110db278ef3361460a48c4093252cc (patch) | |
| tree | bcfbf4d0647d9442045639a5c19da59d55190e81 /include/net/xfrm.h | |
| parent | ebcc80c1b6629a445f7471cc1ddb48faf8a84e70 (diff) | |
| parent | 7f9eaedf894dbaa08c157832e9a6c9c03ffed1ed (diff) | |
Merge with temp tree to get David's gdb inferior calls patch
Diffstat (limited to 'include/net/xfrm.h')
| -rw-r--r-- | include/net/xfrm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 73e9a8ca3d3b..e142a256d5dc 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | #ifndef _NET_XFRM_H | 1 | #ifndef _NET_XFRM_H |
| 2 | #define _NET_XFRM_H | 2 | #define _NET_XFRM_H |
| 3 | 3 | ||
| 4 | #include <linux/compiler.h> | ||
| 4 | #include <linux/xfrm.h> | 5 | #include <linux/xfrm.h> |
| 5 | #include <linux/spinlock.h> | 6 | #include <linux/spinlock.h> |
| 6 | #include <linux/list.h> | 7 | #include <linux/list.h> |
| @@ -516,6 +517,15 @@ struct xfrm_dst | |||
| 516 | u32 child_mtu_cached; | 517 | u32 child_mtu_cached; |
| 517 | }; | 518 | }; |
| 518 | 519 | ||
| 520 | static inline void xfrm_dst_destroy(struct xfrm_dst *xdst) | ||
| 521 | { | ||
| 522 | dst_release(xdst->route); | ||
| 523 | if (likely(xdst->u.dst.xfrm)) | ||
| 524 | xfrm_state_put(xdst->u.dst.xfrm); | ||
| 525 | } | ||
| 526 | |||
| 527 | extern void xfrm_dst_ifdown(struct dst_entry *dst, struct net_device *dev); | ||
| 528 | |||
| 519 | /* Decapsulation state, used by the input to store data during | 529 | /* Decapsulation state, used by the input to store data during |
| 520 | * decapsulation procedure, to be used later (during the policy | 530 | * decapsulation procedure, to be used later (during the policy |
| 521 | * check | 531 | * check |
