Subject: Re: getting rid of NTOHS() in ip_input()
To: Jun-ichiro itojun Hagino <itojun@iijlab.net>
From: enami tsugutomo <enami@sm.sony.co.jp>
List: tech-net
Date: 08/13/2002 12:06:45
Jun-ichiro itojun Hagino <itojun@iijlab.net> writes:

> -			NTOHS(ip->ip_len);
> -			ip->ip_len += msiz;
> +			ip->ip_len = htons(ntohs(ip->ip_len) + msiz);

You are modifying mbuf anyway, aren't you?

m_pullup if mbuf is readonly is better, isn't it?

enami.