/[lwip]/lwip/src/core/ipv4/ip_frag.c
ViewVC logotype

Diff of /lwip/src/core/ipv4/ip_frag.c

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

revision 1.8 by davidhaas, Wed Mar 19 22:14:49 2003 UTC revision 1.8.2.1 by likewise, Thu Apr 17 09:54:09 2003 UTC
# Line 93  static u8_t ip_reasstmr; Line 93  static u8_t ip_reasstmr;
93  static void  static void
94  ip_reass_timer(void *arg)  ip_reass_timer(void *arg)
95  {  {
96      (void)arg;
97    if(ip_reasstmr > 1) {    if(ip_reasstmr > 1) {
98      ip_reasstmr--;      ip_reasstmr--;
99      sys_timeout(IP_REASS_TMO, ip_reass_timer, NULL);      sys_timeout(IP_REASS_TMO, ip_reass_timer, NULL);
# Line 276  nullreturn: Line 277  nullreturn:
277  }  }
278    
279  #define MAX_MTU 1500  #define MAX_MTU 1500
280  static u8_t buf[MAX_MTU];  static u8_t buf[MEM_ALIGN_SIZE(MAX_MTU)];
281    
282  /**  /**
283   * Fragment an IP packet if too large   * Fragment an IP packet if too large
# Line 301  ip_frag(struct pbuf *p, struct netif *ne Line 302  ip_frag(struct pbuf *p, struct netif *ne
302    /* Get a RAM based MTU sized pbuf */    /* Get a RAM based MTU sized pbuf */
303    rambuf = pbuf_alloc(PBUF_LINK, 0, PBUF_REF);    rambuf = pbuf_alloc(PBUF_LINK, 0, PBUF_REF);
304    rambuf->tot_len = rambuf->len = mtu;    rambuf->tot_len = rambuf->len = mtu;
305    rambuf->payload = buf;    rambuf->payload = MEM_ALIGN((void *)buf);
306    
307    
308    /* Copy the IP header in it */    /* Copy the IP header in it */

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.8.2.1

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