diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2017-02-15 09:39:24 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2017-02-15 09:39:24 +0100 |
commit | b0fcee825c0ad05057a97d1f4685e1b9e9d00c53 (patch) | |
tree | cb431638b0972b632f8419c05afa682cd552c4ca /include/net | |
parent | 37b103830ec3e52a761bb647eb78da22a1fe4e09 (diff) | |
download | linux-b0fcee825c0ad05057a97d1f4685e1b9e9d00c53.tar.gz linux-b0fcee825c0ad05057a97d1f4685e1b9e9d00c53.tar.bz2 linux-b0fcee825c0ad05057a97d1f4685e1b9e9d00c53.zip |
xfrm: Add a secpath_set helper.
Add a new helper to set the secpath to the skb.
This avoids code duplication, as this is used
in multiple places.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/xfrm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 6e061309adca..287635df4eef 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -1006,6 +1006,7 @@ secpath_put(struct sec_path *sp) } struct sec_path *secpath_dup(struct sec_path *src); +int secpath_set(struct sk_buff *skb); static inline void secpath_reset(struct sk_buff *skb) |