Don't add back in the IP header length to ip_len; icmp_error will do it

for us.

Obtained from: Stevens, vol. 2, p. 774
This commit is contained in:
Garrett Wollman 1995-02-16 01:25:06 +00:00
parent 5d645648b1
commit 9bb8795d71
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6479

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)udp_usrreq.c 8.4 (Berkeley) 1/21/94
* $Id: udp_usrreq.c,v 1.4 1994/10/02 17:48:45 phk Exp $
* $Id: udp_usrreq.c,v 1.5 1995/02/16 00:27:46 wollman Exp $
*/
#include <sys/param.h>
@ -265,7 +265,6 @@ udp_input(m, iphlen)
goto bad;
}
*ip = save_ip;
ip->ip_len += iphlen;
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PORT, 0, 0);
return;
}