| [chrony-dev] Re: [PATCH v2] socket: ignore zero if_index in timestamping pktinfo |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: JR Lanteigne <root@xxxxxxxx>
- Subject: [chrony-dev] Re: [PATCH v2] socket: ignore zero if_index in timestamping pktinfo
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Mon, 24 Aug 2026 13:54:13 +0200
- Cc: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1787572461; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PqL/MPM62mdLoGe41LLI/GsDIVWjD3S2k8S/PHDeUwo=; b=OqokoQddvW5Pn4zElmpY+Yk6dlE1XzRwrua4LM2tWr6R2gRXWw0+7jPm9cXA7+ZYVKOCPb 4JJ+uanM+TSDwv/Vdj9JiMB+UO44FJhkkLAEemEyajh+v+e8hiLUTPT5QcBDkSO95FFOdZ 0u2aNViVoL6ET79HEwjJo4HzLLk7HoM=
On Mon, Aug 24, 2026 at 07:24:38AM -0300, JR Lanteigne wrote:
> Zero is not a valid interface index. Ignore it when extracting the
> control messages, so the timestamping if_index keeps its
> INVALID_IF_INDEX initialization and the existing fallback to the
> if_index of the message itself applies.
> ---
> v2: moved the check from ntp_io_linux.c to the control message
> extraction in socket.c, as suggested.
Looks good. I'll push it with the next batch.
Thanks,
--
Miroslav Lichvar
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.