mirror of https://gitee.com/openkylin/linux.git
f55628b3e7
When do cat /proc/net/netstat, the output isn't append with a new line, it looks like this:
[root@localhost ~]# cat /proc/net/netstat
...
MPTcpExt: 0 0 0 0 0 0 0 0 0 0 0 0 0[root@localhost ~]#
This is because in mptcp_seq_show(), if mptcp isn't in use, net->mib.mptcp_statistics is NULL,
so it just puts all 0 after "MPTcpExt:", and return, forgot the '\n'.
After this patch:
[root@localhost ~]# cat /proc/net/netstat
...
MPTcpExt: 0 0 0 0 0 0 0 0 0 0 0 0 0
[root@localhost ~]#
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
crypto.c | ||
crypto_test.c | ||
ctrl.c | ||
diag.c | ||
mib.c | ||
mib.h | ||
mptcp_diag.c | ||
options.c | ||
pm.c | ||
pm_netlink.c | ||
protocol.c | ||
protocol.h | ||
subflow.c | ||
syncookies.c | ||
token.c | ||
token_test.c |