summaryrefslogtreecommitdiffstats
path: root/net.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-12 18:08:07 +0000
committerRoy Marples <roy@marples.name>2008-09-12 18:08:07 +0000
commit441f7d159dbb8448f075e177f9c3770503fc6aa4 (patch)
treed15137305cff6bf6da5a7343f88691f17fa79859 /net.h
parentbe070f751ba8033aebb08e1cece0f0081d9c2a88 (diff)
downloaddhcpcd-441f7d159dbb8448f075e177f9c3770503fc6aa4.tar.xz
Remove remembering routes per interface and have a global routing table so we can change routes depending on interface state. This is very useful for the BSD's where there is no route metric.
Diffstat (limited to 'net.h')
-rw-r--r--net.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/net.h b/net.h
index 87d0d4c8..5191a7e7 100644
--- a/net.h
+++ b/net.h
@@ -79,18 +79,11 @@
# define IN_LINKLOCAL(addr) ((addr & IN_CLASSB_NET) == LINKLOCAL_ADDR)
#endif
-/* There is an argument that this should be converted to an STAIL using
- * queue(3). However, that isn't readily available on all libc's that
- * dhcpcd works on. The only benefit of STAILQ over this is the ability to
- * quickly loop backwards through the list - currently we reverse the list
- * and then move through it forwards. This isn't that much of a big deal
- * though as the norm is to just have one default route, and an IPV4LL route.
- * You can (and do) get more routes in the DHCP message, but not enough to
- * really warrant a change to STAIL queue for performance reasons. */
struct rt {
struct in_addr dest;
struct in_addr net;
struct in_addr gate;
+ const struct interface *iface;
struct rt *next;
};