Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2002 18:22:13 +0400 (MSD)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        freebsd-net@freebsd.org
Subject:   patch for review, misc/42121, incorrect IPOPT_TS processing
Message-ID:  <20021007181752.B1993-100000@news1.macomnet.ru>

next in thread | raw e-mail | index | archive | help

Hello -net,

misc/42121 has a detailed problem description, fix is obvious. Here is
a patch:

Index: ip_input.c
===================================================================
RCS file: /home/ncvs/src/sys/netinet/ip_input.c,v
retrieving revision 1.210
diff -u -r1.210 ip_input.c
--- ip_input.c	28 Sep 2002 17:15:25 -0000	1.210
+++ ip_input.c	7 Oct 2002 14:04:06 -0000
@@ -1405,6 +1405,7 @@
 				(void)memcpy(sin, &IA_SIN(ia)->sin_addr,
 				    sizeof(struct in_addr));
 				cp[IPOPT_OFFSET] += sizeof(struct in_addr);
+				off += sizeof(struct in_addr);
 				break;

 			case IPOPT_TS_PRESPEC:
@@ -1418,6 +1419,7 @@
 				if (ifa_ifwithaddr((SA)&ipaddr) == 0)
 					continue;
 				cp[IPOPT_OFFSET] += sizeof(struct in_addr);
+				off += sizeof(struct in_addr);
 				break;

 			default:

%%%

Any objections?

-- 
Maxim Konovalov, MAcomnet, Internet Dept., system engineer
phone: +7 (095) 796-9079, mailto:maxim@macomnet.ru




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021007181752.B1993-100000>