1.net/ipv4/tcp_input.c修改:
EXPORT_SYMBOL(sysctl_tcp_moderate_rcvbuf);
void rcp_rcv_initial(struct sock *sk)
{
}
void (*new_tcp_rcv_fp)(struct sock * )=&rcp_rcv_initial;
EXPORT_SYMBOL(new_tcp_rcv_fp);
int zjh;
EXPORT_SYMBOL(zjh);
void tcp_rcv_space_adjust(struct sock *sk)
{
(*new_tcp_rcv_fp)(sk);
}
2.include/linux/tcp.h修改:
2.1tcp_sock结构体添加:u32 cwnd_est;//zjh changed
2.2struct {
u32 rtt;
u32 seq;
u32 time;
u32 rtt_min;//zjh changed!
} rcv_rtt_est;