clowwindy / tcp_evil

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make error

hybla0 opened this issue · comments

hi @clowwindy ,
i am trying to install this module, but i am getting the following error:
"no rule to make target modules stop"
i am using debian 10 buster Linux 4.19.0-9-amd64

edit : ok i solved the problem above but i am getting the following errors :

/home/debian/tcp_evil/tcp_evil.c: In function ‘evil_recalc_param’:
/home/debian/tcp_evil/tcp_evil.c:42:39: error: ‘struct tcp_sock’ has no member named ‘srtt’; did you mean ‘frto’?
ca->rho_3ls = max_t(u32, tcp_sk(sk)->srtt / msecs_to_jiffies(rtt0), 8);
^~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:863:22: note: in definition of macro ‘__typecheck’
(!!(sizeof((typeof(x) *)1 == (typeof(y) )1)))
^
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:887:24: note: in expansion of macro ‘__safe_cmp’
__builtin_choose_expr(__safe_cmp(x, y),
^~~~~~~~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:963:27: note: in expansion of macro ‘__careful_cmp’
#define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
^~~~~~~~~~~~~
/home/debian/tcp_evil/tcp_evil.c:42:16: note: in expansion of macro ‘max_t’
ca->rho_3ls = max_t(u32, tcp_sk(sk)->srtt / msecs_to_jiffies(rtt0), 8);
^~~~~
/home/debian/tcp_evil/tcp_evil.c:42:39: error: ‘struct tcp_sock’ has no member named ‘srtt’; did you mean ‘frto’?
ca->rho_3ls = max_t(u32, tcp_sk(sk)->srtt / msecs_to_jiffies(rtt0), 8);
^~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:871:48: note: in definition of macro ‘__is_constexpr’
(sizeof(int) == sizeof(
(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
^
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:877:25: note: in expansion of macro ‘__no_side_effects’
(__typecheck(x, y) && __no_side_effects(x, y))
^~~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:887:24: note: in expansion of macro ‘__safe_cmp’
__builtin_choose_expr(__safe_cmp(x, y),
^~~~~~~~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:963:27: note: in expansion of macro ‘__careful_cmp’
#define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
^~~~~~~~~~~~~
/home/debian/tcp_evil/tcp_evil.c:42:16: note: in expansion of macro ‘max_t’
ca->rho_3ls = max_t(u32, tcp_sk(sk)->srtt / msecs_to_jiffies(rtt0), 8);
^~~~~
/home/debian/tcp_evil/tcp_evil.c:42:39: error: ‘struct tcp_sock’ has no member named ‘srtt’; did you mean ‘frto’?
ca->rho_3ls = max_t(u32, tcp_sk(sk)->srtt / msecs_to_jiffies(rtt0), 8);
^~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:879:27: note: in definition of macro ‘__cmp’
#define __cmp(x, y, op) ((x) op (y) ? (x) : (y))
^
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:963:27: note: in expansion of macro ‘__careful_cmp’
#define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
^~~~~~~~~~~~~
/home/debian/tcp_evil/tcp_evil.c:42:16: note: in expansion of macro ‘max_t’
ca->rho_3ls = max_t(u32, tcp_sk(sk)->srtt / msecs_to_jiffies(rtt0), 8);
^~~~~
/home/debian/tcp_evil/tcp_evil.c:42:39: error: ‘struct tcp_sock’ has no member named ‘srtt’; did you mean ‘frto’?
ca->rho_3ls = max_t(u32, tcp_sk(sk)->srtt / msecs_to_jiffies(rtt0), 8);
^~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:879:40: note: in definition of macro ‘__cmp’
#define __cmp(x, y, op) ((x) op (y) ? (x) : (y))
^
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:963:27: note: in expansion of macro ‘__careful_cmp’
#define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
^~~~~~~~~~~~~
/home/debian/tcp_evil/tcp_evil.c:42:16: note: in expansion of macro ‘max_t’
ca->rho_3ls = max_t(u32, tcp_sk(sk)->srtt / msecs_to_jiffies(rtt0), 8);
^~~~~
/home/debian/tcp_evil/tcp_evil.c:42:39: error: ‘struct tcp_sock’ has no member named ‘srtt’; did you mean ‘frto’?
ca->rho_3ls = max_t(u32, tcp_sk(sk)->srtt / msecs_to_jiffies(rtt0), 8);
^~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:882:10: note: in definition of macro ‘__cmp_once’
typeof(x) unique_x = (x);
^
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:963:27: note: in expansion of macro ‘__careful_cmp’
#define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
^~~~~~~~~~~~~
/home/debian/tcp_evil/tcp_evil.c:42:16: note: in expansion of macro ‘max_t’
ca->rho_3ls = max_t(u32, tcp_sk(sk)->srtt / msecs_to_jiffies(rtt0), 8);
^~~~~
/home/debian/tcp_evil/tcp_evil.c:42:39: error: ‘struct tcp_sock’ has no member named ‘srtt’; did you mean ‘frto’?
ca->rho_3ls = max_t(u32, tcp_sk(sk)->srtt / msecs_to_jiffies(rtt0), 8);
^~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:882:25: note: in definition of macro ‘__cmp_once’
typeof(x) unique_x = (x);
^
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:963:27: note: in expansion of macro ‘__careful_cmp’
#define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
^~~~~~~~~~~~~
/home/debian/tcp_evil/tcp_evil.c:42:16: note: in expansion of macro ‘max_t’
ca->rho_3ls = max_t(u32, tcp_sk(sk)->srtt / msecs_to_jiffies(rtt0), 8);
^~~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:887:2: error: first argument to ‘__builtin_choose_expr’ not a constant
__builtin_choose_expr(__safe_cmp(x, y),
^~~~~~~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:963:27: note: in expansion of macro ‘__careful_cmp’
#define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
^~~~~~~~~~~~~
/home/debian/tcp_evil/tcp_evil.c:42:16: note: in expansion of macro ‘max_t’
ca->rho_3ls = max_t(u32, tcp_sk(sk)->srtt / msecs_to_jiffies(rtt0), 8);
^~~~~
/home/debian/tcp_evil/tcp_evil.c: In function ‘evil_init’:
/home/debian/tcp_evil/tcp_evil.c:66:19: error: ‘struct tcp_sock’ has no member named ‘srtt’; did you mean ‘frto’?
ca->minrtt = tp->srtt;
^~~~
frto
/home/debian/tcp_evil/tcp_evil.c: In function ‘evil_cong_avoid’:
/home/debian/tcp_evil/tcp_evil.c:99:10: error: ‘struct tcp_sock’ has no member named ‘srtt’; did you mean ‘frto’?
if (tp->srtt < ca->minrtt){
^~~~
frto
/home/debian/tcp_evil/tcp_evil.c:101:20: error: ‘struct tcp_sock’ has no member named ‘srtt’; did you mean ‘frto’?
ca->minrtt = tp->srtt;
^~~~
frto
/home/debian/tcp_evil/tcp_evil.c:104:7: error: too many arguments to function ‘tcp_is_cwnd_limited’
if (!tcp_is_cwnd_limited(sk, in_flight))
^~~~~~~~~~~~~~~~~~~
In file included from /home/debian/tcp_evil/tcp_evil.c:17:
/usr/src/linux-headers-4.19.0-9-common/include/net/tcp.h:1229:20: note: declared here
static inline bool tcp_is_cwnd_limited(const struct sock *sk)
^~~~~~~~~~~~~~~~~~~
/home/debian/tcp_evil/tcp_evil.c: At top level:
/home/debian/tcp_evil/tcp_evil.c:182:3: error: ‘struct tcp_congestion_ops’ has no member named ‘min_cwnd’; did you mean ‘undo_cwnd’?
.min_cwnd = tcp_reno_min_cwnd,
^~~~~~~~
undo_cwnd
/home/debian/tcp_evil/tcp_evil.c:182:14: error: ‘tcp_reno_min_cwnd’ undeclared here (not in a function); did you mean ‘tcp_reno_undo_cwnd’?
.min_cwnd = tcp_reno_min_cwnd,
^~~~~~~~~~~~~~~~~
tcp_reno_undo_cwnd