Subject: Re: kern/4827
To: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
From: None <itojun@iijlab.net>
List: tech-net
Date: 02/05/2001 23:11:31
>On Mon, Feb 05, 2001 at 12:55:05PM +0900, Jun-ichiro itojun Hagino wrote:
>> http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=3D4827
>>
>> now, what should we do?
>> 1. ignore icmp redirect if we have RTF_HOST|RTF_STATIC entry.
>> it will not cause the entry to get updated, and can cause
>> lots of icmp redirects. but since it is the root user who asked
>> for the entry, maybe the kernel shouldn't modify it.
>Hm, is RTF_STATIC what is set, for example, by arp -s .... permanent ?
>In this case, 1. seems ok to me.
"arp -s foo bar" will add RTF_{UP,HOST,LLINFO,STATIC}.
itojun
itojun[starfruit:~/k/kame/kame/sys/netinet6] SU arp -s 210.160.95.109 0:0:0:0:0:0
itojun[starfruit:~/k/kame/kame/sys/netinet6] arp -n -a ? (210.160.95.97) at 00:c0:f6:b0:1c:f5
? (210.160.95.109) at 00:00:00:00:00:00 permanent
? (210.160.95.110) at 00:a0:de:00:34:a7
itojun[starfruit:~/k/kame/kame/sys/netinet6] netstat -rn -f inet
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Interface
default 210.160.95.110 UGS 4 1158 1500 wi0
127.0.0.1 127.0.0.1 UH 2 8623 33228 lo0
210.160.95.96/28 link#14 UC 2 0 1500 wi0
210.160.95.97 00:c0:f6:b0:1c:f5 UHLc 2 3448 1500 wi0
210.160.95.106 127.0.0.1 UGHS 0 0 33228 lo0
210.160.95.109 00:00:00:00:00:00 UHLS 0 0 1500 wi0
210.160.95.110 00:a0:de:00:34:a7 UHLc 1 0 1500 wi0