ipop-project/controllers — pull request #13 by kyuhojeong (2014-06-22 01:34:41+00:00)
Title: Source route

1. Previously, in source routing, each hopping address is delimited by certain byte field. The limiter is removed but index and hopping count field is added in source routing.
2. Connection limit. Configurable "multihop_cl" limits the number of connection. Even if a friend is online, but svpn does not create connection if the connection number exceeds. But it sends packet through multihop connection through other peers.
3. self.peer_ip4, self.peer_ip6 is added. For faster indexing its peers, these dictionaries are added. The entry is updated when peer is online and evicted on offline.
4. "route_error" is added. In source routing multihop mode, if the next hop link is broken, it will notify all the way back to the source. Then source floods "lookup_request" message again to locate alternate path.