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:[EMAIL PROTECTED]




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to