tasklwIP - A Lightweight TCP/IP stack - Tasks: task #6881, Create option to leave header...

 
 
Show feedback again

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

task #6881: Create option to leave header fields in host byte order

Submitted by:  Simon Goldschmidt <goldsimon>
Submitted on:  Sun 13 May 2007 03:14:49 PM UTC  
 
Category: NoneShould Start On: Sun 13 May 2007 12:00:00 AM UTC
Should be Finished on: Sun 13 May 2007 12:00:00 AM UTCPriority: 1 - Later
Status: PostponedPrivacy: Public
Percent Complete: 0%Assigned to: None
Open/Closed: OpenPlanned Release: None
Effort: 0.00

Fri 26 Mar 2010 04:46:44 PM UTC, comment #2:

I'm not using such a MAC now, so I'm setting this to postponed. If anyone would benefit from this, speak up!

Simon Goldschmidt <goldsimon>
Project Administrator
Thu 17 May 2007 12:38:25 PM UTC, comment #1:

OK, since I commented the byte order of some fields, this can go on.

TCP and UDP are no problem since the ports are already given in host byte order, only internal conversion would change (be left out).

IP is kind of a problem since IP adresses are stored in network byte order in the pcb (and expected the same in function parameters). As long as ip adresses are only composed through macros like IP4_ADDR, that is no problem.

I would create hton/ntoh-macros for each protocol that would be defined to not convert if a switch like MAC_DOES_BYTE_ORDER_CONVERSION_IP / _UDP / _TCP is set to 1 (only for little endian, of course).

Simon Goldschmidt <goldsimon>
Project Administrator
Sun 13 May 2007 03:14:49 PM UTC, original submission:

As already mention on lwip_devel, there are some MACs with the ability to automatically convert some protocol headers into host byte order (mainly IP, TCP and UDP). We should create an option for each of those protocols to simplify integration of those MACs into lwIP.

I think that this somehow depends on task #1568 ("Comment whether fields are host or network byte order"), so I might start to work on that, first ;-)

Simon Goldschmidt <goldsimon>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 26 Mar 2010 04:46:44 PM UTCgoldsimonStatusNone=>Postponed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup