patch-2.1.79 linux/include/net/ip_fib.h
Next file: linux/include/net/ipv6.h
Previous file: linux/include/net/ip6_route.h
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Mon Jan 12 15:28:19 1998
- Orig file:
v2.1.78/linux/include/net/ip_fib.h
- Orig date:
Mon Dec 1 12:04:15 1997
diff -u --recursive --new-file v2.1.78/linux/include/net/ip_fib.h linux/include/net/ip_fib.h
@@ -128,8 +128,9 @@
extern __inline__ int fib_lookup(const struct rt_key *key, struct fib_result *res)
{
- if (local_table->tb_lookup(local_table, key, res))
- return main_table->tb_lookup(main_table, key, res);
+ if (local_table->tb_lookup(local_table, key, res) &&
+ main_table->tb_lookup(main_table, key, res))
+ return -ENETUNREACH;
return 0;
}
@@ -180,7 +181,7 @@
extern int fib_dump_info(struct sk_buff *skb, pid_t pid, u32 seq, int event,
u8 tb_id, u8 type, u8 scope, void *dst, int dst_len, u8 tos,
struct fib_info *fi);
-extern int fib_sync_down(u32 local, struct device *dev);
+extern int fib_sync_down(u32 local, struct device *dev, int force);
extern int fib_sync_up(struct device *dev);
extern int fib_convert_rtentry(int cmd, struct nlmsghdr *nl, struct rtmsg *rtm,
struct kern_rta *rta, struct rtentry *r);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov