[comp.unix.wizards] RTF_DYNAMIC in SunOS 3.4

budd@bu-cs.BU.EDU (Philip Budne) (01/06/88)

SunOS 3.4 listens to ICMP redirects and creates new route entries, but
the RTF_DYNAMIC which is passed to rtrequest (in net/route.c) does not
preserve this flag;

316c357,358
<                   RTF_UP | (entry->rt_flags & (RTF_HOST|RTF_GATEWAY));
---
>                   RTF_UP | (entry->rt_flags & /* budd -- add dynamic */
>                             (RTF_HOST|RTF_GATEWAY|RTF_DYNAMIC));

Netstat can be changed to display this as a 'D' ala 4.3; in
/usr/src/ucb/netstat/route.c:

        { RTF_HOST,     'H' },
        { RTF_DYNAMIC,  'D' },          /* budd */
        { 0 }

Of course these darling children never get flushed; TOPS-20 would
periodically ping gateways created via redirects and flush them when
they did not respond.