Refactor edge packet handling

http://ci.wakame.jp/job/wakame-vnet.integration-test/126/