From 387cc207c995ec82a86d36b5257561a5cc36a1d4 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 28 Mar 2007 05:36:38 +0000 Subject: Use uint32_t optlen. --- cpukit/libnetworking/netinet/ip_output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/libnetworking/netinet') 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; -- cgit v1.2.3