NS2_ADD_ZBR(V001)_2013_12_18(3)
时间:2025-07-10
时间:2025-07-10
NS2中ZBR协议的添加
rq->rq_type,
rq->rq_hop_count,
rq->rq_bcast_id,
rq->rq_dst,
rq->rq_dst_seqno,
rq->rq_src,
rq->rq_src_seqno);
} else {
sprintf(pt_->buffer() + offset,
"[0x%x %d %d [%d %d] [%d %d]] (REQUEST)",
rq->rq_type,
rq->rq_hop_count,
rq->rq_bcast_id,
rq->rq_dst,
rq->rq_dst_seqno,
rq->rq_src,
rq->rq_src_seqno);
}
break;
case ZBRTYPE_RREP:
case ZBRTYPE_HELLO:
case ZBRTYPE_RERR:
if (pt_->tagged()) {
sprintf(pt_->buffer() + offset,
"-zbr:t %x -zbr:h %d -zbr:d %d -zbr:ds %d "
"-zbr:l %f -zbr:c %s ",
rp->rp_type,
rp->rp_hop_count,
rp->rp_dst,
rp->rp_dst_seqno,
rp->rp_lifetime,
rp->rp_type == AODVTYPE_RREP ? "REPLY" :
(rp->rp_type == AODVTYPE_RERR ? "ERROR" :
"HELLO"));
} else if (newtrace_) {
sprintf(pt_->buffer() + offset,
"-P zbr -Pt 0x%x -Ph %d -Pd %d -Pds %d -Pl %f -Pc %s ",
rp->rp_type,
上一篇:2课 江山如此多娇-2
下一篇:酒吧安全服务部管理手册