diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2022-04-20 17:58:23 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2022-04-20 17:58:23 +0000 |
commit | a0f4960fa30120f95a496011344bd4e3ee513af1 (patch) | |
tree | 722ad8edbcf7d4e1cc5155ce2ddf4e79e201a15d | |
parent | 151e9e509b7c5489a396a3ff6bb5876a8f1c6229 (diff) |
Fix white space and wrap long lines.
-rw-r--r-- | sys/net/route.c | 10 | ||||
-rw-r--r-- | sys/net/route.h | 13 |
2 files changed, 12 insertions, 11 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index 8779fa70b06..ded733a2ceb 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.405 2022/04/20 09:38:25 bluhm Exp $ */ +/* $OpenBSD: route.c,v 1.406 2022/04/20 17:58:22 bluhm Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -223,8 +223,8 @@ rtisvalid(struct rtentry *rt) * Return the best matching entry for the destination ``dst''. * * "RT_RESOLVE" means that a corresponding L2 entry should - * be added to the routing table and resolved (via ARP or - * NDP), if it does not exist. + * be added to the routing table and resolved (via ARP or + * NDP), if it does not exist. */ struct rtentry * rt_match(struct sockaddr *dst, uint32_t *src, int flags, unsigned int tableid) @@ -724,7 +724,7 @@ rtflushclone1(struct rtentry *rt, void *arg, u_int id) */ ifp = if_get(rt->rt_ifidx); if (ifp == NULL) - return 0; + return 0; if_put(ifp); return EEXIST; @@ -1370,7 +1370,7 @@ LIST_HEAD(, rttimer_queue) rttimer_queue_head; struct ifnet *ifp; \ \ ifp = if_get(r->rtt_rt->rt_ifidx); \ - if (ifp != NULL) \ + if (ifp != NULL) \ rtdeletemsg(r->rtt_rt, ifp, r->rtt_tableid); \ if_put(ifp); \ } \ diff --git a/sys/net/route.h b/sys/net/route.h index eeb59fb40de..096308e3109 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $OpenBSD: route.h,v 1.189 2022/04/20 09:38:26 bluhm Exp $ */ +/* $OpenBSD: route.h,v 1.190 2022/04/20 17:58:22 bluhm Exp $ */ /* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */ /* @@ -453,8 +453,8 @@ struct rtentry *rt_getll(struct rtentry *); void rt_timer_init(void); int rt_timer_add(struct rtentry *, - void(*)(struct rtentry *, struct rttimer *), - struct rttimer_queue *, u_int); + void(*)(struct rtentry *, struct rttimer *), + struct rttimer_queue *, u_int); void rt_timer_remove_all(struct rtentry *); struct rttimer_queue *rt_timer_queue_create(int); void rt_timer_queue_change(struct rttimer_queue *, int); @@ -477,11 +477,12 @@ int rt_ifa_del(struct ifaddr *, int, struct sockaddr *, unsigned int); void rt_ifa_purge(struct ifaddr *); int rt_ifa_addlocal(struct ifaddr *); int rt_ifa_dellocal(struct ifaddr *); -void rtredirect(struct sockaddr *, struct sockaddr *, struct sockaddr *, struct rtentry **, unsigned int); +void rtredirect(struct sockaddr *, struct sockaddr *, struct sockaddr *, + struct rtentry **, unsigned int); int rtrequest(int, struct rt_addrinfo *, u_int8_t, struct rtentry **, - u_int); + u_int); int rtrequest_delete(struct rt_addrinfo *, u_int8_t, struct ifnet *, - struct rtentry **, u_int); + struct rtentry **, u_int); int rt_if_track(struct ifnet *); int rt_if_linkstate_change(struct rtentry *, void *, u_int); int rtdeletemsg(struct rtentry *, struct ifnet *, u_int); |