Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/in_rmx.c
Show All 24 Lines | |||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | ||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
*/ | */ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include "opt_mpath.h" | |||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/kernel.h> | #include <sys/kernel.h> | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#include <sys/socket.h> | #include <sys/socket.h> | ||||
#include <sys/mbuf.h> | #include <sys/mbuf.h> | ||||
#include <net/if.h> | #include <net/if.h> | ||||
▲ Show 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
struct rib_head *rh; | struct rib_head *rh; | ||||
rh = rt_table_init(32, AF_INET, fibnum); | rh = rt_table_init(32, AF_INET, fibnum); | ||||
if (rh == NULL) | if (rh == NULL) | ||||
return (NULL); | return (NULL); | ||||
rh->rnh_preadd = rib4_preadd; | rh->rnh_preadd = rib4_preadd; | ||||
#ifdef RADIX_MPATH | |||||
rt_mpath_init_rnh(rh); | |||||
#endif | |||||
return (rh); | return (rh); | ||||
} | } | ||||
#ifdef VIMAGE | #ifdef VIMAGE | ||||
void | void | ||||
in_detachhead(struct rib_head *rh) | in_detachhead(struct rib_head *rh) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |