netdev
[Top] [All Lists]

Disconnecting a connected UDP socket

To: netdev@xxxxxxxxxxx
Subject: Disconnecting a connected UDP socket
From: Shibu LKML <shibu_lkml@xxxxxxxxx>
Date: Wed, 2 Jul 2003 20:16:10 -0700 (PDT)
Sender: netdev-bounce@xxxxxxxxxxx
Hi,
 
I am wondering if Linux supports disconnecting a connected UDP socket. The manpage for connect lists it in the BUGS section. It says disconnect is still not supported. I was wondering if it involves more than adding the following lines to udp_connect in udp.c
 
if (usin->sin_family == AF_UNSPEC)
  return udp_disconnect(sk, 0);
(just  above sk_dst_reset(sk))
 
Will this fix the problem for IPV4 stuff?
 
 
Regards
Shibu
 


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
<Prev in Thread] Current Thread [Next in Thread>