diff --git a/wrc_ptp_ppsi.c b/wrc_ptp_ppsi.c index 24b097ece4948595dc6c252381a53a05122a88f3..b8282cf26935b0aa271b4275a45b766b239aef6b 100644 --- a/wrc_ptp_ppsi.c +++ b/wrc_ptp_ppsi.c @@ -162,7 +162,6 @@ int wrc_ptp_stop() int wrc_ptp_update() { int i; - const int eth_ofst = sizeof(struct spec_ethhdr); struct pp_instance *ppi = &ppi_static; if (ptp_enabled) { @@ -187,8 +186,8 @@ int wrc_ptp_update() if (pp_diag_verbosity > 1) { int j; pp_printf("recvd: %i\n", i); - for (j = 0; j < i - eth_ofst; j++) { - pp_printf("%02x ", packet[j + eth_ofst]); + for (j = 0; j < i; j++) { + pp_printf("%02x ", packet[j]); if( (j+1)%16==0 ) pp_printf("\n"); }