1. 03 May, 2013 1 commit
  2. 02 Apr, 2013 1 commit
  3. 14 Mar, 2013 2 commits
  4. 07 Mar, 2013 8 commits
    • Alessandro Rubini's avatar
      general: add ppi argument to all time operations · 11ee59c0
      Alessandro Rubini authored
      Unfortunately, we need to pass ppi to the time operations, so we
      can have per-instance logging options. This is the second time I found
      the need for such extra argument: the first time I worked it around, now
      I surrender.
      
      Actually, I don't find it unlikely for a multi-instance process to
      spit a lot of diagnostics about timestamps. A developer may need to
      filter messages according to who is tiemstamping/timing out etc.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      11ee59c0
    • Alessandro Rubini's avatar
      diag: use new 'fsm' diagnostics · 7ea3380a
      Alessandro Rubini authored
      This converts fsm.c to use the new diagnostics. We keep printing
      the timestamp for fsm messages, which means diag.c::__pp_diag is
      somehow duplicated here (in what was called pp_timed_printf).
      
      This is the output with "-d 1" (or "-d "100") on a forced-slave ("-g"):
      
        diag level: 10000000
        diag-fsm-1-eth0: 1362666577.043: ENTER initializing, packet len 0
        diag-fsm-1-eth0: 1362666577.045: LEAVE initializing (next:   4 in 0 ms)
        diag-fsm-1-eth0: 1362666577.045: ENTER listening, packet len 0
        diag-fsm-1-eth0: 1362666577.045: listening: reenter in 11999 ms
        diag-fsm-1-eth0: 1362666587.204: listening: reenter in 1840 ms
        diag-fsm-1-eth0: 1362666588.388: LEAVE listening (next:   9 in 0 ms)
        diag-fsm-1-eth0: 1362666588.388: ENTER slave, packet len 44
        diag-fsm-1-eth0: 1362666588.389: slave: reenter in 889 ms
        diag-fsm-1-eth0: 1362666589.219: slave: reenter in 59 ms
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      7ea3380a
    • Alessandro Rubini's avatar
      diag: use new 'frames' diagnostics · ccc3d902
      Alessandro Rubini authored
      By passing "-V -d 001" now I get level-1 diagnostics for frames (i.e.
      sending and receiving):
      
      Slave:
      
         diag-frames-1-eth0: RECV 44 bytes at 1362665418.025198568 (type 0)
         diag-frames-1-eth0: RECV 44 bytes at 1362665418.025970153 (type 8)
         diag-frames-1-eth0: SENT 44 bytes at 1362665416.806670510 (delay_req)
         diag-frames-1-eth0: RECV 54 bytes at 1362665416.808217467 (type 9)
      
      Master:
      
         diag-frames-1-eth0: SENT 64 bytes at 1362665415.430554014 (announce)
         diag-frames-1-eth0: SENT 44 bytes at 1362665416.612818573 (sync)
         diag-frames-1-eth0: SENT 44 bytes at 1362665416.613056524 (follow_up)
         diag-frames-1-eth0: RECV 44 bytes at 1362665416.807983194 (type 1)
         diag-frames-1-eth0: SENT 54 bytes at 1362665416.808206209 (delay_resp)
      
      (note: we don't tell names at receive time because the frame is still
      to be validated).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      ccc3d902
    • Alessandro Rubini's avatar
      5e595126
    • Alessandro Rubini's avatar
      353ad297
    • Alessandro Rubini's avatar
      fsm: better error for state failure · 8c1136fe
      Alessandro Rubini authored
      This adds the interface name where the error happened (we'll need it
      for multi-link setups, that Aurelio is going to implement soon).
      
      Moreover, this kills the last pp_diag_error call
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      8c1136fe
    • Alessandro Rubini's avatar
      diag: moved pp_timed_printf to fsm.c · ac468805
      Alessandro Rubini authored
      fsm.c is the only user of timed_printf, and actually I don't expect
      other messages to need timing (since we know the time from the fsm
      states).
      
      I may repent, I'm aware. But at this point I'm killing diag-yes, to
      make the one and true diagnostic environment, without duplications and
      conflicts.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      ac468805
    • Alessandro Rubini's avatar
      diag: moved diag_fsm into fsm.c · c4e544a9
      Alessandro Rubini authored
      Since diagnostics about the fsm is only used in fsm.c, move it there
      so we have less global context and we are all happier.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      c4e544a9
  5. 05 Mar, 2013 1 commit
    • Alessandro Rubini's avatar
      fsm.c: bugfix on frame error · b5b16b95
      Alessandro Rubini authored
      fsm.c corrently decodes the received frame, and error management is
      built in (even if code in msg.c still needs to be audited to be more
      careful about rogue frames).  However, when a received frame is in
      error, fsm.c cannot return to the caller because it doesn't know the
      current delay. Thus, zero the frame and call the current status, so
      we have back a recalculated ppi->next_delay.
      
      Meanwhile, mask with pp_verbose_frames the diagnostic message for
      received frames -- and be more careful with accessing it's data.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      b5b16b95
  6. 04 Mar, 2013 2 commits
  7. 02 Mar, 2013 1 commit
  8. 28 Feb, 2013 3 commits
  9. 11 Jan, 2013 1 commit
  10. 23 Jul, 2012 2 commits
  11. 09 Jul, 2012 1 commit
  12. 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
  13. 08 Mar, 2012 1 commit
  14. 22 Jan, 2012 1 commit
  15. 09 Jan, 2012 4 commits
  16. 28 Dec, 2011 1 commit
  17. 22 Dec, 2011 1 commit
  18. 05 Dec, 2011 1 commit
    • Aurelio Colosimo's avatar
      code fromt ptp-proposal version 56d97349 · 2801106b
      Aurelio Colosimo authored
      code was pruned from specific "ptp-proposal" protocol and the
      skeleton of IEEE-1588 states was made. Next step is to insert,
      step by step, the structs defined in ptpd. Still something needs
      to be removed or renamed, but this should be a fair starting point.
      2801106b