From: "Sérgio M. Basto" <sergiomb@netcabo.pt>
To: linux-kernel@vger.kernel.org
Subject: new compile problem on linux-2.4.27-pre4 and his solution
Date: Mon, 31 May 2004 19:12:00 +0100 [thread overview]
Message-ID: <1086027120.4097.13.camel@rh10.fe.up.pt> (raw)
Hi this happens on pre4 and not happen on pre3
tcp_input.c: In function `tcp_rcv_space_adjust':
tcp_input.c:479: structure has no member named `sk_rcvbuf'
tcp_input.c:480: structure has no member named `sk_rcvbuf'
make[3]: *** [tcp_input.o] Error 1
make bzImage error !
find . -exec grep "sk_rcvbuf" {} \; -print
results:
#define sk_rcvbuf rcvbuf
./include/net/sctp/compat.h
newsk->sk_rcvbuf = oldsk->sk_rcvbuf;
./net/sctp/socket.c
if (sk->sk_rcvbuf < SCTP_DEFAULT_MINWINDOW)
asoc->rwnd = sk->sk_rcvbuf;
min_t(__u32, (asoc->base.sk->sk_rcvbuf >> 1),
asoc->pmtu)))
./net/sctp/associola.c
if (space > sk->sk_rcvbuf)
sk->sk_rcvbuf = space;
./net/ipv4/tcp_input.c
So #define sk_rcvbuf rcvbuf
and I feel free to do this and resolve the compile problem.
--- linux-2.4.27-pre4/net/ipv4/tcp_input.c.orig 2004-05-31 18:45:06.000000000 +0100
+++ linux-2.4.27-pre4/net/ipv4/tcp_input.c 2004-05-31 18:54:11.000000000 +0100
@@ -476,8 +476,8 @@
16 + sizeof(struct sk_buff));
space *= rcvmem;
space = min(space, sysctl_tcp_rmem[2]);
- if (space > sk->sk_rcvbuf)
- sk->sk_rcvbuf = space;
+ if (space > sk->rcvbuf)
+ sk->rcvbuf = space;
}
}
thanks,
Sergio M. B.
reply other threads:[~2004-05-31 18:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1086027120.4097.13.camel@rh10.fe.up.pt \
--to=sergiomb@netcabo.pt \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®