mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-08-28 18:29:08 +00:00
Changed default MEM_ALIGNMENT to 4 since even for intel, this is faster!
Minor indentation changes
This commit is contained in:
parent
d5ac707a3d
commit
831ad1fe53
@ -89,7 +89,9 @@
|
|||||||
/* MEM_ALIGNMENT: should be set to the alignment of the CPU for which
|
/* MEM_ALIGNMENT: should be set to the alignment of the CPU for which
|
||||||
lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2
|
lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2
|
||||||
byte alignment -> define MEM_ALIGNMENT to 2. */
|
byte alignment -> define MEM_ALIGNMENT to 2. */
|
||||||
#define MEM_ALIGNMENT 1
|
/* MSVC port: intel processors don't need 4-byte alignment,
|
||||||
|
but are faster that way! */
|
||||||
|
#define MEM_ALIGNMENT 4
|
||||||
|
|
||||||
/* MEM_SIZE: the size of the heap memory. If the application will send
|
/* MEM_SIZE: the size of the heap memory. If the application will send
|
||||||
a lot of data that needs to be copied, this should be set high. */
|
a lot of data that needs to be copied, this should be set high. */
|
||||||
@ -193,6 +195,8 @@ a lot of data that needs to be copied, this should be set high. */
|
|||||||
/* IP reassembly and segmentation.These are orthogonal even
|
/* IP reassembly and segmentation.These are orthogonal even
|
||||||
* if they both deal with IP fragments */
|
* if they both deal with IP fragments */
|
||||||
#define IP_REASSEMBLY 1
|
#define IP_REASSEMBLY 1
|
||||||
|
#define IP_REASS_MAX_PBUFS 3
|
||||||
|
#define MEMP_NUM_REASSDATA 10
|
||||||
#define IP_FRAG 1
|
#define IP_FRAG 1
|
||||||
|
|
||||||
/* ---------- ICMP options ---------- */
|
/* ---------- ICMP options ---------- */
|
||||||
@ -241,7 +245,7 @@ a lot of data that needs to be copied, this should be set high. */
|
|||||||
|
|
||||||
#define PPP_SUPPORT 0 /* Set > 0 for PPP */
|
#define PPP_SUPPORT 0 /* Set > 0 for PPP */
|
||||||
|
|
||||||
#if PPP_SUPPORT > 0
|
#if PPP_SUPPORT
|
||||||
|
|
||||||
#define NUM_PPP 1 /* Max PPP sessions. */
|
#define NUM_PPP 1 /* Max PPP sessions. */
|
||||||
|
|
||||||
@ -311,6 +315,6 @@ a lot of data that needs to be copied, this should be set high. */
|
|||||||
#define MAXNAMELEN 256 /* max length of hostname or name for auth */
|
#define MAXNAMELEN 256 /* max length of hostname or name for auth */
|
||||||
#define MAXSECRETLEN 256 /* max length of password or secret */
|
#define MAXSECRETLEN 256 /* max length of password or secret */
|
||||||
|
|
||||||
#endif /* PPP_SUPPORT > 0 */
|
#endif /* PPP_SUPPORT */
|
||||||
|
|
||||||
#endif /* __LWIPOPTS_H__ */
|
#endif /* __LWIPOPTS_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user