lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #7142] Sanity check user-configurable values


From: Frédéric Bernon
Subject: [lwip-devel] [task #7142] Sanity check user-configurable values
Date: Wed, 05 Sep 2007 12:29:31 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

Follow-up Comment #24, task #7142 (project lwip):

(Simon wrote :)

> in tcp.h:
> 
> #if TCP_WND > 0xffff
> #error TCP_WND must fit in an u16_t
> #endif
> 
> in etharp.h:
> 
> #if ARP_TABLE_SIZE > 0x7f
> #error ARP_TABLE_SIZE must fit in an s8_t #endif

Since those are directly related to the type of the array, I'd suggest to
leave them near the declaration. If someday the declaration type is changed,
it's more likely the test is also changed if it's directly above the
declaration...


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?7142>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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