summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2015-10-30 09:39:42 +0000
committerbluhm <bluhm@openbsd.org>2015-10-30 09:39:42 +0000
commit7ffb277f43d25c097bbb0a0e0a30a99b84ebc595 (patch)
treed4fd2f64439ae237881e18dea43813315a63c7c7 /sys/netinet6
parentUse NULL instead of 0 for pci_decompose_tag() pointer arguments. (diff)
downloadwireguard-openbsd-7ffb277f43d25c097bbb0a0e0a30a99b84ebc595.tar.xz
wireguard-openbsd-7ffb277f43d25c097bbb0a0e0a30a99b84ebc595.zip
Rename rtrequest1() to rtrequest().
OK mpi@
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/icmp6.c4
-rw-r--r--sys/netinet6/in6.c6
-rw-r--r--sys/netinet6/nd6.c6
-rw-r--r--sys/netinet6/nd6_rtr.c12
4 files changed, 14 insertions, 14 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c
index d87678240fa..027bbcdc25e 100644
--- a/sys/netinet6/icmp6.c
+++ b/sys/netinet6/icmp6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: icmp6.c,v 1.175 2015/10/28 12:14:25 florian Exp $ */
+/* $OpenBSD: icmp6.c,v 1.176 2015/10/30 09:39:42 bluhm Exp $ */
/* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
/*
@@ -1922,7 +1922,7 @@ icmp6_mtudisc_clone(struct sockaddr *dst, u_int rdomain)
info.rti_info[RTAX_GATEWAY] = rt->rt_gateway;
s = splsoftnet();
- error = rtrequest1(RTM_ADD, &info, rt->rt_priority, &nrt,
+ error = rtrequest(RTM_ADD, &info, rt->rt_priority, &nrt,
rdomain);
splx(s);
if (error) {
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index 65cc151cbc4..423c0f620e3 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6.c,v 1.176 2015/10/25 11:58:11 mpi Exp $ */
+/* $OpenBSD: in6.c,v 1.177 2015/10/30 09:39:42 bluhm Exp $ */
/* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */
/*
@@ -808,7 +808,7 @@ in6_update_ifa(struct ifnet *ifp, struct in6_aliasreq *ifra,
info.rti_info[RTAX_IFA] = sin6tosa(&ia6->ia_addr);
/* XXX: we need RTF_CLONING to fake nd6_rtrequest */
info.rti_flags = RTF_CLONING;
- error = rtrequest1(RTM_ADD, &info, RTP_CONNECTED, NULL,
+ error = rtrequest(RTM_ADD, &info, RTP_CONNECTED, NULL,
ifp->if_rdomain);
if (error)
goto cleanup;
@@ -864,7 +864,7 @@ in6_update_ifa(struct ifnet *ifp, struct in6_aliasreq *ifra,
info.rti_info[RTAX_NETMASK] = sin6tosa(&mltmask);
info.rti_info[RTAX_IFA] = sin6tosa(&ia6->ia_addr);
info.rti_flags = RTF_CLONING;
- error = rtrequest1(RTM_ADD, &info, RTP_CONNECTED, NULL,
+ error = rtrequest(RTM_ADD, &info, RTP_CONNECTED, NULL,
ifp->if_rdomain);
if (error)
goto cleanup;
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index 9ae16db1ee3..5a2bdd42600 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6.c,v 1.166 2015/10/29 14:28:34 mpi Exp $ */
+/* $OpenBSD: nd6.c,v 1.167 2015/10/30 09:39:42 bluhm Exp $ */
/* $KAME: nd6.c,v 1.280 2002/06/08 19:52:07 itojun Exp $ */
/*
@@ -631,13 +631,13 @@ nd6_lookup(struct in6_addr *addr6, int create, struct ifnet *ifp,
* Create a new route. RTF_LLINFO is necessary
* to create a Neighbor Cache entry for the
* destination in nd6_rtrequest which will be
- * called in rtrequest1.
+ * called in rtrequest.
*/
bzero(&info, sizeof(info));
info.rti_flags = RTF_HOST | RTF_LLINFO;
info.rti_info[RTAX_DST] = sin6tosa(&sin6);
info.rti_info[RTAX_GATEWAY] = sdltosa(ifp->if_sadl);
- error = rtrequest1(RTM_ADD, &info, RTP_CONNECTED, &rt,
+ error = rtrequest(RTM_ADD, &info, RTP_CONNECTED, &rt,
rtableid);
if (error)
return (NULL);
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c
index e5533a513e7..cc36508bd3d 100644
--- a/sys/netinet6/nd6_rtr.c
+++ b/sys/netinet6/nd6_rtr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6_rtr.c,v 1.130 2015/10/28 12:14:25 florian Exp $ */
+/* $OpenBSD: nd6_rtr.c,v 1.131 2015/10/30 09:39:42 bluhm Exp $ */
/* $KAME: nd6_rtr.c,v 1.97 2001/02/07 11:09:13 itojun Exp $ */
/*
@@ -599,7 +599,7 @@ defrouter_addreq(struct nd_defrouter *new)
info.rti_info[RTAX_NETMASK] = sin6tosa(&mask);
s = splsoftnet();
- error = rtrequest1(RTM_ADD, &info, RTP_DEFAULT, &rt,
+ error = rtrequest(RTM_ADD, &info, RTP_DEFAULT, &rt,
new->ifp->if_rdomain);
if (error == 0) {
rt_sendmsg(rt, RTM_ADD, new->ifp->if_rdomain);
@@ -704,7 +704,7 @@ defrouter_delreq(struct nd_defrouter *dr)
info.rti_info[RTAX_GATEWAY] = sin6tosa(&gw);
info.rti_info[RTAX_NETMASK] = sin6tosa(&mask);
- error = rtrequest1(RTM_DELETE, &info, RTP_DEFAULT, &rt,
+ error = rtrequest(RTM_DELETE, &info, RTP_DEFAULT, &rt,
dr->ifp->if_rdomain);
if (error == 0) {
rt_sendmsg(rt, RTM_DELETE, dr->ifp->if_rdomain);
@@ -1773,7 +1773,7 @@ nd6_prefix_onlink(struct nd_prefix *pr)
info.rti_info[RTAX_GATEWAY] = ifa->ifa_addr;
info.rti_info[RTAX_NETMASK] = sin6tosa(&mask6);
- error = rtrequest1(RTM_ADD, &info, RTP_CONNECTED, &rt, ifp->if_rdomain);
+ error = rtrequest(RTM_ADD, &info, RTP_CONNECTED, &rt, ifp->if_rdomain);
if (error == 0) {
pr->ndpr_stateflags |= NDPRF_ONLINK;
rt_sendmsg(rt, RTM_ADD, ifp->if_rdomain);
@@ -1817,7 +1817,7 @@ nd6_prefix_offlink(struct nd_prefix *pr)
info.rti_info[RTAX_DST] = sin6tosa(&sa6);
info.rti_info[RTAX_NETMASK] = sin6tosa(&mask6);
- error = rtrequest1(RTM_DELETE, &info, RTP_CONNECTED, &rt,
+ error = rtrequest(RTM_DELETE, &info, RTP_CONNECTED, &rt,
ifp->if_rdomain);
if (error == 0) {
pr->ndpr_stateflags &= ~NDPRF_ONLINK;
@@ -2121,5 +2121,5 @@ rt6_deleteroute(struct rtentry *rt, void *arg, unsigned int id)
info.rti_info[RTAX_DST] = rt_key(rt);
info.rti_info[RTAX_GATEWAY] = rt->rt_gateway;
info.rti_info[RTAX_NETMASK] = rt_mask(rt);
- return (rtrequest1(RTM_DELETE, &info, RTP_ANY, NULL, id));
+ return (rtrequest(RTM_DELETE, &info, RTP_ANY, NULL, id));
}