Lines Matching defs:pcb
83 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb);
92 pcb = (struct atpcb *)((so)->so_pcb);
93 pcb->pid = proc_selfpid();
94 pcb->ddptype = (u_char) proto; /* set in socreate() */
95 pcb->proto = ATPROTO_DDP;
105 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb);
107 if (pcb == NULL)
114 at_pcbdetach(pcb);
122 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb);
124 if (pcb == NULL)
128 at_pcbdetach(pcb);
135 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb);
137 if (pcb == NULL)
140 at_pcbdetach(pcb);
146 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb);
148 if (pcb == NULL)
159 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb);
161 if (pcb == NULL)
164 return (at_pcbbind(pcb, nam));
173 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb);
175 if (pcb == NULL)
185 if (!(pcb->ddp_flags & DDPFLG_HDRINCL)) {
198 NET_ASSIGN(ddp->dst_net, pcb->raddr.s_net);
199 ddp->dst_node = pcb->raddr.s_node;
200 ddp->dst_socket = pcb->rport;
217 (pcb->ddp_flags & DDPFLG_CHKSUM)? 1: 0);
218 ddp->type = (pcb->ddptype)? pcb->ddptype: DEFAULT_OT_DDPTYPE;
220 NET_ASSIGN(ddp->src_net, pcb->laddr.s_net);
221 ddp->src_node = pcb->laddr.s_node;
222 ddp->src_socket = pcb->lport;
229 (pcb->ddp_flags & DDPFLG_SLFSND)) {
244 ddp->src_socket = pcb->lport;
250 return(ddp_output(&m, pcb->lport, FALSE));
256 struct atpcb *pcb;
264 if ((pcb = sotoatpcb(so)) == NULL) {
271 sat->sat_port = pcb->lport;
272 sat->sat_addr = pcb->laddr;
282 struct atpcb *pcb;
290 if ((pcb = sotoatpcb(so)) == NULL) {
297 sat->sat_port = pcb->rport;
298 sat->sat_addr = pcb->raddr;
308 struct atpcb *pcb = (struct atpcb *)((so)->so_pcb);
311 if (pcb != NULL)
320 pcb->raddr = faddr->sat_addr;