diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-10-24 11:47:08 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-10-24 11:47:08 +0000 |
commit | 3073745cd8791de18a200726f073c0b47f4b03e4 (patch) | |
tree | 0d399a29c5f4015e80b75cfa6f9734a5d735c369 /sys/net | |
parent | 403f81c684bb9cc653f58910c616d84f6789ee80 (diff) |
Define ``rt_ifidx'' as rt_ifp->if_index to ease the transtion towards
getting rid of interface pointers in route entries.
ok bluhm@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/route.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |