/[lwip]/lwip/src/core/memp.c
ViewVC logotype

Diff of /lwip/src/core/memp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17.2.1 by marcbou, Thu Jun 19 12:32:25 2003 UTC revision 1.17.2.2 by kieranm, Wed Aug 20 16:46:16 2003 UTC
# Line 36  Line 36 
36    
37  #include "lwip/pbuf.h"  #include "lwip/pbuf.h"
38  #include "lwip/udp.h"  #include "lwip/udp.h"
39    #include "lwip/raw.h"
40  #include "lwip/tcp.h"  #include "lwip/tcp.h"
41  #include "lwip/api.h"  #include "lwip/api.h"
42  #include "lwip/api_msg.h"  #include "lwip/api_msg.h"
# Line 54  static struct memp *memp_tab[MEMP_MAX]; Line 55  static struct memp *memp_tab[MEMP_MAX];
55    
56  static const u16_t memp_sizes[MEMP_MAX] = {  static const u16_t memp_sizes[MEMP_MAX] = {
57    sizeof(struct pbuf),    sizeof(struct pbuf),
58      sizeof(struct raw_pcb),
59    sizeof(struct udp_pcb),    sizeof(struct udp_pcb),
60    sizeof(struct tcp_pcb),    sizeof(struct tcp_pcb),
61    sizeof(struct tcp_pcb_listen),    sizeof(struct tcp_pcb_listen),
# Line 67  static const u16_t memp_sizes[MEMP_MAX] Line 69  static const u16_t memp_sizes[MEMP_MAX]
69    
70  static const u16_t memp_num[MEMP_MAX] = {  static const u16_t memp_num[MEMP_MAX] = {
71    MEMP_NUM_PBUF,    MEMP_NUM_PBUF,
72      MEMP_NUM_RAW_PCB,
73    MEMP_NUM_UDP_PCB,    MEMP_NUM_UDP_PCB,
74    MEMP_NUM_TCP_PCB,    MEMP_NUM_TCP_PCB,
75    MEMP_NUM_TCP_PCB_LISTEN,    MEMP_NUM_TCP_PCB_LISTEN,
# Line 81  static const u16_t memp_num[MEMP_MAX] = Line 84  static const u16_t memp_num[MEMP_MAX] =
84  static u8_t memp_memory[(MEMP_NUM_PBUF *  static u8_t memp_memory[(MEMP_NUM_PBUF *
85         MEM_ALIGN_SIZE(sizeof(struct pbuf) +         MEM_ALIGN_SIZE(sizeof(struct pbuf) +
86            sizeof(struct memp)) +            sizeof(struct memp)) +
87          MEMP_NUM_RAW_PCB *
88           MEM_ALIGN_SIZE(sizeof(struct raw_pcb) +
89              sizeof(struct memp)) +
90        MEMP_NUM_UDP_PCB *        MEMP_NUM_UDP_PCB *
91         MEM_ALIGN_SIZE(sizeof(struct udp_pcb) +         MEM_ALIGN_SIZE(sizeof(struct udp_pcb) +
92            sizeof(struct memp)) +            sizeof(struct memp)) +

Legend:
Removed from v.1.17.2.1  
changed lines
  Added in v.1.17.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26