mac_to_ip() calculates an ipv6 address from a mac address according to RFC 4291. For wireguard we have to use specially crafted addresses that must be unique. This allows calculating such unique mac-based addresses by allowing to optionally specifying the bytes to be inserted into the address. |
||
|---|---|---|
| .. | ||
| bin | ||
| lib/lua/gluon | ||