Re: [lwip-users] Assistance Required: Errors in lwiplib.c and Related Files After Upgrading LWIP from 1.4.1 to 2.2.0

2024-01-11 Thread Timothy Martin via lwip-users
Simon,

Thank you for highlighting the potential conflicts with 'sockets.h' and for 
recommending the use of accessor functions for 'ip_addr'. We are applying these 
insights in a test environment to evaluate their impact on our existing issues. 
I will keep you updated on our progress and any significant outcomes.

For your reference, here are the links to the lwiplib.c and lwiplib.h files 
we're currently working with:

lwiplib.c: 
https://lists.gnu.org/archive/html/lwip-users/2024-01/txtWeh_U14rbz.txt
lwiplib.h: 
https://lists.gnu.org/archive/html/lwip-users/2024-01/txtAhJVdz2jHi.txt

Best,
Timothy


On Thursday, January 11th, 2024 at 3:48 PM, Simon Goldschmidt via lwip-users 
 wrote:


> 
> On 10.01.2024 03:46, Timothy Martin via lwip-users wrote:
> 
> > I'm including a zip file containing all the updated headers and source
> > files of LWIP for your reference.
> > [..]
> > 
> > > > > Here are the details of the issues I'm facing:
> > > > > 
> > > > > *
> > > > > 
> > > > > Error #137 in |lwiplib.c| (Path: /NetworkModule/utils):
> > > > > 
> > > > > o Struct "ip_addr" has no field "addr" at lines 739, 740, 741,
> > > > > 745, 746, 747, 1174, 1198, 1245, 1246, and 1247.
> 
> 
> There's no file 'lwiplib.c' in you ZIP, but I guess you are invalidly
> accessing the member 'addr' of the type 'ip_addr'. Don't do that. Use
> the accessor functions (you find them in ip.h, I think) to ensure
> portability accross versions.
> 
> > > > > *
> > > > > 
> > > > > Error #137 in |.ccsproject| (External Location:
> > > > > C:\ti5\third_party\lwip-1.4.1\src\core):
> > > > > 
> > > > > o Struct "udp_pcb" has no field "lwip_recv" at line 404 (File:
> > > > > udp.c).
> 
> 
> This and the other errors seem to come from the fact that 'recv' gets
> defined to 'lwip_recv' (and probably same issue for 'poll' below). This
> is done in sockets.h, but as a macro taking parameters, and sockets.h
> should not even be included while compiling udp.c and others, so I can't
> really help you here.
> 
> Regards,
> Simon
> 
> > > > > o Struct "tcp_pcb" has no field "lwip_recv" at lines 501, 541,
> > > > > 1568, and 1581 (File: tcp.c).
> > > > > o Struct "tcp_pcb_listen" has no field "lwip_accept" at lines
> > > > > 956 and 667 (File: tcp_in.c).
> > > > > *
> > > > > 
> > > > > Error #56-D and #29 in |.ccsproject| (External Location:
> > > > > C:\ti5\third_party\lwip-1.4.1\src\core):
> > > > > 
> > > > > o Too many arguments in invocation of macro "recv" at line 404
> > > > > (File: udp.c).
> > > > > o Expected an expression at line 1428 (File: tcp.c).
> > > > > o Too few arguments in invocation of macro "poll" at line 1428
> > > > > (File: tcp.c).
> > > > > 
> > > > > I have attempted to troubleshoot these issues by reviewing the
> > > > > documentation and searching for similar problems faced by others,
> > > > > but I haven't found a clear solution yet.
> > > > > 
> > > > > Any help or pointers on how to address these errors would be
> > > > > immensely helpful. I am especially interested in understanding if
> > > > > these are known issues when upgrading from LWIP 1.4.1 to 2.2.0, and
> > > > > if there are any specific changes or considerations I should be
> > > > > aware of.
> > > > > 
> > > > > Thank you in advance for your time and assistance. Your expertise
> > > > > and advice are invaluable to me and others facing similar challenges.
> > > > > 
> > > > > Best,
> > > > > Timothy
> 
> 
> ___
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] Assistance Required: Errors in lwiplib.c and Related Files After Upgrading LWIP from 1.4.1 to 2.2.0

