diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-20 16:16:55 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-20 16:16:55 +0200 |
commit | d52f208d9fb6381f3c3656c5916866a4b779fa82 (patch) | |
tree | 05b08cf037283f1c7a9e10001c962f42422a9aac /src/peer.h | |
parent | f6640a80f4be19e988fd7426c3f897f4d3f614e4 (diff) | |
download | fastd-d52f208d9fb6381f3c3656c5916866a4b779fa82.tar fastd-d52f208d9fb6381f3c3656c5916866a4b779fa82.zip |
Use v4-mapped addresses for IPv4 peers on IPv6 sockets
This is needed at least on FreeBSD
Diffstat (limited to 'src/peer.h')
-rw-r--r-- | src/peer.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -100,6 +100,7 @@ struct fastd_remote_config { bool fastd_peer_address_equal(const fastd_peer_address_t *addr1, const fastd_peer_address_t *addr2); void fastd_peer_address_simplify(fastd_peer_address_t *addr); +void fastd_peer_address_widen(fastd_peer_address_t *addr); static inline uint16_t fastd_peer_address_get_port(const fastd_peer_address_t *addr) { switch (addr->sa.sa_family) { |