Home | History | Annotate | Download | only in route

Lines Matching refs:peer

21  * @note The address may not contain a prefix length if the peer address
40 * // The peer address can be specified if necessary, in either case a peer
43 * // Note: Real peer addresses are only supported by IPv4 for now.
80 * // local nor peer address have been specified.
91 * // The peer address can be specified if necessary, in either case a peer
94 * // Note: Real peer addresses are only supported by IPv4 for now.
261 * with IFA_ADDRESS being the peer address if they differ */
348 nl_dump(p, " peer %s",
445 diff |= ADDR_DIFF(PEER, nl_addr_cmp(a->a_peer, b->a_peer));
471 __ADD(ADDR_ATTR_PEER, peer)
717 * - peer address (rtnl_addr_set_peer(), IPv4 only)
840 * Modifies the length of the prefix. If the address object contains a peer
844 * If the address object contains a peer or local address the corresponding
861 * The prefix length always applies to the peer address if
862 * a peer address is present.
935 /* Prohibit local address with prefix length if peer address is present */
944 /* Never overwrite the prefix length if a peer address is present */
956 int rtnl_addr_set_peer(struct rtnl_addr *addr, struct nl_addr *peer)
960 if (peer && peer->a_family != AF_INET)
963 err = __assign_addr(addr, &addr->a_peer, peer, ADDR_ATTR_PEER);
967 rtnl_addr_set_prefixlen(addr, peer ? nl_addr_get_prefixlen(peer) : 0);