|
@@ -110,7 +110,7 @@ extern int ip_rt_init(void);
|
|
extern void ip_rt_redirect(__be32 old_gw, __be32 dst, __be32 new_gw,
|
|
extern void ip_rt_redirect(__be32 old_gw, __be32 dst, __be32 new_gw,
|
|
__be32 src, struct net_device *dev);
|
|
__be32 src, struct net_device *dev);
|
|
extern void rt_cache_flush(int how);
|
|
extern void rt_cache_flush(int how);
|
|
-extern int __ip_route_output_key(struct rtable **, const struct flowi *flp);
|
|
|
|
|
|
+extern int __ip_route_output_key(struct net *, struct rtable **, const struct flowi *flp);
|
|
extern int ip_route_output_key(struct rtable **, struct flowi *flp);
|
|
extern int ip_route_output_key(struct rtable **, struct flowi *flp);
|
|
extern int ip_route_output_flow(struct rtable **rp, struct flowi *flp, struct sock *sk, int flags);
|
|
extern int ip_route_output_flow(struct rtable **rp, struct flowi *flp, struct sock *sk, int flags);
|
|
extern int ip_route_input(struct sk_buff*, __be32 dst, __be32 src, u8 tos, struct net_device *devin);
|
|
extern int ip_route_input(struct sk_buff*, __be32 dst, __be32 src, u8 tos, struct net_device *devin);
|
|
@@ -158,7 +158,7 @@ static inline int ip_route_connect(struct rtable **rp, __be32 dst,
|
|
|
|
|
|
int err;
|
|
int err;
|
|
if (!dst || !src) {
|
|
if (!dst || !src) {
|
|
- err = __ip_route_output_key(rp, &fl);
|
|
|
|
|
|
+ err = __ip_route_output_key(&init_net, rp, &fl);
|
|
if (err)
|
|
if (err)
|
|
return err;
|
|
return err;
|
|
fl.fl4_dst = (*rp)->rt_dst;
|
|
fl.fl4_dst = (*rp)->rt_dst;
|