Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
NewBugger committed Jan 31, 2018
1 parent c3c7ea9 commit 3e20bc9
Show file tree
Hide file tree
Showing 19 changed files with 11,586 additions and 0 deletions.
926 changes: 926 additions & 0 deletions General/CentOS/source/tcp_bbr.c

Large diffs are not rendered by default.

976 changes: 976 additions & 0 deletions General/CentOS/source/tcp_nanqinlang.c

Large diffs are not rendered by default.

926 changes: 926 additions & 0 deletions General/Debian/source/kernel-v4.12andbelow/tcp_bbr.c

Large diffs are not rendered by default.

976 changes: 976 additions & 0 deletions General/Debian/source/kernel-v4.12andbelow/tcp_nanqinlang.c

Large diffs are not rendered by default.

954 changes: 954 additions & 0 deletions General/Debian/source/kernel-v4.13/tcp_bbr.c

Large diffs are not rendered by default.

1,006 changes: 1,006 additions & 0 deletions General/Debian/source/kernel-v4.13/tcp_nanqinlang.c

Large diffs are not rendered by default.

954 changes: 954 additions & 0 deletions General/Debian/source/kernel-v4.14/tcp_bbr.c

Large diffs are not rendered by default.

968 changes: 968 additions & 0 deletions General/Debian/source/kernel-v4.14/tcp_nanqinlang.c

Large diffs are not rendered by default.

962 changes: 962 additions & 0 deletions General/Debian/source/kernel-v4.15/tcp_bbr.c

Large diffs are not rendered by default.

976 changes: 976 additions & 0 deletions General/Debian/source/kernel-v4.15/tcp_nanqinlang.c

Large diffs are not rendered by default.

Binary file added LKL/mod/tcp_nanqinlang.so
Binary file not shown.
3 changes: 3 additions & 0 deletions LKL/requirement/load.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

LD_PRELOAD=/home/tcp_nanqinlang/tcp_nanqinlang.so LKL_HIJACK_NET_QDISC="root|fq" LKL_HIJACK_SYSCTL="net.ipv4.tcp_congestion_control=nanqinlang;net.ipv4.tcp_fastopen=3;net.ipv4.tcp_wmem=4096 87380 2147483647" LKL_HIJACK_OFFLOAD="0x9983" LKL_HIJACK_NET_IFTYPE=tap LKL_HIJACK_NET_IFPARAMS=lkl-tap LKL_HIJACK_NET_IP=10.0.0.2 LKL_HIJACK_NET_NETMASK_LEN=24 LKL_HIJACK_NET_GATEWAY=10.0.0.1 haproxy -f /home/tcp_nanqinlang/haproxy.cfg
8 changes: 8 additions & 0 deletions LKL/requirement/redirect.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

ip tuntap add lkl-tap mode tap
ip addr add 10.0.0.1/24 dev lkl-tap
ip link set lkl-tap up
sysctl -w net.ipv4.ip_forward=1
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o venet0 -j MASQUERADE
4 changes: 4 additions & 0 deletions LKL/requirement/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
cd /home/tcp_nanqinlang
nohup bash load.sh &
bash redirect.sh
926 changes: 926 additions & 0 deletions LKL/source/tcp_bbr.c

Large diffs are not rendered by default.

976 changes: 976 additions & 0 deletions LKL/source/tcp_nanqinlang.c

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions Makefile/Makefile-CentOS
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
obj-m := tcp_nanqinlang.o

all:
make -C /lib/modules/`uname -r`/build M=`pwd` modules CC=/usr/bin/gcc

clean:
make -C /lib/modules/`uname -r`/build M=`pwd` clean

install:
install tcp_nanqinlang.ko /lib/modules/`uname -r`/kernel/net/ipv4
insmod /lib/modules/`uname -r`/kernel/net/ipv4/tcp_nanqinlang.ko
depmod -a

uninstall:
rm /lib/modules/`uname -r`/kernel/net/ipv4/tcp_nanqinlang.ko
15 changes: 15 additions & 0 deletions Makefile/Makefile-Debian7or8
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
obj-m := tcp_nanqinlang.o

all:
make -C /lib/modules/`uname -r`/build M=`pwd` modules CC=/usr/bin/gcc-4.9

clean:
make -C /lib/modules/`uname -r`/build M=`pwd` clean

install:
install tcp_nanqinlang.ko /lib/modules/`uname -r`/kernel/net/ipv4
insmod /lib/modules/`uname -r`/kernel/net/ipv4/tcp_nanqinlang.ko
depmod -a

uninstall:
rm /lib/modules/`uname -r`/kernel/net/ipv4/tcp_nanqinlang.ko
15 changes: 15 additions & 0 deletions Makefile/Makefile-Debian9
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
obj-m := tcp_nanqinlang.o

all:
make -C /lib/modules/`uname -r`/build M=`pwd` modules CC=/usr/bin/gcc-6

clean:
make -C /lib/modules/`uname -r`/build M=`pwd` clean

install:
install tcp_nanqinlang.ko /lib/modules/`uname -r`/kernel/net/ipv4
insmod /lib/modules/`uname -r`/kernel/net/ipv4/tcp_nanqinlang.ko
depmod -a

uninstall:
rm /lib/modules/`uname -r`/kernel/net/ipv4/tcp_nanqinlang.ko

0 comments on commit 3e20bc9

Please sign in to comment.