mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* new compile problem on linux-2.4.27-pre4 and his solution
@ 2004-05-31 18:12 Sérgio M. Basto
  0 siblings, 0 replies; only message in thread
From: Sérgio M. Basto @ 2004-05-31 18:12 UTC (permalink / raw)
  To: linux-kernel

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-31 18:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-31 18:12 new compile problem on linux-2.4.27-pre4 and his solution Sérgio M. Basto

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®