Skip to content
Permalink
Branch: master
Commits on Jul 12, 2019
  1. samples: net: echo-client: Start service in correct time

    jukkar committed Apr 14, 2019
    Start to monitor Connected and Disconnect events and then start
    and stop the echo service according to system connectivity status.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  2. net: ip: Helper for getting used network address family as string

    jukkar committed Apr 14, 2019
    This helper can be used in debugging the used network address family.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Commits on Jul 10, 2019
  1. tests: net: trickle: Adjust config options to avoid error prints

    jukkar committed Jul 3, 2019
    Noticed this error print when running in mps2_an385 platform.
    
       <err> net_if: There is no network interface to work with!
    
    Adding CONFIG_NET_LOOPBACK=y removes this error. After this
    the CONFIG_NET_IPV6_MLD=n needed to be added in order to avoid
    crashes when IPv6 MLD is done which is not needed for this test.
    
    Removed also the whitelisting as that is not really needed and
    we want to run these in as many platforms as possible.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  2. net: ipv6: Drop pkt if src address is unspecified

    jukkar committed Jul 10, 2019
    If we receive IPv6 packet where source address is unspecified
    (all zeros), then we need to drop it.
    
    Fixes #17450
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Commits on Jul 9, 2019
  1. tests: clib: Make sure ssize_t type is signed

    jukkar committed Jul 8, 2019
    Add a test that verifies that ssize_t type is signed which is
    expected.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  2. Revert "libc: types: Remove wrong definition"

    jukkar committed Jul 8, 2019
    This reverts commit 2a63e34.
    
    This needs to be reverted as otherwise the type of ssize_t will be
    "unsigned long" which is not correct.
    
        (gdb) ptype ssize_t
        type = unsigned long
    
    For example this check would fail in that case
    
        ssize_t foo(void)
        {
            return -1;
        }
        ...
        if (foo() < 0) {
            printk("This is never called\n");
        }
    
    Fixes #17378
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  3. net: ipv4: Drop pkt if src address is unspecified

    jukkar committed Jul 9, 2019
    If we receive IPv4 packet where source address is unspecified
    (all zeros), then we need to drop it.
    
    Fixes #17427
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  4. tests: net: dhcpv4: Make sure we get DNS add/del events

    jukkar committed Jun 21, 2019
    Verify that DNS server add/del event is received properly.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  5. net: dns: Send net-mgmt event for DNS server add and del

    jukkar committed Jun 21, 2019
    If DNS server(s) are added or removed e.g., as part of DHCP
    processing, send newly defined net-mgmt events so that
    a user application may get this information.
    
    Fixes #16924
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  6. net: mgmt: Add L4 layer and related events

    jukkar committed Aug 9, 2018
    These events are used by connection management patches following
    this one.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Commits on Jul 8, 2019
  1. net: llmnr_responder: Fix debug prints after receiving query

    jukkar committed Jul 4, 2019
    The hostname needs to have log_strdup() when printing it.
    Also it is useful to print information if the sending fails.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  2. net: tcp: Adjust data length if TCP options are present

    jukkar committed Jul 3, 2019
    Skip the TCP options before giving the data to application.
    Without this, the TCP options would be passed to the application.
    
    Fixes #17055
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Commits on Jul 4, 2019
  1. tests: net: Increase stack sizes for coverage testing

    jukkar authored and andrewboie committed Jul 4, 2019
    We need to increase the stack sizes if user enables CONFIG_COVERAGE
    option. You can test this by this command
    
        sanitycheck --coverage -p qemu_x86 -T tests/net/udp \
                    -T tests/net/mgmt  -T tests/net/mld
    
    This is partial fix for issues described in #17323
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  2. tests: net: socket: register: Do not close invalid fd

    jukkar authored and nashif committed Jul 3, 2019
    If the socket descriptor is invalid (fd < 0), there is no
    need to try to close it.
    
    Coverity-CID: 198949
    Fixes #16785
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Commits on Jul 3, 2019
  1. net: sockets: Initialize IP socket addresses in getsockname()

    jukkar committed Jul 2, 2019
    Make sure the IPv4 and IPv6 socket addresses are initialized before
    copying them. This avoids uninitialized memory access.
    
    Coverity-CID: 199436
    Fixes #17202
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  2. net: mgmt: Remove L1 layer as that is useless

    jukkar committed Jul 3, 2019
    The network interface events should be in L2 layer so there
    is no one that would emit L1 events so no need for it.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  3. samples: net: echo_server: Enable SO_TIMESTAMPING if needed

    jukkar committed May 30, 2019
    If user has set CONFIG_NET_CONTEXT_TIMESTAMP then enable
    network packet throughput collection for UDP packets.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  4. tests: net: tx_timestmp: Fix the tests

    jukkar committed May 30, 2019
    Fix tests because of changes in TX timestamping options.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  5. net: shell: Show network packet TX transit times

    jukkar committed May 30, 2019
    Useful when checking TX packet timings in the network stack.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  6. net: socket: Add SO_TIMESTAMPING socket option

    jukkar committed May 30, 2019
    This can be used to activate the network packet statistics
    collection. Note that we do not have resources to calculate
    each network packet transit times but we collect average times
    instead.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  7. net: Collect network packet TX send time

    jukkar committed May 30, 2019
    Finalize the CONFIG_NET_CONTEXT_TIMESTAMP support that was started
    earlier but never properly finished. We collect network statistics for
    TX packet network stack throughput time from when the net_context_send
    is called and when the net_pkt was sent out successfully by the network
    device driver.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Commits on Jul 2, 2019
  1. tests: net: ip-addr: Avoid possible null pointer dereference

    jukkar committed Jul 2, 2019
    Check return value of net_if_ipv6_get_ll() before accessing it.
    
    Coverity-CID: 199437
    Fixes #17201
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Commits on Jul 1, 2019
  1. tests: net: socket: mgmt: Add tests for get|setsockopt()

    jukkar authored and andrewboie committed Jun 19, 2019
    Test AF_NET_MGMT API getsockopt() and setsockopt() functions that
    they work properly when called from kernel or from userspace.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  2. net: socket: mgmt: Add setsockopt() and getsockopt() support

    jukkar authored and andrewboie committed Jun 19, 2019
    Currently only setting and getting of Ethernet Qav options are
    supported via this interface.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  3. net: socket: Add userspace support to getsockopt()

    jukkar authored and andrewboie committed Jun 19, 2019
    Allow userspace application to call getsockopt() without crashing.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  4. net: socket: Add userspace support to setsockopt()

    jukkar authored and andrewboie committed Jun 19, 2019
    Allow userspace application to call setsockopt() without crashing.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  5. tests: net: socket: mgmt: Add unit tests for net_mgmt sockets

    jukkar authored and andrewboie committed Jun 18, 2019
    Almost the same as the net_mgmt socket sample but can be run by
    sanitychecker.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  6. samples: net: sock: mgmt: Print IP addresses for each event

    jukkar authored and andrewboie committed Jun 12, 2019
    Print IP address for added or removed IP address. This helps
    to understand what IP address is being removed or added.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  7. tests: net: utils: Add userspace tests for net_addr_ntop/pton()

    jukkar authored and andrewboie committed Jun 12, 2019
    Add unit tests to net_addr_ntop() and net_addr_pton() in order to
    verify that the functions can be called from userspace.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  8. net: utils: Add userspace support to net_addr_ntop/pton()

    jukkar authored and andrewboie committed Jun 12, 2019
    Allow userspace application call net_addr_ntop() and
    net_addr_pton() functions.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  9. tests: net: mgmt: Verify that info_length is correct

    jukkar authored and andrewboie committed Jun 12, 2019
    If info is sent by net_mgmt, make sure it contains correct data.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  10. net: mgmt: Send event with info when applicaple

    jukkar authored and andrewboie committed Jun 12, 2019
    If the net_mgmt event has some info, like IP address, that
    could be sent, then send it the same time. This is very useful
    for the receiver of the event in order to know that is happening
    in the system.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  11. samples: net: sock: mgmt: Add network management socket app

    jukkar authored and andrewboie committed Jun 11, 2019
    A simple application that listens network management events
    using BSD socket API.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  12. net: sockets: mgmt: Add AF_NET_MGMT address family support

    jukkar authored and andrewboie committed Jun 11, 2019
    Allow application to listen network management events using
    BSD socket API. Application needs to create the socket using
    AF_NET_MGMT address family. At this point we only support
    receiving network management events that the network subsystem
    is sending.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  13. net: mgmt: Add info length to event wait API

    jukkar authored and andrewboie committed Jun 11, 2019
    The info parameter is difficult to use if the caller does not
    get information how long the info struct is. So add info_length
    parameter to net_mgmt_event_wait_on_iface() and
    net_mgmt_event_wait() APIs.
    
    Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Older
You can’t perform that action at this time.