diff options
| author | Roy Marples <roy@marples.name> | 2015-06-05 22:06:05 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2015-06-05 22:06:05 +0000 |
| commit | 1f7bfb391358e6c2f0eebeecc5e1161e3a0c5e85 (patch) | |
| tree | 46a972e07e61faa827f52a3e96fbe3dbb36d38fb /if.c | |
| parent | a708c891a72608be87a8150abd700bc173afcba9 (diff) | |
| download | dhcpcd-1f7bfb391358e6c2f0eebeecc5e1161e3a0c5e85.tar.xz | |
Remove the pseudo interface created for prefix delegation and mix different
IA options in one DHCP state as recommended by RFC 7550.
Hopefully this will simplify support a great deal.
Diffstat (limited to 'if.c')
| -rw-r--r-- | if.c | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -548,13 +548,11 @@ if_findindexname(struct if_head *ifaces, unsigned int idx, const char *name) struct interface *ifp; TAILQ_FOREACH(ifp, ifaces, next) { - if ((ifp->options == NULL || - !(ifp->options->options & DHCPCD_PFXDLGONLY)) && - ((name && strcmp(ifp->name, name) == 0) || + if ((name && strcmp(ifp->name, name) == 0) || #ifdef __linux__ (name && strcmp(ifp->alias, name) == 0) || #endif - (!name && ifp->index == idx))) + (!name && ifp->index == idx)) return ifp; } } @@ -603,14 +601,6 @@ if_cmp(const struct interface *si, const struct interface *ti) int r; #endif - /* Always prefer master interfaces */ - if (!(si->options->options & DHCPCD_PFXDLGONLY) && - ti->options->options & DHCPCD_PFXDLGONLY) - return -1; - if (si->options->options & DHCPCD_PFXDLGONLY && - !(ti->options->options & DHCPCD_PFXDLGONLY)) - return 1; - /* Check carrier status first */ if (si->carrier > ti->carrier) return -1; |
