Path: utzoo!mnetor!uunet!husc6!bu-cs!budd From: budd@bu-cs.BU.EDU (Philip Budne) Newsgroups: comp.unix.wizards Subject: RTF_DYNAMIC in SunOS 3.4 Message-ID: <18239@bu-cs.BU.EDU> Date: 5 Jan 88 23:05:10 GMT Organization: Boston U. Comp. Sci. Lines: 20 Keywords: RTF_DYNAMIC ICMP redirect route 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.