File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,8 @@ handle_exit_timeout(void *arg)
208208eloop_exit (ctx -> eloop , EXIT_FAILURE );
209209return ;
210210}
211- ctx -> options |= DHCPCD_NOWAITIP ;
211+
212+ ctx -> options |= DHCPCD_BACKGROUND ;
212213dhcpcd_daemonise (ctx );
213214}
214215
@@ -366,7 +367,7 @@ dhcpcd_daemonise(struct dhcpcd_ctx *ctx)
366367int exit_code ;
367368
368369if (ctx -> options & DHCPCD_DAEMONISE &&
369- !(ctx -> options & (DHCPCD_DAEMONISED | DHCPCD_NOWAITIP )))
370+ !(ctx -> options & (DHCPCD_DAEMONISED | DHCPCD_BACKGROUND )))
370371{
371372if (!dhcpcd_ipwaited (ctx ))
372373return ;
Original file line number Diff line number Diff line change 6363#define DHCPCD_RTBUILD (1ULL << 2)
6464#define DHCPCD_GATEWAY (1ULL << 3)
6565#define DHCPCD_STATIC (1ULL << 4)
66- //#define DHCPCD_DEBUG (1ULL << 5)
66+ // unused (1ULL << 5)
6767#define DHCPCD_ARP_PERSISTDEFENCE (1ULL << 6)
6868#define DHCPCD_LASTLEASE (1ULL << 7)
6969#define DHCPCD_INFORM (1ULL << 8)
8181#define DHCPCD_ANONYMOUS (1ULL << 21)
8282#define DHCPCD_BACKGROUND (1ULL << 22)
8383#define DHCPCD_VENDORRAW (1ULL << 23)
84- #define DHCPCD_NOWAITIP (1ULL << 24) /* To force daemonise */
84+ // unused (1ULL << 24)
8585#define DHCPCD_WAITIP (1ULL << 25)
8686#define DHCPCD_SLAACPRIVATE (1ULL << 26)
8787#define DHCPCD_CSR_WARNED (1ULL << 27)
You can’t perform that action at this time.
0 commit comments