2024-01-11 Thread Timothy Martin via lwip-users
Scott,

Your suggestion prompted us to consider a link between the 'ip_addr' struct 
issue and the IPv6 configuration. We are currently setting up a separate 
development environment to review this aspect. Once we have some concrete 
results, I'll be sure to update you on our findings.

Best,
Timothy.
On Wednesday, January 10th, 2024 at 12:00 PM, Scott Miller 
 wrote:

> I'm afraid I don't have time to review your files, and I've only been through 
> that upgrade process once, but based on that first error I'd look first at 
> whether you've got IPv6 enabled. Off the top of my head, I think the ip_addr 
> struct only has "addr" as a field if IPv6 is disabled. And make sure you read 
> through the release notes. You'll also want to make sure you're using a 
> current version of lwipopts.h and that you've carried any relevant settings 
> over from the previous version.
>
> Scott
>
> On 1/9/2024 6:46 PM, Timothy Martin via lwip-users wrote:
>
>> I'm including a zip file containing all the updated headers and source files 
>> of LWIP for your reference.
>>
>> Best,
>> Timothy
>>
>> Sent with [Proton Mail](https://proton.me/) secure email.
>>
>> On Wednesday, January 10th, 2024 at 11:43 AM, Timothy Martin 
>> [](mailto:timothysmar...@proton.me) wrote:
>>
>>> Hi Scott,
>>>
>>> Yes, we have updated both the headers and the source files in the includes 
>>> directory when upgrading LWIP from version 1.4.1 to 2.2.0.
>>>
>>> Best,
>>> Timothy
>>>
>>> Sent with [Proton Mail](https://proton.me/) secure email.
>>>
>>> On Wednesday, January 10th, 2024 at 11:24 AM, Scott Miller 
>>> [](mailto:sc...@argentdata.com) wrote:
>>>
 I'll start with the obvious question - when you say you updated the 
 headers, do you mean you updated ONLY the headers or did you also update 
 all of the library files as well?

 Scott

 On 1/9/2024 4:39 PM, Timothy Martin via lwip-users wrote:

> Dear LWIP Community,
>
> I am Timothy, currently working on a project involving LWIP. I recently 
> updated the LWIP headers from version 1.4.1 to 2.2.0 and have encountered 
> multiple errors that I'm struggling to resolve. These errors are 
> primarily in lwiplib.c and related files, and I would greatly appreciate 
> any guidance or advice you can provide.
>
> Here are the details of the issues I'm facing:
>
> -
>
> Error #137 in lwiplib.c (Path: /NetworkModule/utils):
>
> - Struct "ip_addr" has no field "addr" at lines 739, 740, 741, 745, 746, 
> 747, 1174, 1198, 1245, 1246, and 1247.
>
> -
>
> Error #137 in .ccsproject (External Location: 
> C:\ti5\third_party\lwip-1.4.1\src\core):
>
> - Struct "udp_pcb" has no field "lwip_recv" at line 404 (File: udp.c).
> - Struct "tcp_pcb" has no field "lwip_recv" at lines 501, 541, 1568, and 
> 1581 (File: tcp.c).
> - Struct "tcp_pcb_listen" has no field "lwip_accept" at lines 956 and 667 
> (File: tcp_in.c).
>
> -
>
> Error #56-D and #29 in .ccsproject (External Location: 
> C:\ti5\third_party\lwip-1.4.1\src\core):
>
> - Too many arguments in invocation of macro "recv" at line 404 (File: 
> udp.c).
> - Expected an expression at line 1428 (File: tcp.c).
> - Too few arguments in invocation of macro "poll" at line 1428 (File: 
> tcp.c).
>
> I have attempted to troubleshoot these issues by reviewing the 
> documentation and searching for similar problems faced by others, but I 
> haven't found a clear solution yet.
>
> Any help or pointers on how to address these errors would be immensely 
> helpful. I am especially interested in understanding if these are known 
> issues when upgrading from LWIP 1.4.1 to 2.2.0, and if there are any 
> specific changes or considerations I should be aware of.
>
> Thank you in advance for your time and assistance. Your expertise and 
> advice are invaluable to me and others facing similar challenges.
>
> Best,
> Timothy
>
> ___
> lwip-users mailing list
> lwip-users@nongnu.org
>
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>>
>> ___
>> lwip-users mailing list
>> lwip-users@nongnu.org
>>
>> https://lists.nongnu.org/mailman/listinfo/lwip-users___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] Assistance Required: Errors in lwiplib.c and Related Files After Upgrading LWIP from 1.4.1 to 2.2.0

