Skip to content
  1. Oct 03, 2017
    • Gregory Nutt's avatar
      Squashed commit of the following: · 83cdb0c5
      Gregory Nutt authored
          libc/semaphore:  Add nxsem_getvalue() which is identical to sem_getvalue() except that it never modifies the errno variable.  Changed all references to sem_getvalue in the OS to nxsem_getvalue().
      
          sched/semaphore:  Rename all internal private functions from sem_xyz to nxsem_xyz.  The sem_ prefix is (will be) reserved only for the application semaphore interfaces.
      
          libc/semaphore:  Add nxsem_init() which is identical to sem_init() except that it never modifies the errno variable.  Changed all references to sem_init in the OS to nxsem_init().
      
          sched/semaphore:  Rename sem_tickwait() to nxsem_tickwait() so that it is clear this is an internal OS function.
      
          sched/semaphoate:  Rename sem_reset() to nxsem_reset() so that it is clear this is an internal OS function.
      83cdb0c5
  2. Oct 02, 2017
  3. Sep 30, 2017
    • Gregory Nutt's avatar
      Squashed commit of the following: · e4dd3328
      Gregory Nutt authored
          psock_close() and net_close() are internal OS functions and should not set the errno variable.
      
          psock_ioctl() and netdev_ioctl() are internal OS functions and should not set the errno variable.
      
          net_dupsd() and net_dupsd2() are internal OS functions and should not set the errno variable.
      
          net/ and fs/: net_vfcntl(), file_fcntl(), file_dup(), and file_dup2() are all internal OS interfaces and should not modify the errno value.
      e4dd3328
    • Gregory Nutt's avatar
      Squashed commit of the following: · 2c2aa94b
      Gregory Nutt authored
          net/: psock_recvfrom() is an internal interface and should not set the errno nor should it be a cancellation point.
      
          net/: psock_accept() is not a cancellation point.
      
          net/: psock_getsockopt() and psock_socket*9 are an internal interfaces and should not set the errno.
      
          net/: psock_getsockopt() is an internal interface and should not set the errno.
      
          net/: psock_listen() is an internal interface and should not set the errno.
      
          net/: psock_connect(( is an internal interface and should not set the errno nor should it be a cancellation point.
      
          net/: psock_bind() is an internal interface and should not set the errno.
      
          net/: psock_accept() is an internal interface and should not set the errno.
      2c2aa94b
    • Gregory Nutt's avatar
      net/: Versions of psock_send() and pock_sendto() should not set errno. That... · 054b1471
      Gregory Nutt authored
      net/: Versions of psock_send() and pock_sendto() should not set errno.  That is taken care of at a higher level in the send()/sendto() implementation as appropriate.
      054b1471
    • Gregory Nutt's avatar
  4. Sep 29, 2017
    • Gregory Nutt's avatar
    • Gregory Nutt's avatar
    • Gregory Nutt's avatar
    • Gregory Nutt's avatar
      Update some comments · c4d03d81
      Gregory Nutt authored
      c4d03d81
    • Gregory Nutt's avatar
      Add support for an in-memory routing table cache in order to improve... · ae78a925
      Gregory Nutt authored
      Add support for an in-memory routing table cache in order to improve performance when the routing table is retained in a file.  The cache holds the most recently used routing table entries and so can eliminate some file access.
      
      Squashed commit of the following:
      
          net/route:  Flush in cache when any entry is deleted from the routing table.  When a router matching an IP address is found, add the routing table entry to the cache.
      
          net/route:  Add utility functions to manage an in-memory cache to improve performance when use a file-based routing table.
      ae78a925
    • Gregory Nutt's avatar
      This commit adds support for routing tables in files in a file system. This... · 44d88abb
      Gregory Nutt authored
      This commit adds support for routing tables in files in a file system.  This might be useful for customized, per-unit routing tables.
      
      There are two issues with it however:
      
      1. Reading from file system on a per packet basis could be slow.  I think it probably should have a small, in-memory cache of most frequently used routes for good problem.
      
      2. Currently the delroute logic is disabled due to a problem with the design.  NuttX does not currently support truncate().  Therefore, it is not possible to delete entries from the routing table file.
      
      In this current implementation, that leaves the last entry intact at the end of the file.  An alternative design might include a tag on each record to indicate if the record is valid or not.  That would work but would add complexity to the other routing table functions.
      
      The existing implementation is available for testing purposes only if CONFIG_EXPERIMENTAL=y.
      
      Squashed commit of the following:
      
          net/route:  The current delroute design depends on file truncation.  However, NuttX does not currently support truncate.  Alternative, more complex designs are possible but not implemented.  At present the file routing table are otherwise functional but the delroute logic is disabled via CONFIG_EXPERIMENTAL.  Enable it only if you plan to fix it.
      
          net/route:  Fix some issues with locking routing table files.
      
          net/route:  Add partial implementation of delroute for the case where the routing table is in a file.
      
          net/route:  Add support for seeking to positions in the routing table.
      
          net/route: Add net_addroute_ipv4/6() using a file-based routing table.
      
          net/route: Add net_foreach_ipv4/4() using a file-based routing table.
      
          net/route:  Initial build, configuration, and fs utilies to support routing tables in a file.
      44d88abb
  5. Sep 28, 2017
  6. Sep 27, 2017
  7. Sep 25, 2017
  8. Sep 24, 2017
    • Sakari Kapanen's avatar
      From b7b1826930c7da10416bceebce5d63dc8e4086ca Mon Sep 17 00:00:00 2001 · d0f72617
      Sakari Kapanen authored
      From: Sakari Kapanen <sakari.kapanen@optofidelity.com>
      Date: Sun, 24 Sep 2017 13:19:25 +0300
      Subject: [PATCH] ICMPv6: fix router advertisement
      
      Fixes several errors preventing icmpv6_radvertise.c from being compiled. Fixes conversions to network byte order (namely vlifetime, plifetime, mtu).
      
      IPv6 source address is set to link-local IP address instead of the address in the netdev structure. This is in compliance to RFC 4861. RA didn't work on Linux before this change.
      
      Finally, router prefix and prefix length are derived from the IPv6 address and netmask in the netdev structure. This seems to make more sense than using a predefined, separate prefix from the config.
      d0f72617
  9. Sep 20, 2017
  10. Sep 19, 2017
  11. Sep 18, 2017
  12. Sep 15, 2017
  13. Sep 13, 2017
  14. Sep 12, 2017
  15. Sep 10, 2017