patch-1.3.86 linux/net/netrom/af_netrom.c

Next file: linux/net/netsyms.c
Previous file: linux/net/ipx/af_ipx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.85/linux/net/netrom/af_netrom.c linux/net/netrom/af_netrom.c
@@ -432,25 +432,11 @@
 	sk->socket        = sock;
 	sk->type          = sock->type;
 	sk->protocol      = protocol;
-	sk->dead          = 0;
-	sk->next          = NULL;
-	sk->broadcast     = 0;
 	sk->allocation	  = GFP_KERNEL;
 	sk->rcvbuf        = SK_RMEM_MAX;
 	sk->sndbuf        = SK_WMEM_MAX;
-	sk->wmem_alloc    = 0;
-	sk->rmem_alloc    = 0;
-	sk->users         = 0;
-	sk->debug         = 0;
-	sk->destroy       = 0;
-	sk->prot          = NULL;	/* So we use default free mechanisms */
-	sk->err           = 0;
-	sk->localroute    = 0;
-	sk->send_head     = NULL;
 	sk->state         = TCP_CLOSE;
-	sk->shutdown      = 0;
 	sk->priority      = SOPRI_NORMAL;
-	sk->ack_backlog   = 0;
 	sk->mtu           = NETROM_MTU;	/* 236 */
 	sk->zapped        = 1;
 	sk->window	  = nr_default.window;
@@ -532,26 +518,13 @@
 
 	sk->type        = osk->type;
 	sk->socket      = osk->socket;
-	sk->dead        = 0;
-	sk->next        = NULL;
 	sk->priority    = osk->priority;
-	sk->broadcast   = 0;
 	sk->protocol    = osk->protocol;
 	sk->rcvbuf      = osk->rcvbuf;
 	sk->sndbuf      = osk->sndbuf;
-	sk->wmem_alloc  = 0;
-	sk->rmem_alloc  = 0;
-	sk->users       = 0;
-	sk->ack_backlog = 0;
-	sk->destroy     = 0;
-	sk->prot        = NULL;	/* So we use default free mechanisms */
-	sk->err         = 0;
-	sk->localroute  = 0;
-	sk->send_head   = NULL;
 	sk->debug       = osk->debug;
 	sk->state       = TCP_ESTABLISHED;
 	sk->window      = osk->window;
-	sk->shutdown    = 0;
 	sk->mtu         = osk->mtu;
 	sk->sleep       = osk->sleep;
 	sk->zapped      = osk->zapped;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this