(OK)(paper-7) port mptcp on Android-4.4
include/net/mptcp* (4 files)
net/mptcp/mptcp* (9 files)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
search mptcp, modify files in PC
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-------------------------------------------------------------------------------------------
/opt/share-vm/mptcp_nexus5/mptcp_nexus5-master --> /opt/share-vm/mptcp_nexus5/kernel-ztg
-------------------------------------------------------------------------------------------
// ztg add, mptcp begin
// ztg add, mptcp end
-------------------------------------------------------------------------------------------
include/linux/tcp.h
include/net/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c
net/ipv4/tcp_minisocks.c
net/ipv4/tcp_timer.c
net/ipv4/af_inet.c
net/ipv4/inet_connection_sock.c
-------------------------------------------------------------------------------------------
then, search the following strings in files above.
-------------------------------------------------------------------------------------------
->mpc
mopt
meta_sk
-------------------------------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
first, backup files to directory backup in IBM Server
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
cd /opt/android-x86/android-x86-6.0-rc1/kernel
mkdir -p backup/include/{linux,net} backup/net/{ipv4,ipv6}
cp include/linux/tcp.h backup/include/linux/
cp include/net/tcp.h backup/include/net/
cp net/ipv4/{tcp.c,tcp_input.c,tcp_output.c,tcp_ipv4.c,tcp_minisocks.c,tcp_timer.c,af_inet.c,inet_connection_sock.c} backup/net/ipv4/
cp net/ipv6/tcp_ipv6.c backup/net/ipv6/
------------------------------------------------
restore files from directory backup in IBM Server
------------------------------------------------
cd /opt/android-x86/android-x86-6.0-rc1/kernel
cp backup/include/linux/tcp.h include/linux/
cp backup/include/net/tcp.h include/net/
cp backup/net/ipv4/{tcp.c,tcp_input.c,tcp_output.c,tcp_ipv4.c,tcp_minisocks.c,tcp_timer.c,af_inet.c,inet_connection_sock.c} net/ipv4/
cp backup/net/ipv6/tcp_ipv6.c net/ipv6/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
second, in PC, copy files modified to IBM Server
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
cd /opt/share-vm/mptcp_nexus5/kernel-ztg/
scp include/linux/tcp.h 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/include/linux/
scp include/net/tcp.h 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/include/net/
scp net/ipv4/{tcp.c,tcp_input.c,tcp_output.c,tcp_ipv4.c,tcp_minisocks.c,tcp_timer.c,af_inet.c,inet_connection_sock.c} 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/net/ipv4/
scp net/ipv6/tcp_ipv6.c 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/net/ipv6/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
third, in IBM Server, download mptcp
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++