Changeset 387cc207 in rtems


Ignore:
Timestamp:
Mar 28, 2007, 5:36:38 AM (13 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
d3819b5
Parents:
de4b317
Message:

Use uint32_t optlen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/netinet/ip_output.c

    rde4b317 r387cc207  
    520520        struct mbuf *n;
    521521        register struct ip *ip = mtod(m, struct ip *);
    522         unsigned optlen;
     522        uint32_t optlen;
    523523
    524524        optlen = opt->m_len - sizeof(p->ipopt_dst);
    525         if (optlen + (u_short)ip->ip_len > IP_MAXPACKET)
     525        if (optlen + ip->ip_len > IP_MAXPACKET)
    526526                return (m);             /* XXX should fail */
    527527        if (p->ipopt_dst.s_addr)
Note: See TracChangeset for help on using the changeset viewer.