rtnetlink(Linux)中IFA_LOCAL和IFA_ADDRESS的区别

问题描述:

我试着了解IFA_LOCAL和IFA_ADDRESS之间的区别。rtnetlink(Linux)中IFA_LOCAL和IFA_ADDRESS的区别

这是从人:

IFA_ADDRESS raw protocol address interface address 
IFA_LOCAL raw protocol address local address 

而且我不明白的本地地址和接口地址之间的差异。

有人可以解释我吗?或者给我建议,我可以在哪里找到答案?

THX。

此评论来自if_addr.h应该说清楚;

/* 
* Important comment: 
* IFA_ADDRESS is prefix address, rather than local interface address. 
* It makes no difference for normally configured broadcast interfaces, 
* but for point-to-point IFA_ADDRESS is DESTINATION address, 
* local address is supplied in IFA_LOCAL attribute. 
*/