1. 04 Nov, 2016 1 commit
  2. 20 Sep, 2016 2 commits
  3. 17 May, 2016 1 commit
    • Davide Ciminaghi's avatar
      proto-standard/state-initializing.c: initialize parentDS · f5dbcdd3
      Davide Ciminaghi authored
      Before this commit, ANNOUNCE messages were sent with grandmaster-related
      fields equal to 0. Values for such fields were taken from the parentDS data
      set, which did not look properly initialized.
      
      Paragraphs 8.2.3.2 to 8.2.3.9 of the ieee1588 standard specify
      initialization values for the parentDS data set.
      Many such values come from the defaultDS, so care must be taken to
      initialize the parent data set __after__ the default data set.
      We do this in pp-initializing().
      Signed-off-by: Davide Ciminaghi's avatarDavide Ciminaghi <ciminaghi@gnudd.com>
      f5dbcdd3
  4. 16 May, 2016 3 commits
    • Alessandro Rubini's avatar
      general: change timeout API · 6305e770
      Alessandro Rubini authored
      Several changes to the timeout API, simplifying the code and allowing
      more simplification later.
      
       * TO_ANN_INTERVAL renamed to TO_ANN_SEND (as opposed to TO_ANN_RECEIPT)
      
       * TO_SYNC renamed to TO_SYNC_SEND for symmetry with above
      
       * added timeout_init() to take not of the waiting values
      
       * timeout_set now receives only the index, not the value (see above)
      
       * __timeout_set added for those that want a specific value
      
       * timeout_rand is gone, as timeout_set knows which to randomize
      
       * all users fixed
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      6305e770
    • Alessandro Rubini's avatar
      pdelay: share values with delay/response · 386b5117
      Alessandro Rubini authored
      The timeout for sending a requeste can be shareby by delay/pdelay;
      same for logMinDelayReqInterval.
      
      Moreover, I took the chance to remove the third extension-specific
      timeout slot (WR only uses 1, keep two of them...).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      386b5117
    • Cesar Prados's avatar
      pdelay/ieee1588: add timeout to the Pdelay_req msg. · e6aec3d0
      Cesar Prados authored
      The value of logMinPdelayReqInterval is a compromise between the
      fluctuation in link delay and startup time and the communication
      and computation load imposed by transmission of these messages.
      Although, I have set it to 0 so far...
      Signed-off-by: Cesar Prados's avatarC.Prados <c.prados@gsi.de>
      e6aec3d0
  5. 06 Jul, 2015 1 commit
  6. 13 Mar, 2015 1 commit
  7. 07 Nov, 2014 2 commits
  8. 22 Sep, 2014 1 commit
  9. 15 Sep, 2013 2 commits
  10. 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
  11. 07 Jul, 2013 1 commit
  12. 03 May, 2013 1 commit
  13. 23 Apr, 2013 1 commit
  14. 08 Apr, 2013 1 commit
  15. 02 Apr, 2013 1 commit
  16. 08 Mar, 2013 1 commit
  17. 07 Mar, 2013 2 commits
    • Alessandro Rubini's avatar
      general (for bmc.c): turn ClockIdentity into a structure · f9f487ff
      Alessandro Rubini authored
      This "type" was the only type represented as an array instead of
      being a structure. This leads to inconsistent use: if you memcpy
      the other ones you need "&", but not here.
      
      So this commit uses an encompassing structure, to have ClockIdentity
      behave like other composite fields.  The commit has no effect at all
      on the generated binary files for wrpc but it unexpectedly reduces the
      size of the output on the PC. Anyways, the commit is trivial, and all
      changes can be easily verified to have no effect.
      
      While this increases entropy, the reasoning is that I want to assign
      structures instead of running zillions of memcpy functions, with the
      hairy PP_CLOCK_IDENTITY_LENGTH.  So later commits, based on this one,
      reduce entropy.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      f9f487ff
    • Alessandro Rubini's avatar
      5e595126
  18. 05 Mar, 2013 3 commits
  19. 04 Mar, 2013 2 commits
    • 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
    • Alessandro Rubini's avatar
      general: network operations are now per-instance · 82de2e3a
      Alessandro Rubini authored
      This commit moves the network operations inside the instance.  It
      allows to have different operations for each instance, which will be
      useful in the future. For example, one ethernet card may have hardware
      timestamping and another may not.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      82de2e3a
  20. 02 Mar, 2013 2 commits
    • Alessandro Rubini's avatar
      trivial: removed leftover pdelay parameters · f7f7cd7b
      Alessandro Rubini authored
      While some parameters are still there, for future use when we'll put
      back the pdelay mechanism, the default mechanism is clearly not
      pdelay, and incorrectly-used parameters are abetter removed.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      f7f7cd7b
    • 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
  21. 28 Feb, 2013 3 commits
  22. 27 Feb, 2013 1 commit
  23. 26 Feb, 2013 3 commits
  24. 24 Feb, 2013 1 commit
  25. 11 Jan, 2013 1 commit
  26. 07 Jan, 2013 1 commit