Skip to content
Snippets Groups Projects
  1. Jul 29, 2016
  2. Jun 10, 2016
  3. May 20, 2016
    • Alessandro Rubini's avatar
    • Alessandro Rubini's avatar
    • Alessandro Rubini's avatar
      net: trivial simplifcations related to previous commit · f3ae88b3
      Alessandro Rubini authored
      
      (one is just a comment update: most of that stanza was not true any more)
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      f3ae88b3
    • Alessandro Rubini's avatar
      net: ignore macaddress in matching received frames · 7f668484
      Alessandro Rubini authored
      
      A WR socket registers using a specific mac address and the receiving code
      uses the mac address to match the frame.  This is going to be a problem
      with the new PTP code, as pdelay frames use a different mcast mac address.
      Moreover, if we go to UDP, stuff gets worse.
      
      Packet filter rules are already in place for the new mac addresses, and
      we now need to relax the checking in the software stack.
      
      As a side effect, we avoid a number of broadcast frames, because wrpc-sw
      now replies to unicast ARP requests.
      
      What happened before:
      
         16:27:07 00:0b:ab:7c:8e:4a > 00:26:7b:00:04:18 who-has ...107 tell ...200
         16:27:08 00:0b:ab:7c:8e:4a > 00:26:7b:00:04:18 who-has ...107 tell ...200
         16:27:09 00:0b:ab:7c:8e:4a > 00:26:7b:00:04:18 who-has ...107 tell ...200
         16:27:12 00:0b:ab:7c:8e:4a > ff:ff:ff:ff:ff:ff who-has ...107 tell ...200
         16:27:12 00:26:7b:00:04:18 > 00:0b:ab:7c:8e:4a ...107 is-at 00:26:7b:00:04:18
      
      what happens now:
      
         16:42:27 00:0b:ab:7c:8e:4a > 00:26:7b:00:04:18 who-has ...107 tell ...200
         16:42:27 00:26:7b:00:04:18 > 00:0b:ab:7c:8e:4a ...107 is-at 00:26:7b:00:04:18
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      7f668484
    • Alessandro Rubini's avatar
      lib/latency: changes to the better · 965efd02
      Alessandro Rubini authored
      
      This is incompatible with the previous implementation
      
       - sequence number is 32 bits
       - frames are 1,2,3 not 0,1,2 (so to be *more* incompatible)
       - no fake latency values are printed if frames are lost
       - the message is one line instead of two, and cleaner too
       - the sender reminds it's sending every 10s.
      
      The receiver's messages now include the sequence number, so we can
      match different receivers on a network.  Also, The sender's message
      report both TAI and sequence, so we can related frames to the time of
      day.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      965efd02
  4. May 18, 2016
  5. Apr 04, 2016
    • Alessandro Rubini's avatar
      lib: do not build IPV4 code if not configured in · a6a7a489
      Alessandro Rubini authored
      
      Although we love to build-test stuff and discard at link time, as soon
      as we move tasks to be sections, we need to avoid building the file of
      the task if not configured in.  This means lib/arp.c and lib/ipv4.c.
      
      But, for consistency, avoid building icmp.c and bootp.c as well.
      The alternative, which is ifconfig'ing the task itself results in
      warnings like "'ipv4_init' defined but not used".
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      a6a7a489