diff options
Diffstat (limited to 'include/net/dst.h')
| -rw-r--r-- | include/net/dst.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/net/dst.h b/include/net/dst.h index 71c60f42be48..a8ae4e760778 100644 --- a/include/net/dst.h +++ b/include/net/dst.h | |||
| @@ -480,6 +480,7 @@ void dst_init(void); | |||
| 480 | /* Flags for xfrm_lookup flags argument. */ | 480 | /* Flags for xfrm_lookup flags argument. */ |
| 481 | enum { | 481 | enum { |
| 482 | XFRM_LOOKUP_ICMP = 1 << 0, | 482 | XFRM_LOOKUP_ICMP = 1 << 0, |
| 483 | XFRM_LOOKUP_QUEUE = 1 << 1, | ||
| 483 | }; | 484 | }; |
| 484 | 485 | ||
| 485 | struct flowi; | 486 | struct flowi; |
| @@ -490,7 +491,16 @@ static inline struct dst_entry *xfrm_lookup(struct net *net, | |||
| 490 | int flags) | 491 | int flags) |
| 491 | { | 492 | { |
| 492 | return dst_orig; | 493 | return dst_orig; |
| 493 | } | 494 | } |
| 495 | |||
| 496 | static inline struct dst_entry *xfrm_lookup_route(struct net *net, | ||
| 497 | struct dst_entry *dst_orig, | ||
| 498 | const struct flowi *fl, | ||
| 499 | struct sock *sk, | ||
| 500 | int flags) | ||
| 501 | { | ||
| 502 | return dst_orig; | ||
| 503 | } | ||
| 494 | 504 | ||
| 495 | static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst) | 505 | static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst) |
| 496 | { | 506 | { |
| @@ -502,6 +512,10 @@ struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig, | |||
| 502 | const struct flowi *fl, struct sock *sk, | 512 | const struct flowi *fl, struct sock *sk, |
| 503 | int flags); | 513 | int flags); |
| 504 | 514 | ||
| 515 | struct dst_entry *xfrm_lookup_route(struct net *net, struct dst_entry *dst_orig, | ||
| 516 | const struct flowi *fl, struct sock *sk, | ||
| 517 | int flags); | ||
| 518 | |||
| 505 | /* skb attached with this dst needs transformation if dst->xfrm is valid */ | 519 | /* skb attached with this dst needs transformation if dst->xfrm is valid */ |
| 506 | static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst) | 520 | static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst) |
| 507 | { | 521 | { |
