lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #39683] Assertion "seg->tcphdr not aligned" failed wit


From: Christian Prochaska
Subject: [lwip-devel] [bug #39683] Assertion "seg->tcphdr not aligned" failed with MEM_ALIGNMENT = 8
Date: Sat, 03 Aug 2013 20:17:31 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0

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

                 Summary: Assertion "seg->tcphdr not aligned" failed with
MEM_ALIGNMENT = 8
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: cproc
            Submitted on: Sa 03 Aug 2013 20:17:30 GMT
                Category: TCP
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: git head

    _______________________________________________________

Details:

'seg->tcphdr' often gets calculated as 'p->payload - TCP_HLEN', where
'p->payload' is aligned to MEM_ALIGNMENT and TCP_HLEN is a constant 20. So,
with MEM_ALIGNMENT = 8 (for x86_64), the result cannot be aligned to
MEM_ALIGNMENT.

>From the commit log of 'tcp_out.c' I've seen that the assertion's condition
got changed from 4 to MEM_ALIGNMENT a while ago. So, does this mean that
MEM_ALIGNMENT should not be set to 8 for x86_64?




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]