Bug 24384

Summary: 4.1 Cant add entry to neighbour discovery table
Product: Base System Reporter: john.r.king <john.r.king>
Component: binAssignee: Munechika Sumikawa <sumikawa>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description john.r.king 2001-01-16 14:30:01 UTC
I am trying to add an entry to the neighbour discovery table using ndp. The command I am using is:
ndp -s aaaa:bbbb:cccc:dddd:eeee:ffff:8492:a829 0:90:27:9f:c9:2d

Each time I try I get the same error message:
cannot intuit interface index and type for aaaa:bbbb:cccc:dddd:eeee:ffff:8492:a829

I have even added an entry into the routing table to indicate the interface for that prefix but this does not seem to help. The entry from netstat -rn reads:

aaaa:bbbb:cccc:dddd:eeee:ffff::/96 2001:618:5:0:290:27ff:fe9f:c92d UGSc fxp1

How-To-Repeat: Run the command:

ndp -s aaaa:bbbb:cccc:dddd:eeee:ffff:8492:a829 0:90:27:9f:c9:2d

Error message is given on each occasion
Comment 1 Bruce M Simpson freebsd_committer freebsd_triage 2003-11-25 16:45:24 UTC
Responsible Changed
From-To: freebsd-bugs->bms

I'm in hoover up network PRs mode. I'll look into this.
Comment 2 Bruce M Simpson freebsd_committer freebsd_triage 2003-11-25 16:49:18 UTC
Responsible Changed
From-To: bms->sumikawa

sumikawa is Mr KAME, particularly ndp.c. :^)
Comment 3 sumikawa 2003-11-25 17:02:22 UTC
For making static ndp entry, direct routes must be exist like the below:

% uname -a
FreeBSD prince.don.to 4.9-STABLE FreeBSD 4.9-STABLE #18: Sat Nov  8 16:45:46 GMT 2003     sumikawa@prince.don.to:/usr/local/src/4-stable/src/sys/compile/SUMIKAWA  i386
% ifconfig fxp0 inet6 aaaa:bbbb:cccc:dddd:eeee:ffff::1/96 alias
% ndp -s aaaa:bbbb:cccc:dddd:eeee:ffff:8492:a829 0:90:27:9f:c9:2d
% ndp -na
Neighbor                        Linklayer Address  Netif Expire    St Flgs Prbs
aaaa:bbbb:cccc:dddd:eeee:ffff:0:1 0:d0:59:d8:e0:3f  fxp0 permanent R      
aaaa:bbbb:cccc:dddd:eeee:ffff:8492:a829 0:90:27:9f:c9:2d fxp0 permanent R      
fe80::2d0:59ff:fed8:e03f%fxp0   0:d0:59:d8:e0:3f    fxp0 permanent R      
fe80::eeee:ffff:8492:a829%fxp0  0:90:27:9f:c9:2d    fxp0 permanent R      
fe80::1%lo0                     (incomplete)         lo0 permanent R      
fe80::2bd:bdff:fe07:1%vmnet1    0:bd:bd:7:0:1     vmnet1 permanent R      

You can see same error in IPv4:

%arp -s 1.1.1.1 0:90:27:9f:c9:2d
cannot intuit interface index and type for 1.1.1.1

My conclusion: This is spec, not bug.

Can I close this PR?

-- Sumikawa
Comment 4 sumikawa 2003-11-25 17:06:02 UTC
I forgot to say sorry for keeping open your PR for more than two years.
Comment 5 Munechika Sumikawa freebsd_committer freebsd_triage 2003-11-25 17:14:02 UTC
State Changed
From-To: open->closed

Closed by the consensus with the originator, thanks for your contribution.