• 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
arch-bare-linux Loading commit data...
arch-gnu-linux Loading commit data...
arch-spec Loading commit data...
diag Loading commit data...
include/ppsi Loading commit data...
lib Loading commit data...
proto-ext-whiterabbit Loading commit data...
proto-standard Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
HOWTO.EASY Loading commit data...
Makefile Loading commit data...
README Loading commit data...
compile_all_gnu-linux Loading commit data...
compile_all_spec Loading commit data...
fsm.c Loading commit data...