[libvirt] [ 3/3] assign peer address if it provided in network
Vasiliy Tolstov
v.tolstov at selfip.ru
Wed Mar 23 11:54:27 UTC 2016
2016-03-23 14:52 GMT+03:00 Daniel P. Berrange <berrange at redhat.com>:
> Ok, I took me a while to understand what the point of this is. I eventually
> found this comment in /usr/include/linux/if_addr.h
>
> * 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.
>
> Likewise in ip-address(8) manpage
>
>
> peer ADDRESS
> the address of the remote endpoint for pointopoint inter‐
> faces. Again, the ADDRESS may be followed by a slash and a
> decimal number, encoding the network prefix length. If a
> peer address is specified, the local address cannot have a
> prefix length. The network prefix is associated with the
> peer rather than with the local address.
>
>
> So, if we accept ip, broader & route info, it makes sense that we also
> accept a peer address.
Yes, and broadcast and peer (or remote) mutually exclusive.
--
Vasiliy Tolstov,
e-mail: v.tolstov at selfip.ru
More information about the libvir-list
mailing list