diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-12-03 14:26:28 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-12-03 14:26:28 +0000 |
commit | c4aec6dd57d437055973c8a4792cc4559f391477 (patch) | |
tree | 9a92245e58aad359cfdd794210fcb530d415f32a /sys/net | |
parent | 408a66936c0f91578d26258dc6f232569860e129 (diff) |
Remove unused ``rt_tableid'' field from "struct rtentry".
This reduces the size of the structure by 8 bytes on amd64 now that
we are using an index instead of a pointer for reaching interfaces.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/route.c | 3 | ||||
-rw-r--r-- | sys/net/route.h | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index d160dd7ec4e..5a10ec14e34 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.284 2015/12/03 14:19:55 mpi Exp $ */ +/* $OpenBSD: route.c,v 1.285 2015/12/03 14:26:27 mpi Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -953,7 +953,6 @@ rtrequest(int req, struct rt_addrinfo *info, u_int8_t prio, rt->rt_refcnt = 1; rt->rt_flags = info->rti_flags | RTF_UP; - rt->rt_tableid = tableid; rt->rt_priority = prio; /* init routing priority */ LIST_INIT(&rt->rt_timer); diff --git a/sys/net/route.h b/sys/net/route.h index 4cdd6b8da6c..f81fcd29055 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $OpenBSD: route.h,v 1.127 2015/12/03 14:19:55 mpi Exp $ */ +/* $OpenBSD: route.h,v 1.128 2015/12/03 14:26:27 mpi Exp $ */ /* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */ /* @@ -111,7 +111,6 @@ struct rtentry { struct rt_kmetrics rt_rmx; /* metrics used by rx'ing protocols */ unsigned int rt_ifidx; /* the answer: interface to use */ unsigned int rt_flags; /* up/down?, host/net */ - unsigned int rt_tableid; /* routing table ID */ int rt_refcnt; /* # held references */ uint16_t rt_labelid; /* route label ID */ uint8_t rt_priority; /* routing priority to use */ |