1. 05 Apr, 2017 1 commit
    • Alessandro Rubini's avatar
      general fix: implement SYNCHRONIZATION_FAULT · a438acc9
      Alessandro Rubini authored
      If we stopped sending to the master or the peer (for traffic or
      whatever; in my case with "fault drop"), we wouldn't notice the
      problem.
      
      This looks like SYNCHRONIZATION_FAULT (9.2.6.12), so this reuses the
      almost-unused TO_FAULTY, renaming it to a more generic TO_FAULT.
      
      9.2.6.12 says we should reach uncalibrated, but since uncalibrated doesn't
      exits (it is never entered, it's dead and untested code at this point),
      I handle the problem just like the timeout receiving announce messages.
      
      For wr, I reset the servo, so the problem can be seen.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      a438acc9
  2. 01 Dec, 2016 2 commits
  3. 25 Oct, 2016 1 commit
  4. 20 Sep, 2016 3 commits
  5. 16 May, 2016 5 commits
  6. 07 Nov, 2014 2 commits
  7. 31 Jul, 2013 1 commit
    • Alessandro Rubini's avatar
      general: rephrase copyright notices (no tech effect) · 23033d8a
      Alessandro Rubini authored
      This changes all "Name Surname for CERN" to "Copyright CERN, author
      Name Surname".  This is trivial and makes no change, with a few
      expections:
      
      - all trivial Makefiles that had "for CERN" lines have now no
      attributions, as they are trivial anyways.
      
      - a few unrepresented files have not the copyright notice (especially
      ptpdump, that I wrote in 2012).
      
      - a few "for CERN" remain in subprojects, where I didn't touch anyrhing
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      23033d8a
  8. 08 Mar, 2013 2 commits
    • Alessandro Rubini's avatar
      kill ppi->record_update · fd2b09a0
      Alessandro Rubini authored
      The code, when receiving announce, was setting a flag in order to run
      bmc at the next iteration, when that happened, the frame just received
      was discarded in favour for the programmed state update.
      
      This commits remove some fields and one helper function, so the new
      announce is immediately processed and no frame is lost.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      fd2b09a0
    • Alessandro Rubini's avatar
      kill portState: nobody is using it · 692af7f3
      Alessandro Rubini authored
      the portState field is probably a relic of ptpd, then the state
      machine was a single switch() statement.  Many places were still
      setting it, but nobody was ever reading the field.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      692af7f3
  9. 07 Mar, 2013 1 commit
  10. 05 Mar, 2013 2 commits
  11. 04 Mar, 2013 1 commit
    • Alessandro Rubini's avatar
      general: net: rename some fields, fix alignment · 06ef4b9b
      Alessandro Rubini authored
      This changes some things to make code more readable (I really didn't
      know what the tmp_header was: now it is the "received_ptp_header".
      The commit simplifies allocation, because the tx and rx buffers are
      now part of ppi itself.
      
      We now have tx_ptp and tx_frame, both pointing within tx_buffer (and
      the same for rx). The pointers are the protocol side (aligned) and the
      argument passed to send/recv (which may be not be 4-aligned).
      
      At this point nothing changes, i.e. both gnu-linux flavours work and
      bare-i386 is not able to received.
      06ef4b9b
  12. 02 Mar, 2013 2 commits
    • Alessandro Rubini's avatar
      timeout: move restart_annrec() to ppsi.h · 415e530e
      Alessandro Rubini authored
      The function st_com_restart_annrec_timer is now just a one-liner, and
      it really is just a timeout operation.
      
      So call it pp_timeout_restart_annrec instead, and have it inline in
      ppsi.h, removing it from common-fun.c
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      415e530e
    • Alessandro Rubini's avatar
      kill timer: implement timeout · 4b07d444
      Alessandro Rubini authored
      The timer implementatin was incredibly complex.  Now there is no such
      thing as a timer in ptp. We only have timeouts.
      
      A timeout is a point in time. We calculate; we can be earlier; we
      can be later. The only thing which is arch-specific is calculating.
      
      This replaces every "timer" operation with the equivalent "timeout"
      one. All stuff is renamed to avoid confusion between "time" and
      "timer".
      
      Unfortunately, the resulting program as of this commit is not working.
      the pdelay_request timeout happens continuously, I'm sure I've exposed
      a latent bug, which I'm now going to fix.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      4b07d444
  13. 28 Feb, 2013 1 commit
  14. 27 Feb, 2013 2 commits
  15. 12 Jul, 2012 1 commit
  16. 28 Mar, 2012 1 commit
    • Alessandro Rubini's avatar
      Rename PPTP to PPSi · 600a052f
      Alessandro Rubini authored
      This is a major patch, because header files are renamed, and
      the header directory with them. Still, no functional change is there.
      600a052f
  17. 09 Mar, 2012 1 commit
  18. 22 Jan, 2012 1 commit
    • Aurelio Colosimo's avatar
      no_incoming_msg label introduce to skip switch when plen=0 · 1b3c07b2
      Aurelio Colosimo authored
      This patch is due to the fact that the code did not correctly handle
      the situation of "no incoming message". Since messageType 0 is a SYNC
      message type, in those cases an empty message was tried to be handled as a SYNC
      message, and led to FAULTY state. This patch seemed to me the least
      invasive with respect to the current code.
      1b3c07b2
  19. 17 Jan, 2012 2 commits
  20. 16 Jan, 2012 1 commit
    • Aurelio Colosimo's avatar
      msg sending implemented · 33821404
      Aurelio Colosimo authored
      msg_issue_xxx functions declared, implemented and used
      See that pp_get_tstamp now returns a TimeInternal struct.
      Actually timestamp struct might be defined outside of ieee_1588_types.h
      file, since it is not defined in the spec. For the moment, I leave
      it there, but in the future it must be redefined for our purposes (and
      in standard_c_notation)
      33821404
  21. 10 Jan, 2012 2 commits
  22. 09 Jan, 2012 4 commits
  23. 30 Dec, 2011 1 commit