From owner-freebsd-questions Fri Feb 25 15:52:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cs.tamu.edu (clavin.cs.tamu.edu [128.194.130.106]) by hub.freebsd.org (Postfix) with ESMTP id D8E3937BB70 for ; Fri, 25 Feb 2000 15:52:31 -0800 (PST) (envelope-from sks1974@cs.tamu.edu) Received: from dilbert.cs.tamu.edu (IDENT:2708@dilbert [128.194.133.100]) by cs.tamu.edu (8.9.3/8.9.3) with ESMTP id RAA07848 for ; Fri, 25 Feb 2000 17:52:14 -0600 (CST) Received: from localhost (sks1974@localhost) by dilbert.cs.tamu.edu (8.9.3/8.9.3) with ESMTP id RAA00852 for ; Fri, 25 Feb 2000 17:52:14 -0600 (CST) X-Authentication-Warning: dilbert.cs.tamu.edu: sks1974 owned process doing -bs Date: Fri, 25 Feb 2000 17:52:14 -0600 (CST) From: Suresh Kumar Satapati X-Sender: sks1974@dilbert To: freebsd-questions@freebsd.org Subject: PCB question Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hai I have an 'inp' pointer, which has a 'tcpcb' attached to it through its inp_ppcb member. Now, in udp_usrreq.c, i want to get a pointer to the above mentioned 'tcpcb'. My code doesnt get the right pointer to the tcpcb. here is how the code looks s = splnet(); struct tcpcb * tcpptr = (struct tcpcb *) inp->inp_ppcb; ... ... splx(s); Any advice/suggestions ? -Suresh Texas A&M Univ. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message