Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Feb 2000 17:52:14 -0600 (CST)
From:      Suresh Kumar Satapati <sks1974@cs.tamu.edu>
To:        freebsd-questions@freebsd.org
Subject:   PCB question
Message-ID:  <Pine.SOL.4.10.10002251726520.441-100000@dilbert>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.10.10002251726520.441-100000>