Changeset View
Changeset View
Standalone View
Standalone View
sys/net/radix.c
Show All 38 Lines | |||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#include <sys/lock.h> | #include <sys/lock.h> | ||||
#include <sys/mutex.h> | #include <sys/mutex.h> | ||||
#include <sys/rmlock.h> | #include <sys/rmlock.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
#include <sys/syslog.h> | #include <sys/syslog.h> | ||||
#include <net/radix.h> | #include <net/radix.h> | ||||
#include "opt_mpath.h" | |||||
#ifdef RADIX_MPATH | |||||
#include <net/radix_mpath.h> | |||||
#endif | |||||
#else /* !_KERNEL */ | #else /* !_KERNEL */ | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <strings.h> | #include <strings.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#define log(x, arg...) fprintf(stderr, ## arg) | #define log(x, arg...) fprintf(stderr, ## arg) | ||||
#define panic(x) fprintf(stderr, "PANIC: %s", x), exit(1) | #define panic(x) fprintf(stderr, "PANIC: %s", x), exit(1) | ||||
#define min(a, b) ((a) < (b) ? (a) : (b) ) | #define min(a, b) ((a) < (b) ? (a) : (b) ) | ||||
#include <net/radix.h> | #include <net/radix.h> | ||||
▲ Show 20 Lines • Show All 1,152 Lines • Show Last 20 Lines |