Lines Matching refs:ddp
57 #include <netat/ddp.h>
172 at_ddp_t *ddp = NULL;
188 ddp = mtod(m, at_ddp_t *);
195 if (ddp) {
196 NET_ASSIGN(ddp->dst_net, pcb->raddr.s_net);
197 ddp->dst_node = pcb->raddr.s_node;
198 ddp->dst_socket = pcb->rport;
204 if (ddp) {
207 NET_ASSIGN(ddp->dst_net, dst->sat_addr.s_net);
208 ddp->dst_node = dst->sat_addr.s_node;
209 ddp->dst_socket = dst->sat_port;
212 if (ddp) {
213 DDPLEN_ASSIGN(ddp, m->m_pkthdr.len);
214 UAS_ASSIGN_HTON(ddp->checksum,
216 ddp->type = (pcb->ddptype)? pcb->ddptype: DEFAULT_OT_DDPTYPE;
218 NET_ASSIGN(ddp->src_net, pcb->laddr.s_net);
219 ddp->src_node = pcb->laddr.s_node;
220 ddp->src_socket = pcb->lport;
223 ddp = mtod(m, at_ddp_t *);
225 if (NET_VALUE(ddp->dst_net) == ATADDR_ANYNET &&
226 ddp->dst_node == ATADDR_BCASTNODE &&
237 ddp = mtod(n, at_ddp_t *);
238 if (MULTIHOME_MODE && (ifIDTmp = forUs(ddp)))
240 NET_ASSIGN(ddp->src_net, ifID->ifThisNode.s_net);
241 ddp->src_node = ifID->ifThisNode.s_node;
242 ddp->src_socket = pcb->lport;
243 if (UAS_VALUE_NTOH(ddp->checksum))
244 UAS_ASSIGN_HTON(ddp->checksum, ddp_checksum(m, 4));