Mercurial > hg > dhcpcd
comparison src/ipv6nd.c @ 5535:a0d828e25482 draft
Add --noconfigure option
With this set dhcpcd will not configure anything on the host.
The expectation is that a 3rd party script will instead.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 04 Nov 2020 14:18:48 +0000 |
| parents | 6a2da5651841 |
| children | e65d193a1960 |
comparison
equal
deleted
inserted
replaced
| 5534:605f7f9a20c0 | 5535:a0d828e25482 |
|---|---|
| 1492 | 1492 |
| 1493 if (ifp->ctx->options & DHCPCD_TEST) { | 1493 if (ifp->ctx->options & DHCPCD_TEST) { |
| 1494 script_runreason(ifp, "TEST"); | 1494 script_runreason(ifp, "TEST"); |
| 1495 goto handle_flag; | 1495 goto handle_flag; |
| 1496 } | 1496 } |
| 1497 | |
| 1498 if (!(ifp->options->options & DHCPCD_CONFIGURE)) | |
| 1499 goto run; | |
| 1500 | |
| 1497 ipv6nd_applyra(ifp); | 1501 ipv6nd_applyra(ifp); |
| 1498 ipv6_addaddrs(&rap->addrs); | 1502 ipv6_addaddrs(&rap->addrs); |
| 1499 #ifdef IPV6_MANAGETEMPADDR | 1503 #ifdef IPV6_MANAGETEMPADDR |
| 1500 ipv6_addtempaddrs(ifp, &rap->acquired); | 1504 ipv6_addtempaddrs(ifp, &rap->acquired); |
| 1501 #endif | 1505 #endif |
| 1502 | |
| 1503 rt_build(ifp->ctx, AF_INET6); | 1506 rt_build(ifp->ctx, AF_INET6); |
| 1507 | |
| 1508 run: | |
| 1504 ipv6nd_scriptrun(rap); | 1509 ipv6nd_scriptrun(rap); |
| 1505 | 1510 |
| 1506 eloop_timeout_delete(ifp->ctx->eloop, NULL, ifp); | 1511 eloop_timeout_delete(ifp->ctx->eloop, NULL, ifp); |
| 1507 eloop_timeout_delete(ifp->ctx->eloop, NULL, rap); /* reachable timer */ | 1512 eloop_timeout_delete(ifp->ctx->eloop, NULL, rap); /* reachable timer */ |
| 1508 | 1513 |
