lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] TCPH_OFFSET


From: Zschocke, Florian
Subject: [lwip-users] TCPH_OFFSET
Date: Wed, 5 Mar 2003 14:28:37 +0100

tcp.h:

#define TCPH_OFFSET(hdr) (NTOHS((hdr)->_offset_flags) >> 8)

What would be the specific reason that TCPH_OFFSET was defined like this and
that it gets only used as (TCPH_OFFSET >> 4) all over the lwIP code? Is
there a special reason why not simply a TCPH_HDRLEN(hdr) was defined as
follows?

#define TCPH_HDRLEN(hdr) (NTOHS((hdr)->_offset_flags) >> 12)

Florian.




reply via email to

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