OSDN Git Service

migration: unify the framework of socket-type channel
authorLongpeng(Mike) <longpeng2@huawei.com>
Thu, 6 Aug 2020 07:40:29 +0000 (15:40 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 28 Aug 2020 12:34:52 +0000 (13:34 +0100)
commitd658f65c16901afd58a7ce88dcebfdefb3594924
treebd8d862f5c1a3137bbd0948db5bbdb3d1fd42587
parent3e39dac0354c39b4b647940e42360c6b1f3edc02
migration: unify the framework of socket-type channel

Currently, the only difference of tcp channel and unix channel in
migration/socket.c is the way to build SocketAddress, but socket_parse()
can handle these two types, so use it to instead of tcp_build_address()
and unix_build_address().

The socket-type channel can be further unified based on the up, this
would be helpful for us to add other socket-type channels.

Signed-off-by: Longpeng(Mike) <longpeng2@huawei.com>
Message-Id: <20200806074030.174-2-longpeng2@huawei.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/migration.c
migration/socket.c
migration/socket.h