Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!linus!encore!loverso From: loverso@encore.UUCP (John LoVerso) Newsgroups: comp.protocols.tcp-ip Subject: Re: IP options Message-ID: <1954@encore.UUCP> Date: Thu, 17-Sep-87 11:33:42 EDT Article-I.D.: encore.1954 Posted: Thu Sep 17 11:33:42 1987 Date-Received: Sat, 19-Sep-87 15:00:08 EDT References: <423@root44.co.uk> <8709092006.AA09597@okeeffe.Berkeley.EDU> <6211@sgi.SGI.COM> Reply-To: loverso@encore.UUCP (John LoVerso) Organization: Encore Computer Corp, Marlboro, MA Lines: 69 Summary: RTF_MODIFIED In article <6211@sgi.SGI.COM> vjs@rhyolite.SGI.COM (Vernon Schryver) writes: > I have been faithfully following the 4.3 fixes posted here and in the > 'official' news group. However, RTF_MODIFIED does not seem to be > defined in my source. To my knowledge, they've never been released outside of Berkeley other than in the Tahoe-Beta release of 4.3BSD. In there, RTF_MODIFIED is defined to mean the route came in via a redirect. Here are the diffs to net/route.[ch]. With all the various versions of the 4.3 TCP/IP code I've seen, this is just about all that I've ever seen changed in net/. BTW, I'm only posting this since I haven't seen a reply from Mike Karels yet, and without this, his ip_input.c changes aren't much good. John *** /source/BSD4.3/sys/net/route.h Thu Jun 5 02:43:05 1986 --- route.h Thu Jan 15 18:09:44 1987 *************** *** 4,8 **** * specifies the terms and conditions for redistribution. * ! * @(#)route.h 7.1 (Berkeley) 6/4/86 */ --- 4,8 ---- * specifies the terms and conditions for redistribution. * ! * @(#)route.h 7.2 (Berkeley) 1/15/87 */ *************** *** 46,49 **** --- 46,50 ---- #define RTF_HOST 0x4 /* host entry (net otherwise) */ #define RTF_DYNAMIC 0x10 /* created dynamically (by redirect) */ + #define RTF_MODIFIED 0x20 /* modified dynamically (by redirect) */ /* *** /source/BSD4.3/sys/net/route.c Thu Jun 5 02:42:47 1986 --- route.c Thu Jan 15 18:09:44 1987 *************** *** 4,8 **** * specifies the terms and conditions for redistribution. * ! * @(#)route.c 7.1 (Berkeley) 6/4/86 */ --- 4,8 ---- * specifies the terms and conditions for redistribution. * ! * @(#)route.c 7.2 (Berkeley) 1/15/87 */ *************** *** 176,181 **** */ rt->rt_gateway = *gateway; } - rtstat.rts_newgateway++; } else rtstat.rts_badredirect++; --- 176,182 ---- */ rt->rt_gateway = *gateway; + rt->rt_flags |= RTF_MODIFIED; + rtstat.rts_newgateway++; } } else rtstat.rts_badredirect++;