if (!(pcb->ddp_flags & DDPFLG_HDRINCL)) {
/* prepend a DDP header */
M_PREPEND(m, DDP_X_HDR_SIZE, M_WAIT);
if (!(pcb->ddp_flags & DDPFLG_HDRINCL)) {
/* prepend a DDP header */
M_PREPEND(m, DDP_X_HDR_SIZE, M_WAIT);
- ddp->length = m->m_pkthdr.len;
- UAS_ASSIGN(ddp->checksum,
+ DDPLEN_ASSIGN(ddp, m->m_pkthdr.len);
+ UAS_ASSIGN_HTON(ddp->checksum,
(pcb->ddp_flags & DDPFLG_CHKSUM)? 1: 0);
ddp->type = (pcb->ddptype)? pcb->ddptype: DEFAULT_OT_DDPTYPE;
#ifdef NOT_YET
(pcb->ddp_flags & DDPFLG_CHKSUM)? 1: 0);
ddp->type = (pcb->ddptype)? pcb->ddptype: DEFAULT_OT_DDPTYPE;
#ifdef NOT_YET
NET_ASSIGN(ddp->src_net, ifID->ifThisNode.s_net);
ddp->src_node = ifID->ifThisNode.s_node;
ddp->src_socket = pcb->lport;
NET_ASSIGN(ddp->src_net, ifID->ifThisNode.s_net);
ddp->src_node = ifID->ifThisNode.s_node;
ddp->src_socket = pcb->lport;
- if (UAS_VALUE(ddp->checksum))
- UAS_ASSIGN(ddp->checksum, ddp_checksum(m, 4));
+ if (UAS_VALUE_NTOH(ddp->checksum))
+ UAS_ASSIGN_HTON(ddp->checksum, ddp_checksum(m, 4));
struct atpcb *pcb;
struct sockaddr_at *sat;
MALLOC(sat, struct sockaddr_at *, sizeof *sat, M_SONAME, M_WAITOK);
struct atpcb *pcb;
struct sockaddr_at *sat;
MALLOC(sat, struct sockaddr_at *, sizeof *sat, M_SONAME, M_WAITOK);
sat->sat_len = sizeof(*sat);
sat->sat_port = pcb->lport;
sat->sat_addr = pcb->laddr;
sat->sat_len = sizeof(*sat);
sat->sat_port = pcb->lport;
sat->sat_addr = pcb->laddr;
struct atpcb *pcb;
struct sockaddr_at *sat;
MALLOC(sat, struct sockaddr_at *, sizeof *sat, M_SONAME, M_WAITOK);
struct atpcb *pcb;
struct sockaddr_at *sat;
MALLOC(sat, struct sockaddr_at *, sizeof *sat, M_SONAME, M_WAITOK);
sat->sat_len = sizeof(*sat);
sat->sat_port = pcb->rport;
sat->sat_addr = pcb->raddr;
sat->sat_len = sizeof(*sat);
sat->sat_port = pcb->rport;
sat->sat_addr = pcb->raddr;