chrysn | 27 Jul 11:19 2015
Picon

[patch #8708] fix return type of netif_add_ip6_address mismatch

URL:
  <http://savannah.nongnu.org/patch/?8708>

                 Summary: fix return type of netif_add_ip6_address mismatch
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: chrysn
            Submitted on: Mon 27 Jul 2015 09:19:13 GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

the netif_add_ip6_address function was declared err_t in
src/include/lwip/netif.h, but defined as s8_t (the default value of
err_t) in its implementation in src/core/netif.c.

this causes "conflicting types for 'netif_add_ip6_address'" errors if
err_t is defined differently in cc.h (as for example recommended in
[1]).

as it only returns error constants, it is changed to use err_t
(Continue reading)

Ivan Delamer | 24 Jul 17:15 2015

6LowPAN support in lwip

Hi All,

I have posted a patch in Savannah with my current 6LowPAN code. It 
still needs a little work before merging into head, but since I'm 
getting lots of questions about it, I'll make the code public already.

https://savannah.nongnu.org/patch/index.php?8706

Please post any comments and suggestions in the patch tracker.

Hopefully in the coming weeks I can polish it and merge it to master.

Cheers
Ivan
Ivan Delamer | 24 Jul 17:13 2015
Picon

[patch #8706] 6LowPAN initial support

URL:
  <http://savannah.nongnu.org/patch/?8706>

                 Summary: 6LowPAN initial support
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: idelamer
            Submitted on: Fri 24 Jul 2015 09:13:17 AM MDT
                Category: IPv6
                Priority: 5 - Normal
                  Status: In Progress
                 Privacy: Public
             Assigned to: idelamer
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

The attachment implement 6LowPAN for LwIP.

There are still many things missing, and documentation is lacking. I am
posting so I can get comments before progressing and merging to head.

Please post any comments/suggestions in this patch tracker.

This is based on master 232cf8c

(Continue reading)

chrysn | 20 Jul 15:36 2015
Picon

[patch #8704] fix sys_timeouts_sleeptime function

URL:
  <http://savannah.nongnu.org/patch/?8704>

                 Summary: fix sys_timeouts_sleeptime function
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: chrysn
            Submitted on: Mon 20 Jul 2015 13:36:37 GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

quoting the patch header:

> there was a sign error the remaining time calculation, causing the main
> loop to sleep for longer than necessary.
> 
> a comment was added to clarify the role of timeouts_last_time.

the misbehavior doesn't manifest itself too badly when overly long timeouts
don't have a bad effect, and when there is sufficient network traffic to
(Continue reading)

Erik Ekman | 20 Jul 12:24 2015
Picon

[bug #45584] lwip_strerror returns incorrect string

URL:
  <http://savannah.nongnu.org/bugs/?45584>

                 Summary: lwip_strerror returns incorrect string
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: yarrick
            Submitted on: Mon 20 Jul 2015 10:24:11 AM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: git head

    _______________________________________________________

Details:

When ERR_ALREADY was added lwip_strerror() was not updated.
Since some errors were renumbered it does not return the correct string for
all errors.

Fix in attached patch.

    _______________________________________________________

(Continue reading)

Mario Viara | 16 Jul 11:48 2015
Picon

lwIP GPRS module

I have posted in GITHUB a module for PPP over GPRS.
The module is working in more than one project and 

--

Cordiali saluti / Best regards
Mario Viara
_______________________________________________
lwip-devel mailing list
lwip-devel <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Simon Goldschmidt | 16 Jul 10:43 2015
Picon

[bug #45559] Window scaling has a problem

URL:
  <http://savannah.nongnu.org/bugs/?45559>

                 Summary: Window scaling has a problem
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: goldsimon
            Submitted on: Do 16 Jul 2015 08:43:24 GMT
                Category: TCP
                Severity: 3 - Normal
              Item Group: None
                  Status: Confirmed
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 1.5.0
            lwIP version: git head

    _______________________________________________________

Details:

'wnd' in the syn segment is truncated to 16 bits (so it can be 0 when TCP_WND
is e.g. 0x10000).

It should be either limited to 0xFFFF or set to some default value (as after
the SYN, when window scaling is enabled or not, the real window is
transmitted).

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?45559>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/
Joel Cunningham | 15 Jul 20:42 2015

SO_REUSEPORT removed on master branch

I've been upgrading my products to use LwIP master and have come across a change that was introduced in commit 5d2e93e5f0a7e85ecf96d76950c5ee02aceecc89 (fixed bug #40788 "lwip_setsockopt_internal() crashes" by rewriting set/getsockopt...)

It looks like during re-arranging of the set/getsockopt functionality, support for SO_REUSEPORT was removed from the case statements.

I'm building with SO_REUSE enabled and my application has the following code that is failing:

#if defined(SO_REUSEPORT)
err = setsockopt(*sktPtr, SOL_SOCKET, SO_REUSEPORT, &kOn, sizeof(kOn));
#elif defined(SO_REUSEADDR)
err = setsockopt(*sktPtr, SOL_SOCKET, SO_REUSEADDR, &kOn, sizeof(kOn));
#end

My question is, was it intentional to remove SO_REUSEPORT? If so, maybe we should remove the define for SO_REUSEPORT as well

Thanks,

Joel
_______________________________________________
lwip-devel mailing list
lwip-devel <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Joel Cunningham | 15 Jul 18:22 2015
Picon

[bug #45555] Loopif needs to set link up

URL:
  <http://savannah.nongnu.org/bugs/?45555>

                 Summary: Loopif needs to set link up
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: jcunningham
            Submitted on: Wed 15 Jul 2015 04:22:57 PM GMT
                Category: Network drivers
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: git head

    _______________________________________________________

Details:

When LWIP_HAVE_LOOPIF is enabled, I can't send any datagrams on it because the
link state is down.  ip4_route fails to select the loopback netif and returns
the default netif instead.  The default netif isn't on the same network
segment as loopback address, so the datagram gets dropped  

Historically, the loopback netif hasn't set the link state to up, but now that
ip4_route and ip6_route are checking for link state (bug #43904 - ip_route()
and ip6_route() must detect linkup status) we need to set the link state to
up

I have attached a patch that sets the link state in netif_init()

    _______________________________________________________

File Attachments:

-------------------------------------------------------
Date: Wed 15 Jul 2015 04:22:57 PM GMT  Name:
0001-Set-link-up-on-loopback-interface.patch  Size: 892B   By: jcunningham

<http://savannah.nongnu.org/bugs/download.php?file_id=34449>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?45555>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/
Mario Viara | 14 Jul 10:24 2015
Picon

lwIP GPRS module

I have posted in GITHUB a module for PPP over GPRS.
The module is working in more than one project and 


--

Cordiali saluti / Best regards
Mario Viara
_______________________________________________
lwip-devel mailing list
lwip-devel <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Joel Cunningham | 14 Jul 00:49 2015
Picon

[bug #45544] Fix netbuf_destport() when LWIP_CHECKSUM_ON_COPY is not enabled

URL:
  <http://savannah.nongnu.org/bugs/?45544>

                 Summary: Fix netbuf_destport() when LWIP_CHECKSUM_ON_COPY is
not enabled
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: jcunningham
            Submitted on: Mon 13 Jul 2015 10:48:59 PM GMT
                Category: sockets/netconn
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: git head

    _______________________________________________________

Details:

The implementation of netbuf_destport() is not correct when
LWIP_NETBUF_RECVINFO is enabled, but not LWIP_CHECKSUM_ON_COPY

The flags field is only available when LWIP_CHECKSUM_ON_COPY is enabled and
thus we shouldn't check it in netbuf_destport() when only LWIP_NETBUF_RECVINFO
is enabled

Attached is a patch that adds an alternate definition of netbuf_destport()
when only LWIP_NETBUF_RECVINFO is enabled

    _______________________________________________________

File Attachments:

-------------------------------------------------------
Date: Mon 13 Jul 2015 10:49:00 PM GMT  Name: 0001-Fix-netbuf_destport.patch 
Size: 1kB   By: jcunningham

<http://savannah.nongnu.org/bugs/download.php?file_id=34441>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?45544>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/

Gmane