-/* $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 $ */
/*
* 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)
*/
ifp = if_get(rt->rt_ifidx);
if (ifp == NULL)
- return 0;
+ return 0;
if_put(ifp);
return EEXIST;
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); \
} \
-/* $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 $ */
/*
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);
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);