diff options
| author | Roy Marples <roy@marples.name> | 2008-09-12 18:08:07 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-09-12 18:08:07 +0000 |
| commit | 441f7d159dbb8448f075e177f9c3770503fc6aa4 (patch) | |
| tree | d15137305cff6bf6da5a7343f88691f17fa79859 /net.h | |
| parent | be070f751ba8033aebb08e1cece0f0081d9c2a88 (diff) | |
| download | dhcpcd-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.h | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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; }; |
