tasklwIP - A Lightweight TCP/IP stack - Tasks: task #14187, Dual Stack sendto with socket APIs

 
 

You are not allowed to post comments on this tracker with your current authentication level.

task #14187: Dual Stack sendto with socket APIs

Submitter:  Aditya Prakash <adirny>
Submitted:  Thu 20 Oct 2016 05:01:53 AM UTC
   
 
Category:  socket/netconn Should Start On:  Thu 20 Oct 2016 12:00:00 AM UTC
Should be Finished on:  Thu 20 Oct 2016 12:00:00 AM UTC Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  dziegel Percent Complete:  0%
Open/Closed:  Closed Planned Release:  None
Effort:  0.00

Thu 24 Nov 2016 07:19:11 AM UTC, comment #4: 

Thanks David for testing!

I assume that it also works with sockets (at least I tested it with the Ping code of unix simhost).

Would have been interesting to get feedback from a "real world" application. Too bad the OP did not provide feedback any more.

Dirk Ziegelmeier <dziegel>
Group administrator
Wed 23 Nov 2016 03:10:32 PM UTC, comment #3: 

While I can only speak for the core API changes here, those are a big improvement and working perfectly as far as I can tell - much appreciated!

David van Moolenbroek <dcvmoole>
Wed 16 Nov 2016 10:42:30 PM UTC, comment #2: 

Can you please test my changes in git head?

Dirk Ziegelmeier <dziegel>
Group administrator
Mon 07 Nov 2016 11:28:59 AM UTC, comment #1: 

This turns out to be a bigger problem. Even if I remove the assertion in socket.c and implement IPv6 mapped IPv4 address handling, the lower layers cannot deal correctly with IP versions that change from call to call.
This is more work to do than I expected :-(

Dirk Ziegelmeier <dziegel>
Group administrator
Thu 20 Oct 2016 05:01:53 AM UTC, original submission:  

Using sento() on a IPv6 UDP socket to a v4 address fails in current version. In the function udp_sendto_if_chksum(), src IP is returned as null.

However, appending ::ffff: to the v4 address should allow communication to IPv4 addresses as per RFC3493, section 3.7.

Aditya Prakash <adirny>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dcvmoole (Posted a comment)
  • -email is unavailable- added by dziegel (Posted a comment)
  • -email is unavailable- added by adirny (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-24 dziegel StatusReady For Test Done
        Open/ClosedOpen Closed
    2016-11-16 dziegel StatusNone Ready For Test
    2016-11-10 dziegel Assigned toNone dziegel

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code