xfrm_policy.c (de3cb747ffac5f2a4a6bb156e7e2fd5229e688e5) | xfrm_policy.c (2774c7aba6c97a2535be3309a2209770953780b3) |
---|---|
1/* 2 * xfrm_policy.c 3 * 4 * Changes: 5 * Mitsuru KANDA @USAGI 6 * Kazunori MIYAZAWA @USAGI 7 * Kunihiro Ishiguro <kunihiro@ipinfusion.com> 8 * IPv6 support --- 1935 unchanged lines hidden (view full) --- 1944static int stale_bundle(struct dst_entry *dst) 1945{ 1946 return !xfrm_bundle_ok(NULL, (struct xfrm_dst *)dst, NULL, AF_UNSPEC, 0); 1947} 1948 1949void xfrm_dst_ifdown(struct dst_entry *dst, struct net_device *dev) 1950{ 1951 while ((dst = dst->child) && dst->xfrm && dst->dev == dev) { | 1/* 2 * xfrm_policy.c 3 * 4 * Changes: 5 * Mitsuru KANDA @USAGI 6 * Kazunori MIYAZAWA @USAGI 7 * Kunihiro Ishiguro <kunihiro@ipinfusion.com> 8 * IPv6 support --- 1935 unchanged lines hidden (view full) --- 1944static int stale_bundle(struct dst_entry *dst) 1945{ 1946 return !xfrm_bundle_ok(NULL, (struct xfrm_dst *)dst, NULL, AF_UNSPEC, 0); 1947} 1948 1949void xfrm_dst_ifdown(struct dst_entry *dst, struct net_device *dev) 1950{ 1951 while ((dst = dst->child) && dst->xfrm && dst->dev == dev) { |
1952 dst->dev = loopback_dev; | 1952 dst->dev = init_net.loopback_dev; |
1953 dev_hold(dst->dev); 1954 dev_put(dev); 1955 } 1956} 1957EXPORT_SYMBOL(xfrm_dst_ifdown); 1958 1959static void xfrm_link_failure(struct sk_buff *skb) 1960{ --- 633 unchanged lines hidden --- | 1953 dev_hold(dst->dev); 1954 dev_put(dev); 1955 } 1956} 1957EXPORT_SYMBOL(xfrm_dst_ifdown); 1958 1959static void xfrm_link_failure(struct sk_buff *skb) 1960{ --- 633 unchanged lines hidden --- |