Re: IP options


John LoVerso (decvax!linus!encore!loverso@ucbvax.Berkeley.EDU)
17 Sep 87 15:33:42 GMT


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++;



This archive was generated by hypermail 2.0b3 on Thu Mar 09 2000 - 14:39:16 GMT