Lines Matching refs:ddp
1 /* From ddp.c:
6 Saved from xnu/bsd/bsd/netat/ddp.c on 4/14/99.
10 /* This routine shrinks the ddp header from long to short,
17 register at_ddp_t *ddp;
27 ddp = (at_ddp_t *)gbuf_rptr(mp);
32 llap->destination = ddp->dst_node;
34 ddp_short->length = ddp->length - (DDP_X_HDR_SIZE - DDP_HDR_SIZE);
40 /* mp points to message of the form {llap, short ddp, ...}.
41 * Get rid of llap, extend ddp header to make it of the form
42 * {extended ddp, ... }
49 register at_ddp_t *ddp;
56 * in a separate buffer, since the ddp buffer would end up being
58 * rid of the llap and ddp short headers and then add the extended
62 /* Assuming that the llap and ddp short headers are placed next
68 /* If the message did not contain any ddp data bytes, then m would
83 * message mp did not contain any ddp data bytes, only lap and
84 * ddp headers
100 ddp = (at_ddp_t *)gbuf_rptr(m2);
104 ddp->unused = ddp->hopcount = 0;
105 ddp->length = ddp_short->length + DDP_X_HDR_SIZE - DDP_HDR_SIZE;
106 UAS_ASSIGN(ddp->checksum, 0);
107 NET_NET(ddp->dst_net, ifID_home->ifThisNode.atalk_net);
108 NET_NET(ddp->src_net, ifID_home->ifThisNode.atalk_net);
109 ddp->src_node = llap->source;
110 ddp->dst_node = llap->destination;
111 ddp->dst_socket = ddp_short->dst_socket;
112 ddp->src_socket = ddp_short->src_socket;
113 ddp->type = ddp_short->type;