- Timestamp:
- Feb 1, 2019, 9:57:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_arm/trunk/ntshell/echonet/echonet_udp_task.c
r352 r364 146 146 147 147 /* echonet_taskに送る */ 148 a_ret = snd_dtq(ecn_svc_ mailboxid, (intptr_t)a_fbs_id.ptr);149 if (a_ret != E_OK) { 150 ECN_DBG_PUT_2("[UDP ECHO SRV] snd_dtq(ecn_svc_ mailboxid) result = %d:%s", a_ret, itron_strerror(a_ret));148 a_ret = snd_dtq(ecn_svc_dataqueueid, (intptr_t)a_fbs_id.ptr); 149 if (a_ret != E_OK) { 150 ECN_DBG_PUT_2("[UDP ECHO SRV] snd_dtq(ecn_svc_dataqueueid) result = %d:%s", a_ret, itron_strerror(a_ret)); 151 151 goto lb_except; 152 152 } … … 206 206 a_timer = ECHONET_UDP_TASK_GET_TIMER; 207 207 208 a_ret = trcv_dtq(ecn_udp_ mailboxid, (intptr_t *)&a_mdt.p_msg, a_timer);208 a_ret = trcv_dtq(ecn_udp_dataqueueid, (intptr_t *)&a_mdt.p_msg, a_timer); 209 209 if ((a_ret != E_OK) && (a_ret != E_TMOUT)) { 210 210 ECN_DBG_PUT_2("trcv_dtq() result = %d:%s", a_ret, itron_strerror(a_ret)); … … 266 266 req.ptr->hdr.type = ECN_MSG_INTERNAL; 267 267 req.ptr->hdr.sender.dtqid = sender; 268 req.ptr->hdr.target.dtqid = ecn_udp_ mailboxid;268 req.ptr->hdr.target.dtqid = ecn_udp_dataqueueid; 269 269 req.ptr->hdr.reply.dtqid = sender; 270 270 … … 294 294 295 295 res.ptr->hdr.type = ECN_MSG_INTERNAL; 296 res.ptr->hdr.sender.dtqid = ecn_udp_ mailboxid;296 res.ptr->hdr.sender.dtqid = ecn_udp_dataqueueid; 297 297 res.ptr->hdr.target.dtqid = req.ptr->hdr.reply.dtqid; 298 res.ptr->hdr.reply.dtqid = ecn_udp_ mailboxid;298 res.ptr->hdr.reply.dtqid = ecn_udp_dataqueueid; 299 299 300 300 *pk_res = res; … … 420 420 else if (a_dst.ipaddr == MAKE_IPV4_ADDR(127,0,0,1)) { 421 421 /* 送信先が127.0.0.1 → dtqに転送 */ 422 ECN_DBG_PUT_1("redirect ecn_udp_ mailboxid → ecn_svc_mailboxid (esv:0x%02X)",422 ECN_DBG_PUT_1("redirect ecn_udp_dataqueueid → ecn_svc_dataqueueid (esv:0x%02X)", 423 423 ((T_EDATA *)fbs_id.ptr)->hdr.edata.esv); 424 424 … … 466 466 467 467 switch (fncd) { 468 case T FN_UDP_CRE_CEP:468 case TEV_UDP_RCV_DAT: 469 469 case TFN_UDP_RCV_DAT: 470 470 /* ECN_CAP_PUT("[UDP ECHO SRV] callback_nblk_udp() recv: %u", *(int *)p_parblk); */ … … 492 492 return E_OK; 493 493 494 case TFN_UDP_CRE_CEP: 494 495 case TFN_UDP_SND_DAT: 495 496 break; 496 497 default: 497 498 ECN_CAP_PUT_2("[UDP ECHO SRV] fncd:0x%04X(%s)", -fncd, 499 (fncd == TEV_UDP_RCV_DAT ? "TEV_UDP_RCV_DAT" : 498 500 (fncd == TFN_UDP_CRE_CEP ? "TFN_UDP_CRE_CEP" : 499 501 (fncd == TFN_UDP_RCV_DAT ? "TFN_UDP_RCV_DAT" : 500 (fncd == TFN_UDP_SND_DAT ? "TFN_UDP_SND_DAT" : "undef")))) ;502 (fncd == TFN_UDP_SND_DAT ? "TFN_UDP_SND_DAT" : "undef"))))); 501 503 502 504 error = E_PAR;
Note:
See TracChangeset
for help on using the changeset viewer.