From 7f127de493506d2f7765ebe29f57c77e539a4041 Mon Sep 17 00:00:00 2001 From: mpi Date: Sat, 24 Oct 2015 11:47:07 +0000 Subject: [PATCH] Define ``rt_ifidx'' as rt_ifp->if_index to ease the transtion towards getting rid of interface pointers in route entries. ok bluhm@ --- sys/net/route.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/net/route.h b/sys/net/route.h index 1b698fb97f1..b4bf7637a7f 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $OpenBSD: route.h,v 1.115 2015/10/07 10:50:35 mpi Exp $ */ +/* $OpenBSD: route.h,v 1.116 2015/10/24 11:47:07 mpi Exp $ */ /* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */ /* @@ -103,6 +103,7 @@ struct rtentry { #endif struct sockaddr *rt_gateway; /* value */ struct ifnet *rt_ifp; /* the answer: interface to use */ +#define rt_ifidx rt_ifp->if_index struct ifaddr *rt_ifa; /* the answer: interface addr to use */ caddr_t rt_llinfo; /* pointer to link level info cache or to an MPLS structure */ -- 2.20.1