I try understand what is difference between IFA_LOCAL and IFA_ADDRESS.
this is from man:
IFA_ADDRESS raw protocol address interface address
IFA_LOCAL raw protocol address local address
And I don't understand diff between local address and interface address.
Can some one to explain me? Or give me advice where I can find answer?
Thx.
This comment from if_addr.h
should make it clear;
/*
* 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.
*/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With