linux/net/x25
Shaun Pereira a20a855479 [X25]: Fix for broken x25 module.
When a user-space server application calls bind on a socket, then in kernel
space this bound socket is considered 'x25-linked' and the SOCK_ZAPPED flag
is unset.(As in x25_bind()/af_x25.c).

Now when a user-space client application attempts to connect to the server
on the listening socket, if the kernel accepts this in-coming call, then it
returns a new socket to userland and attempts to reply to the caller.

The reply/x25_sendmsg() will fail, because the new socket created on
call-accept has its SOCK_ZAPPED flag set by x25_make_new().
(sock_init_data() called by x25_alloc_socket() called by x25_make_new()
sets the flag to SOCK_ZAPPED)).

Fix: Using the sock_copy_flag() routine available in sock.h fixes this.

Tested on 32 and 64 bit kernels with x25 over tcp.

Signed-off-by: Shaun Pereira <pereira.shaun@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-01-06 13:11:35 -08:00
..
Kconfig [NET]: move config options out to individual protocols 2005-07-11 21:13:56 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
af_x25.c [X25]: Fix for broken x25 module. 2006-01-06 13:11:35 -08:00
sysctl_net_x25.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
x25_dev.c [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
x25_facilities.c [X25]: Fast select with no restriction on response 2005-06-22 22:16:17 -07:00
x25_in.c [TCP]: Move the tcp sock states to net/tcp_states.h 2005-08-29 15:41:54 -07:00
x25_link.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
x25_out.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
x25_proc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
x25_route.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
x25_subr.c [TCP]: Move the tcp sock states to net/tcp_states.h 2005-08-29 15:41:54 -07:00
x25_timer.c [TCP]: Move the tcp sock states to net/tcp_states.h 2005-08-29 15:41:54 -07:00