summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2854ff9)
SCCS-vsn: sys/net/route.h 6.2
-/* route.h 6.1 83/07/29 */
+/* route.h 6.2 84/05/30 */
/*
* Kernel resident routing tables.
/*
* Kernel resident routing tables.
else \
(rt)->rt_refcnt--;
else \
(rt)->rt_refcnt--;
+#define RTHASHSIZ 8
+#if (RTHASHSIZ & (RTHASHSIZ - 1)) == 0
+#define RTHASHMOD(h) ((h) & (RTHASHSIZ - 1))
+#else
+#define RTHASHMOD(h) ((h) % RTHASHSIZ)
+#endif
struct mbuf *rthost[RTHASHSIZ];
struct mbuf *rtnet[RTHASHSIZ];
struct rtstat rtstat;
struct mbuf *rthost[RTHASHSIZ];
struct mbuf *rtnet[RTHASHSIZ];
struct rtstat rtstat;