• Alessandro Rubini's avatar
    send functions: return -1 on error and 1 on stamping error (stamp invalid) · 9e78f4ac
    Alessandro Rubini authored
    This is the first step to fix a problem introduced by commit 79ffd673
    (a fix to release 4.1.2 forward ported to master).
    
    When we get a bad timestamp in sending sync, we should not return "error"
    but a special value for "no timestamp". Otherwise the caller goes to
    "faulty" state and can't sync any more (this situation loops over).
    
    Also, check for timestamp errors only for event message, or we break
    out of the messaging loop during wr synchronization (when we get bad
    timestamps for frames whose timestamp we don't care about).
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    9e78f4ac
Name
Last commit
Last update
arch-bare-i386 Loading commit data...
arch-bare-x86-64 Loading commit data...
arch-sim Loading commit data...
arch-unix Loading commit data...
arch-wrpc Loading commit data...
arch-wrs Loading commit data...
configs Loading commit data...
doc Loading commit data...
etc Loading commit data...
include/ppsi Loading commit data...
lib Loading commit data...
lib-bare Loading commit data...
pp_printf Loading commit data...
proto-ext-whiterabbit Loading commit data...
proto-standard Loading commit data...
scripts Loading commit data...
time-bare Loading commit data...
time-sim Loading commit data...
time-unix Loading commit data...
time-wrpc Loading commit data...
time-wrs Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
diag.c Loading commit data...
fsm.c Loading commit data...