Mercurial > hg > dhcpcd
comparison src/ipv6.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 |
comparison
equal
deleted
inserted
replaced
| 5534:605f7f9a20c0 | 5535:a0d828e25482 |
|---|---|
| 1414 { | 1414 { |
| 1415 struct ipv6_state *state; | 1415 struct ipv6_state *state; |
| 1416 struct ipv6_addr *ap, *ap2; | 1416 struct ipv6_addr *ap, *ap2; |
| 1417 int dadcounter; | 1417 int dadcounter; |
| 1418 | 1418 |
| 1419 if (!(ifp->options->options & DHCPCD_CONFIGURE)) | |
| 1420 return 0; | |
| 1421 | |
| 1419 /* Check sanity before malloc */ | 1422 /* Check sanity before malloc */ |
| 1420 if (!(ifp->options->options & DHCPCD_SLAACPRIVATE)) { | 1423 if (!(ifp->options->options & DHCPCD_SLAACPRIVATE)) { |
| 1421 switch (ifp->hwtype) { | 1424 switch (ifp->hwtype) { |
| 1422 case ARPHRD_ETHER: | 1425 case ARPHRD_ETHER: |
| 1423 /* Check for a valid hardware address */ | 1426 /* Check for a valid hardware address */ |