2024-01-10 Thread Simon Goldschmidt via lwip-users



On 10.01.2024 03:46, Timothy Martin via lwip-users wrote:

I'm including a zip file containing all the updated headers and source
files of LWIP for your reference.
[..]

Here are the details of the issues I'm facing:

 *

*Error #137 in |lwiplib.c| (Path: /NetworkModule/utils)*:

  o Struct "ip_addr" has no field "addr" at lines 739, 740, 741,
745, 746, 747, 1174, 1198, 1245, 1246, and 1247.


There's no file 'lwiplib.c' in you ZIP, but I guess you are invalidly
accessing the member 'addr' of the type 'ip_addr'. Don't do that. Use
the accessor functions (you find them in ip.h, I think) to ensure
portability accross versions.


 *

*Error #137 in |.ccsproject| (External Location:
C:\ti5\third_party\lwip-1.4.1\src\core)*:

  o Struct "udp_pcb" has no field "lwip_recv" at line 404 (File:
udp.c).


This and the other errors seem to come from the fact that 'recv' gets
defined to 'lwip_recv' (and probably same issue for 'poll' below). This
is done in sockets.h, but as a macro taking parameters, and sockets.h
should not even be included while compiling udp.c and others, so I can't
really help you here.

Regards,
Simon


  o Struct "tcp_pcb" has no field "lwip_recv" at lines 501, 541,
1568, and 1581 (File: tcp.c).
  o Struct "tcp_pcb_listen" has no field "lwip_accept" at lines
956 and 667 (File: tcp_in.c).
 *

*Error #56-D and #29 in |.ccsproject| (External Location:
C:\ti5\third_party\lwip-1.4.1\src\core)*:

  o Too many arguments in invocation of macro "recv" at line 404
(File: udp.c).
  o Expected an expression at line 1428 (File: tcp.c).
  o Too few arguments in invocation of macro "poll" at line 1428
(File: tcp.c).

I have attempted to troubleshoot these issues by reviewing the
documentation and searching for similar problems faced by others,
but I haven't found a clear solution yet.

Any help or pointers on how to address these errors would be
immensely helpful. I am especially interested in understanding if
these are known issues when upgrading from LWIP 1.4.1 to 2.2.0, and
if there are any specific changes or considerations I should be
aware of.

Thank you in advance for your time and assistance. Your expertise
and advice are invaluable to me and others facing similar challenges.

Best,
Timothy



___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] Assistance Required: Errors in lwiplib.c and Related Files After Upgrading LWIP from 1.4.1 to 2.2.0

2024-01-09 Thread Scott Miller
I'm afraid I don't have time to review your files, and I've only been 
through that upgrade process once, but based on that first error I'd 
look first at whether you've got IPv6 enabled. Off the top of my head, I 
think the ip_addr struct only has "addr" as a field if IPv6 is disabled. 
And make sure you read through the release notes. You'll also want to 
make sure you're using a current version of lwipopts.h and that you've 
carried any relevant settings over from the previous version.


Scott

On 1/9/2024 6:46 PM, Timothy Martin via lwip-users wrote:
I'm including a zip file containing all the updated headers and source 
files of LWIP for your reference.


Best,
Timothy

Sent with Proton Mail  secure email.

On Wednesday, January 10th, 2024 at 11:43 AM, Timothy Martin 
 wrote:



Hi Scott,

