• Aurelio Colosimo's avatar
    arch-spec/spec-socket.c: initialize both EVT and GEN socket with our spec sock · 10055614
    Aurelio Colosimo authored
    PTP protocol defines two kind of sockets, "event" and "general". In spec, and
    in raw socket as a general rule, this distinction is not present, but ppsi
    makes use of both of them. So, with this patch, we use the same socket for
    both. This solves a bug in the initialization of clockIdentity with the MAC
    addr.
    See proto-ext-whiterabbit/state-initializing.c, from line 36:
    
    	id = DSDEF(ppi)->clockIdentity;
    	mac = NP(ppi)->ch[PP_NP_GEN].addr;
    	id[0] = mac[0];
    	id[1] = mac[1];
    	id[2] = mac[2];
    	id[3] = 0xff;
    Signed-off-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
    10055614
Name
Last commit
Last update
..
include/arch Loading commit data...
Makefile Loading commit data...
crt0.S Loading commit data...
main-loop.c Loading commit data...
spec-calibration.c Loading commit data...
spec-io.c Loading commit data...
spec-socket.c Loading commit data...
spec-spll.c Loading commit data...
spec-startup.c Loading commit data...
spec-timer.c Loading commit data...
spec.h Loading commit data...
spec.lds Loading commit data...