summaryrefslogtreecommitdiff
path: root/sys/net/route.c
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2018-06-16 08:26:23 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2018-06-16 08:26:23 +0000
commit20efcfc602b7a57979da99f0a1f917d9fb4a30e1 (patch)
tree91b7ea9ed212f2ae8b8ca0f36e2a9096d1f45561 /sys/net/route.c
parentbcc0decdc98d144587f18312b69862524393c3f8 (diff)
downloadsrc-test2-20efcfc602b7a57979da99f0a1f917d9fb4a30e1.tar.gz
src-test2-20efcfc602b7a57979da99f0a1f917d9fb4a30e1.zip
Notes
Diffstat (limited to 'sys/net/route.c')
-rw-r--r--sys/net/route.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 06eaba334f3a..797f1e4d6eed 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -54,6 +54,8 @@
#include <sys/proc.h>
#include <sys/domain.h>
#include <sys/kernel.h>
+#include <sys/lock.h>
+#include <sys/rmlock.h>
#include <net/if.h>
#include <net/if_var.h>
@@ -440,6 +442,7 @@ struct rtentry *
rtalloc1_fib(struct sockaddr *dst, int report, u_long ignflags,
u_int fibnum)
{
+ RIB_RLOCK_TRACKER;
struct rib_head *rh;
struct radix_node *rn;
struct rtentry *newrt;
@@ -923,6 +926,7 @@ int
rib_lookup_info(uint32_t fibnum, const struct sockaddr *dst, uint32_t flags,
uint32_t flowid, struct rt_addrinfo *info)
{
+ RIB_RLOCK_TRACKER;
struct rib_head *rh;
struct radix_node *rn;
struct rtentry *rt;
@@ -1944,6 +1948,7 @@ rt_maskedcopy(struct sockaddr *src, struct sockaddr *dst, struct sockaddr *netma
static inline int
rtinit1(struct ifaddr *ifa, int cmd, int flags, int fibnum)
{
+ RIB_RLOCK_TRACKER;
struct sockaddr *dst;
struct sockaddr *netmask;
struct rtentry *rt = NULL;