diff options
Diffstat (limited to 'freebsd/sys/net/rtsock.c')
-rw-r--r-- | freebsd/sys/net/rtsock.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/freebsd/sys/net/rtsock.c b/freebsd/sys/net/rtsock.c index c1a263d8..a421fd61 100644 --- a/freebsd/sys/net/rtsock.c +++ b/freebsd/sys/net/rtsock.c @@ -636,7 +636,7 @@ route_output(struct mbuf *m, struct socket *so) * The given gateway address may be an interface address. * For example, issuing a "route change" command on a route * entry that was created from a tunnel, and the gateway - * address given is the local end point. In this case the + * address given is the local end point. In this case the * RTF_GATEWAY flag must be cleared or the destination will * not be reachable even though there is no error message. */ @@ -647,11 +647,11 @@ route_output(struct mbuf *m, struct socket *so) bzero(&gw_ro, sizeof(gw_ro)); gw_ro.ro_dst = *info.rti_info[RTAX_GATEWAY]; rtalloc_ign_fib(&gw_ro, 0, so->so_fibnum); - /* - * A host route through the loopback interface is + /* + * A host route through the loopback interface is * installed for each interface adddress. In pre 8.0 * releases the interface address of a PPP link type - * is not reachable locally. This behavior is fixed as + * is not reachable locally. This behavior is fixed as * part of the new L2/L3 redesign and rewrite work. The * signature of this interface address route is the * AF_LINK sa_family type of the rt_gateway, and the @@ -694,7 +694,7 @@ route_output(struct mbuf *m, struct socket *so) case RTM_DELETE: saved_nrt = NULL; /* support for new ARP code */ - if (info.rti_info[RTAX_GATEWAY] && + if (info.rti_info[RTAX_GATEWAY] && (info.rti_info[RTAX_GATEWAY]->sa_family == AF_LINK) && (rtm->rtm_flags & RTF_LLDATA) != 0) { error = lla_rt_output(rtm, &info); @@ -750,7 +750,7 @@ route_output(struct mbuf *m, struct socket *so) if (rtm->rtm_flags & RTF_ANNOUNCE) { struct sockaddr laddr; - if (rt->rt_ifp != NULL && + if (rt->rt_ifp != NULL && rt->rt_ifp->if_type == IFT_PROPVIRTUAL) { struct ifaddr *ifa; @@ -763,7 +763,7 @@ route_output(struct mbuf *m, struct socket *so) rt_maskedcopy(rt->rt_ifa->ifa_addr, &laddr, rt->rt_ifa->ifa_netmask); - /* + /* * refactor rt and no lock operation necessary */ rt = (struct rtentry *)rnh->rnh_matchaddr(&laddr, rnh); @@ -771,12 +771,12 @@ route_output(struct mbuf *m, struct socket *so) RADIX_NODE_HEAD_RUNLOCK(rnh); senderr(ESRCH); } - } + } RT_LOCK(rt); RT_ADDREF(rt); RADIX_NODE_HEAD_RUNLOCK(rnh); - /* + /* * Fix for PR: 82974 * * RTM_CHANGE/LOCK need a perfect match, rn_lookup() @@ -789,7 +789,7 @@ route_output(struct mbuf *m, struct socket *so) * perfect match. */ - if (rtm->rtm_type != RTM_GET && + if (rtm->rtm_type != RTM_GET && (!rt_mask(rt) != !info.rti_info[RTAX_NETMASK])) { RT_UNLOCK(rt); senderr(ESRCH); @@ -806,7 +806,7 @@ route_output(struct mbuf *m, struct socket *so) rt_key(rt)) != 0) { RT_UNLOCK(rt); senderr(ESRCH); - } + } info.rti_info[RTAX_DST] = rt_key(rt); info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; info.rti_info[RTAX_NETMASK] = rt_mask(rt); @@ -819,7 +819,7 @@ route_output(struct mbuf *m, struct socket *so) error = rtm_get_jailed(&info, ifp, rt, &saun, curthread->td_ucred); if (error != 0) { - RT_UNLOCK(rt); + RT_UNLOCK(rt); senderr(error); } if (ifp->if_flags & IFF_POINTOPOINT) @@ -889,7 +889,7 @@ route_output(struct mbuf *m, struct socket *so) RT_UNLOCK(rt); RADIX_NODE_HEAD_LOCK(rnh); RT_LOCK(rt); - + error = rt_setgate(rt, rt_key(rt), info.rti_info[RTAX_GATEWAY]); RADIX_NODE_HEAD_UNLOCK(rnh); @@ -1032,7 +1032,7 @@ rt_xaddrs(caddr_t cp, caddr_t cplim, struct rt_addrinfo *rtinfo) /* * there are no more.. quit now * If there are more bits, they are in error. - * I've seen this. route(1) can evidently generate these. + * I've seen this. route(1) can evidently generate these. * This causes kernel to core dump. * for compatibility, If we see this, point to a safe address. */ |