Yes, we have updated both the headers and the source files in the 
|includes| directory when upgrading LWIP from version 1.4.1 to 2.2.0.


Best,
Timothy



Sent with Proton Mail  secure email.

On Wednesday, January 10th, 2024 at 11:24 AM, Scott Miller 
 wrote:


I'll start with the obvious question - when you say you updated the 
headers, do you mean you updated ONLY the headers or did you also 
update all of the library files as well?


Scott

On 1/9/2024 4:39 PM, Timothy Martin via lwip-users wrote:

Dear LWIP Community,

I am Timothy, currently working on a project involving LWIP. I 
recently updated the LWIP headers from version 1.4.1 to 2.2.0 and 
have encountered multiple errors that I'm struggling to resolve. 
These errors are primarily in |lwiplib.c| and related files, and I 
would greatly appreciate any guidance or advice you can provide.


Here are the details of the issues I'm facing:

 *

*Error #137 in |lwiplib.c| (Path: /NetworkModule/utils)*:

  o Struct "ip_addr" has no field "addr" at lines 739, 740,
741, 745, 746, 747, 1174, 1198, 1245, 1246, and 1247.
 *

*Error #137 in |.ccsproject| (External Location:
C:\ti5\third_party\lwip-1.4.1\src\core)*:

  o Struct "udp_pcb" has no field "lwip_recv" at line 404
(File: udp.c).
  o Struct "tcp_pcb" has no field "lwip_recv" at lines 501,
541, 1568, and 1581 (File: tcp.c).
  o Struct "tcp_pcb_listen" has no field "lwip_accept" at lines
956 and 667 (File: tcp_in.c).
 *

*Error #56-D and #29 in |.ccsproject| (External Location:
C:\ti5\third_party\lwip-1.4.1\src\core)*:

  o Too many arguments in invocation of macro "recv" at line
404 (File: udp.c).
  o Expected an expression at line 1428 (File: tcp.c).
  o Too few arguments in invocation of macro "poll" at line
1428 (File: tcp.c).

I have attempted to troubleshoot these issues by reviewing the 
documentation and searching for similar problems faced by others, 
but I haven't found a clear solution yet.


Any help or pointers on how to address these errors would be 
immensely helpful. I am especially interested in understanding if 
these are known issues when upgrading from LWIP 1.4.1 to 2.2.0, and 
if there are any specific changes or considerations I should be 
aware of.


Thank you in advance for your time and assistance. Your expertise 
and advice are invaluable to me and others facing similar challenges.


Best,
Timothy

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users







___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] Assistance Required: Errors in lwiplib.c and Related Files After Upgrading LWIP from 1.4.1 to 2.2.0

2024-01-09 Thread Timothy Martin via lwip-users
Hi Scott,

Yes, we have updated both the headers and the source files in the includes 
directory when upgrading LWIP from version 1.4.1 to 2.2.0.

Best,
Timothy

