1. 13 Jan, 2017 1 commit
    • Alessandro Rubini's avatar
      general: avoid linux/ includes when possible · 922e2caf
      Alessandro Rubini authored
      Building with musl was spitting errors for redefined data structures.
      Use the standard headers when available (I found not alternatives to
      linux/if_packet.h, but it spits no error).
      
      Then, ifr.ifr_data is "caddr_t" not "void *" in musl, so cast the
      pointer being assigned to silent a warning.
      
      Finally, the fields of udphdr in musl use different names unless wi
      add _GNU_SOURCE -- most likely musl is more posixly-correct, I didn't check.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      922e2caf
  2. 01 Dec, 2016 1 commit
  3. 11 May, 2016 1 commit
  4. 09 Jul, 2015 1 commit
  5. 06 Jul, 2015 2 commits
  6. 01 Jul, 2015 1 commit
  7. 26 Jun, 2015 1 commit
  8. 05 Dec, 2014 1 commit
  9. 04 Dec, 2014 1 commit
    • Alessandro Rubini's avatar
      arch-wrs: replace some RPC with shared memory access · 513151b2
      Alessandro Rubini authored
      The HAL process, in the white rabbit switch, is now exporting data
      structures in shared memory. Thus, we don't need to "get_port_state"
      by RPC, and accessing shared memory is enough.  This change in ppsi
      involves the following changes:
      
      arch-wrs/wrs-startup.c: offer global hal_ports[] for others to use
      (yes, globals are bad, I know...)
      
      arch-wrs/include/ppsi-wrs.h: provide pp_wrs_lookup_port
      
      time-wrs/wrs-socket.c: use shmem. This means some values are now
      hardwired as constants, because they were passed as such from the hal.
      
      arch-wrs/main-loop.c: verify link up or down in the shared mem status
      
      arch-wrs/wrs-calibration.c: wrs_read_calibration_data uses shmem
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      513151b2
  10. 11 Nov, 2014 1 commit
  11. 07 Nov, 2014 4 commits
  12. 21 Jul, 2014 1 commit
  13. 21 Mar, 2014 1 commit
  14. 15 Nov, 2013 1 commit
  15. 13 Nov, 2013 1 commit
  16. 19 Sep, 2013 1 commit
    • Alessandro Rubini's avatar
      main loops: discard wrong application of UTC offset · e89573a3
      Alessandro Rubini authored
      We definitely need to take care of currentUtcOffset, but the current
      implementation was wrong: it only used it in modifying receive stamps,
      thus achieving completely wrong tuples.
      
      It's the receive function that must apply the utcOffset, or not,
      according to how it timestamps frames.  Similarly, it's the time
      setting functions that must use utcOffset, or not, according to whether
      the time is utc (e.g.: unix) or tai (e.g.: wr).
      
      So this just removes a wrong attempt, waiting for good stuff to be written.
      Anyways, the utcOffset reported by the master is kept in data structures
      and passed over to slaves.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      e89573a3
  17. 09 Sep, 2013 1 commit
    • Aurelio Colosimo's avatar
      arch-wrs/main-loop.c: handle "link-up/link-down" events · 330381f3
      Aurelio Colosimo authored
      Check whether pp_instance port link is up or down. Force a new
      initialization in case link brings up. Do not call state machine for
      pp_instances whose link is down.
      
      This patch is inspired to how ptp-noposix (commit 2e46712e59) handles link
      status.
      
      Still missing (and thus declared with a FIXME) the reset of slave structures.
      On the single link, this lack does not cause issues. Anyway, must be fixed
      Signed-off-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
      330381f3
  18. 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
  19. 26 Jul, 2013 1 commit
  20. 12 Jun, 2013 2 commits
  21. 08 Jun, 2013 1 commit
  22. 05 Jun, 2013 4 commits
  23. 23 May, 2013 1 commit
  24. 03 May, 2013 1 commit
  25. 23 Apr, 2013 2 commits
  26. 02 Apr, 2013 1 commit
  27. 16 Mar, 2013 1 commit
  28. 07 Mar, 2013 1 commit
  29. 04 Mar, 2013 3 commits