[chrony-dev] Re: [PATCH v2] socket: ignore zero if_index in timestamping pktinfo

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


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.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/