Sent with [Proton Mail](https://proton.me/) secure email.

On Wednesday, January 10th, 2024 at 11:24 AM, Scott Miller 
 wrote:

> I'll start with the obvious question - when you say you updated the headers, 
> do you mean you updated ONLY the headers or did you also update all of the 
> library files as well?
>
> Scott
>
> On 1/9/2024 4:39 PM, Timothy Martin via lwip-users wrote:
>
>> Dear LWIP Community,
>>
>> I am Timothy, currently working on a project involving LWIP. I recently 
>> updated the LWIP headers from version 1.4.1 to 2.2.0 and have encountered 
>> multiple errors that I'm struggling to resolve. These errors are primarily 
>> in lwiplib.c and related files, and I would greatly appreciate any guidance 
>> or advice you can provide.
>>
>> Here are the details of the issues I'm facing:
>>
>> -
>>
>> Error #137 in lwiplib.c (Path: /NetworkModule/utils):
>>
>> - Struct "ip_addr" has no field "addr" at lines 739, 740, 741, 745, 746, 
>> 747, 1174, 1198, 1245, 1246, and 1247.
>>
>> -
>>
>> Error #137 in .ccsproject (External Location: 
>> C:\ti5\third_party\lwip-1.4.1\src\core):
>>
>> - Struct "udp_pcb" has no field "lwip_recv" at line 404 (File: udp.c).
>> - Struct "tcp_pcb" has no field "lwip_recv" at lines 501, 541, 1568, and 
>> 1581 (File: tcp.c).
>> - Struct "tcp_pcb_listen" has no field "lwip_accept" at lines 956 and 667 
>> (File: tcp_in.c).
>>
>> -
>>
>> Error #56-D and #29 in .ccsproject (External Location: 
>> C:\ti5\third_party\lwip-1.4.1\src\core):
>>
>> - Too many arguments in invocation of macro "recv" at line 404 (File: udp.c).
>> - Expected an expression at line 1428 (File: tcp.c).
>> - Too few arguments in invocation of macro "poll" at line 1428 (File: tcp.c).
>>
>> I have attempted to troubleshoot these issues by reviewing the documentation 
>> and searching for similar problems faced by others, but I haven't found a 
>> clear solution yet.
>>
>> Any help or pointers on how to address these errors would be immensely 
>> helpful. I am especially interested in understanding if these are known 
>> issues when upgrading from LWIP 1.4.1 to 2.2.0, and if there are any 
>> specific changes or considerations I should be aware of.
>>
>> Thank you in advance for your time and assistance. Your expertise and advice 
>> are invaluable to me and others facing similar challenges.
>>
>> Best,
>> Timothy
>>
>> ___
>> lwip-users mailing list
>> lwip-users@nongnu.org
>>
>> https://lists.nongnu.org/mailman/listinfo/lwip-users___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] Assistance Required: Errors in lwiplib.c and Related Files After Upgrading LWIP from 1.4.1 to 2.2.0

2024-01-09 Thread Scott Miller
I'll start with the obvious question - when you say you updated the 
headers, do  you mean you updated ONLY the headers or did you also 
update all of the library files as well?


Scott

On 1/9/2024 4:39 PM, Timothy Martin via lwip-users wrote:

Dear LWIP Community,

I am Timothy, currently working on a project involving LWIP. I 
recently updated the LWIP headers from version 1.4.1 to 2.2.0 and have 
encountered multiple errors that I'm struggling to resolve. These 
errors are primarily in |lwiplib.c| and related files, and I would 
greatly appreciate any guidance or advice you can provide.


Here are the details of the issues I'm facing:

 *

*Error #137 in |lwiplib.c| (Path: /NetworkModule/utils)*:

  o Struct "ip_addr" has no field "addr" at lines 739, 740, 741,
745, 746, 747, 1174, 1198, 1245, 1246, and 1247.
 *

*Error #137 in |.ccsproject| (External Location:
C:\ti5\third_party\lwip-1.4.1\src\core)*:

  o Struct "udp_pcb" has no field "lwip_recv" at line 404 (File:
udp.c).
  o Struct "tcp_pcb" has no field "lwip_recv" at lines 501, 541,
1568, and 1581 (File: tcp.c).
  o Struct "tcp_pcb_listen" has no field "lwip_accept" at lines
956 and 667 (File: tcp_in.c).
 *

*Error #56-D and #29 in |.ccsproject| (External Location:
C:\ti5\third_party\lwip-1.4.1\src\core)*:

  o Too many arguments in invocation of macro "recv" at line 404
(File: udp.c).
  o Expected an expression at line 1428 (File: tcp.c).
  o Too few arguments in invocation of macro "poll" at line 1428
(File: tcp.c).

I have attempted to troubleshoot these issues by reviewing the 
documentation and searching for similar problems faced by others, but 
I haven't found a clear solution yet.


Any help or pointers on how to address these errors would be immensely 
helpful. I am especially interested in understanding if these are 
known issues when upgrading from LWIP 1.4.1 to 2.2.0, and if there are 
any specific changes or considerations I should be aware of.


Thank you in advance for your time and assistance. Your expertise and 
advice are invaluable to me and others facing similar challenges.


Best,
Timothy

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users