ipop-project/socialvpn — pull request #12 by kyuhojeong (2014-03-03 01:10:56+00:00)
Title: Multihop mode is added

- Each controller now runs TCP server with its ipop tap device. This server runs only in IPv6.
- On reciving unresolved destination address, the tincan forward this packet to controller. The controller look for this address by multicasting "lookup_request" through TCP connections.
- If the destination node is found, it replies "lookup_reply" message. On returning the packet, each hopping controllers update the "far_peers".
- "inject_to_channel" message is added between controller and tincan interface. This message directly inject packet to certain peers.
- We assume not much traffic would flow in multihop mode. TCP socket is created per packet, so the overhead and port resource waste is more or less large.
- To keep the simplicity of the code, TCP server is integrated with UdpServer server method.