summaryrefslogtreecommitdiff
path: root/sys/netinet6/nd6_rtr.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-03-06 08:56:40 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-03-06 08:56:40 +0000
commit206a0c89ac678b4a909903e785901319ce9fe30a (patch)
treedf7d6e8bc2a0d566c214184ab2979eef364e9158 /sys/netinet6/nd6_rtr.c
parent0f632f868c80e066a9f6bf6b7aacd0146aae83bd (diff)
Prefix functions dealing with routing messages with 'rtm_' and keep
them all in net/rtsock.c. This allows to easily spot which functions are doing a copyout(9) when dealing with the routing midlayer. ok phessler@, bluhm@, dhill@, krw@, claudio@
Diffstat (limited to 'sys/netinet6/nd6_rtr.c')
-rw-r--r--sys/netinet6/nd6_rtr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c
index 9747dde93e7..f340637b55f 100644
--- a/sys/netinet6/nd6_rtr.c
+++ b/sys/netinet6/nd6_rtr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6_rtr.c,v 1.156 2017/03/03 08:01:41 mpi Exp $ */
+/* $OpenBSD: nd6_rtr.c,v 1.157 2017/03/06 08:56:39 mpi Exp $ */
/* $KAME: nd6_rtr.c,v 1.97 2001/02/07 11:09:13 itojun Exp $ */
/*
@@ -606,7 +606,7 @@ defrouter_addreq(struct nd_defrouter *new)
error = rtrequest(RTM_ADD, &info, RTP_DEFAULT, &rt,
new->ifp->if_rdomain);
if (error == 0) {
- rt_sendmsg(rt, RTM_ADD, new->ifp->if_rdomain);
+ rtm_send(rt, RTM_ADD, new->ifp->if_rdomain);
rtfree(rt);
new->installed = 1;
}
@@ -710,7 +710,7 @@ defrouter_delreq(struct nd_defrouter *dr)
error = rtrequest(RTM_DELETE, &info, RTP_DEFAULT, &rt,
dr->ifp->if_rdomain);
if (error == 0) {
- rt_sendmsg(rt, RTM_DELETE, dr->ifp->if_rdomain);
+ rtm_send(rt, RTM_DELETE, dr->ifp->if_rdomain);
rtfree(rt);
}