Mercurial > hg > dhcpcd
changeset 4427:960c888a8c4f draft
DHCP: abort BPF in test mode on receipt of message.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 10 Apr 2019 22:33:01 +0100 |
| parents | 109f0860f9e5 |
| children | 27de5fd1012a |
| files | src/dhcp.c |
| diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcp.c Wed Apr 10 22:19:05 2019 +0100 +++ b/src/dhcp.c Wed Apr 10 22:33:01 2019 +0100 @@ -3212,6 +3212,7 @@ state->reason = "TEST"; script_runreason(ifp, state->reason); eloop_exit(ifp->ctx->eloop, EXIT_SUCCESS); + state->bpf_flags |= BPF_EOF; return; } eloop_timeout_delete(ifp->ctx->eloop, send_discover, ifp);
