diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-03-28 05:36:38 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-03-28 05:36:38 +0000 |
commit | 387cc207c995ec82a86d36b5257561a5cc36a1d4 (patch) | |
tree | d26d0c5af05dc0383c74e7afd98ff4b1d3b9c6f6 /cpukit/libnetworking/netinet | |
parent | 2007-03-28 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-387cc207c995ec82a86d36b5257561a5cc36a1d4.tar.bz2 |
Use uint32_t optlen.
Diffstat (limited to 'cpukit/libnetworking/netinet')
-rw-r--r-- | cpukit/libnetworking/netinet/ip_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libnetworking/netinet/ip_output.c b/cpukit/libnetworking/netinet/ip_output.c index 3ce3901042..357bea7ab9 100644 --- a/cpukit/libnetworking/netinet/ip_output.c +++ b/cpukit/libnetworking/netinet/ip_output.c @@ -519,10 +519,10 @@ ip_insertoptions(m, opt, phlen) register struct ipoption *p = mtod(opt, struct ipoption *); struct mbuf *n; register struct ip *ip = mtod(m, struct ip *); - unsigned optlen; + uint32_t optlen; optlen = opt->m_len - sizeof(p->ipopt_dst); - if (optlen + (u_short)ip->ip_len > IP_MAXPACKET) + if (optlen + ip->ip_len > IP_MAXPACKET) return (m); /* XXX should fail */ if (p->ipopt_dst.s_addr) ip->ip_dst = p->ipopt_dst; |