Rather than putting magic 0s as FIB argument into the rt* calls, provide

a macro RT_DEFAULT_FIB defined to 0 to more easily identify the cases
tied to the default FIB.

Sponsored by:	Cisco Systems, Inc.
This commit is contained in:
Bjoern A. Zeeb 2012-02-03 09:06:24 +00:00
parent 5490110cf5
commit 556d81ddd7

View File

@ -111,6 +111,7 @@ struct rt_metrics {
#endif
#endif
#define RT_DEFAULT_FIB 0 /* Explicitly mark fib=0 restricted cases */
extern u_int rt_numfibs; /* number fo usable routing tables */
/*
* XXX kernel function pointer `rt_output' is visible to applications.