📄 wdp.c
字号:
* TASK log external
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),3353(55,60),1)
------*/
#ifdef XTRACE
xTraceTask("log external");
#endif
#if defined LOG_EXTERNAL
CLNTa_log (0, log_wdp_RecUDPDatagram, "\n");
#endif
XBETWEEN_SYMBOLS(61, 5422, 1096)
/*-----
* TASK log internal
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),3359(55,75),1)
------*/
#ifdef XTRACE
xTraceTask("log internal");
#endif
#if defined LOG_INTERNAL
{
char *logstr1, *logstr2;
char *strparam1;
logstr1 = OctetString2HexString (yVarP->z469_srcAddr.data, yVarP->
z469_srcAddr.length);
logstr2 = OctetString2HexString (yVarP->z468_dstAddr.data, yVarP->
z468_dstAddr.length);
CLNTa_log (0, 0, "WDP: Received UDP Datagram\n"
"\tSource Address = %s\n"
"\tSource PortNumber = %d\n"
"\tDestination Address = %s\n"
"\tDestination PortNumber = %d\n"
"\tNew Channel ID = %d\n",
logstr1, yVarP->z46B_srcPort, logstr2, yVarP->
z46C_dstPort, yVarP->z46O_newChannelID);
OSConnectorFree(logstr1);
OSConnectorFree(logstr2);
strparam1 = OctetString2HexString (yVarP->z467_UDPData, yVarP->z46D_DataLen);
CLNTa_log (0, 0, "WDP data %s\n", strparam1 ? strparam1 : "");
DEALLOC (&strparam1);
}
#endif
XBETWEEN_SYMBOLS(62, 5423, 1133)
{
/*-----
* ASSIGNMENT ok := ...
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),3389(55,90),1)
------*/
yAssF_SDL_Boolean(yVarP->z46F_ok, wdp_porttbl_lookup(yVarP->z46C_dstPort,
&(yVarP->z46J_upperlayerPId), &(yVarP->z46K_stackconfig), &(yVarP->
z46L_bearer), &(yVarP->z46M_viewID), &(yVarP->z46N_channelID)), XASS);
#ifdef XTRACE
xTraceAssign("ok := ");
#endif
}
XBETWEEN_SYMBOLS(63, 5424, 1147)
/*-----
* DECISION
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),3398(55,105),1)
------*/
#ifdef XTRACE
yAssF_SDL_Boolean(yDcn_SDL_Boolean, yVarP->z46F_ok, XASS);
if (yDcn_SDL_Boolean) {
#else
if (yVarP->z46F_ok) {
#endif
#ifdef XTRACE
xTraceDecision("TRUE");
#endif
XBETWEEN_SYMBOLS(66, 5427, 1162)
/*-----
* DECISION
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),2537(55,125),1)
------*/
#ifdef XTRACE
yAssF_SDL_Boolean(yDcn_SDL_Boolean, xLE_SDL_Integer(yVarP->z46D_DataLen,
MaxPDUsize), XASS);
if (yDcn_SDL_Boolean) {
#else
if (xLE_SDL_Integer(yVarP->z46D_DataLen, MaxPDUsize)) {
#endif
#ifdef XTRACE
xTraceDecision("TRUE");
#endif
XBETWEEN_SYMBOLS(67, 5428, 1178)
/*-----
* ASSIGNMENT tmpBuf := ...
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),2498(55,140),1)
------*/
yAssF_pdubuf_ptr(yVarP->z46A_tmpBuf, PDU_getFromData(yVarP->
z467_UDPData, yTstA_SDL_Natural(yVarP->z46D_DataLen)), XASS);
#ifdef XTRACE
xTraceAssign("tmpBuf := ");
#endif
XBETWEEN_SYMBOLS(68, 5429, 1189)
/*-----
* DECISION
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),2504(55,155),1)
------*/
#ifdef XTRACE
yAssF_SDL_Boolean(yDcn_SDL_Boolean, PDU_isNull(yVarP->z46A_tmpBuf),
XASS);
if (yDcn_SDL_Boolean) {
#else
if (PDU_isNull(yVarP->z46A_tmpBuf)) {
#endif
#ifdef XTRACE
xTraceDecision("TRUE");
#endif
/* Null transition */
} else {
#ifdef XTRACE
xTraceDecision("FALSE");
#endif
XBETWEEN_SYMBOLS(69, 5430, 1210)
/*-----
* ASSIGNMENT dataInd... := ...
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),923(55,175),1)
------*/
yAssF_pdubuf_ptr(yVarP->z46H_dataInd.UserData, yVarP->z46A_tmpBuf,
XASS);
#ifdef XTRACE
xTraceAssign("dataInd... := ");
#endif
XBETWEEN_SYMBOLS(70, 5431, 1221)
/*-----
* ASSIGNMENT dataInd... := ...
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),2264(55,195),1)
------*/
yAssF_SDL_Integer(yVarP->z46H_dataInd.SourceAddress.PortNumber,
yVarP->z46B_srcPort, XASS);
#ifdef XTRACE
xTraceAssign("dataInd... := ");
#endif
XBETWEEN_STMTS(71, 5432, 1232)
/*-----
* ASSIGNMENT dataInd... := ...
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),2264(55,195),2)
------*/
yAssF_SDL_Integer(yVarP->z46H_dataInd.DestinationAddress.PortNumber,
yVarP->z46C_dstPort, XASS);
#ifdef XTRACE
xTraceAssign("dataInd... := ");
#endif
XBETWEEN_SYMBOLS(72, 5433, 1243)
/*-----
* ASSIGNMENT dataInd... := ...
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),2267(55,225),1)
------*/
yAssF_DeviceAddress(yVarP->z46H_dataInd.SourceAddress.Address, yVarP->
z469_srcAddr, XASS);
#ifdef XTRACE
xTraceAssign("dataInd... := ");
#endif
XBETWEEN_STMTS(73, 5434, 1254)
/*-----
* ASSIGNMENT dataInd... := ...
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),2267(55,225),2)
------*/
yAssF_SDL_Octet(yVarP->z46H_dataInd.SourceAddress.
SecondAddressFormat, xI2O_SDL_Octet(SDL_INTEGER_LIT(255)), XASS);
#ifdef XTRACE
xTraceAssign("dataInd... := ");
#endif
XBETWEEN_STMTS(74, 5435, 1265)
/*-----
* ASSIGNMENT dataInd... := ...
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),2267(55,225),3)
------*/
yAssF_DeviceAddress(yVarP->z46H_dataInd.DestinationAddress.Address,
yVarP->z468_dstAddr, XASS);
#ifdef XTRACE
xTraceAssign("dataInd... := ");
#endif
XBETWEEN_STMTS(75, 5436, 1276)
/*-----
* ASSIGNMENT dataInd... := ...
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),2267(55,225),4)
------*/
yAssF_SDL_Octet(yVarP->z46H_dataInd.DestinationAddress.
SecondAddressFormat, xI2O_SDL_Octet(SDL_INTEGER_LIT(255)), XASS);
#ifdef XTRACE
xTraceAssign("dataInd... := ");
#endif
XBETWEEN_SYMBOLS(76, 5437, 1287)
/*-----
* ASSIGNMENT dataInd... := ...
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),3146(55,245),1)
------*/
yAssF_SDL_Octet(yVarP->z46H_dataInd.SourceAddress.Bearer, yVarP->
z46L_bearer, XASS);
#ifdef XTRACE
xTraceAssign("dataInd... := ");
#endif
XBETWEEN_STMTS(77, 5438, 1298)
/*-----
* ASSIGNMENT dataInd... := ...
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),3146(55,245),2)
------*/
yAssF_SDL_Octet(yVarP->z46H_dataInd.DestinationAddress.Bearer, yVarP->
z46L_bearer, XASS);
#ifdef XTRACE
xTraceAssign("dataInd... := ");
#endif
XBETWEEN_STMTS(78, 5439, 1309)
/*-----
* ASSIGNMENT dataInd... := ...
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),3146(55,245),3)
------*/
yAssF_SDL_Octet(yVarP->z46H_dataInd.SourceAddress.ViewID, yVarP->
z46M_viewID, XASS);
#ifdef XTRACE
xTraceAssign("dataInd... := ");
#endif
XBETWEEN_STMTS(79, 5440, 1320)
/*-----
* ASSIGNMENT dataInd... := ...
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),3146(55,245),4)
------*/
yAssF_SDL_Octet(yVarP->z46H_dataInd.DestinationAddress.ViewID, yVarP->
z46M_viewID, XASS);
#ifdef XTRACE
xTraceAssign("dataInd... := ");
#endif
XBETWEEN_STMTS(80, 5441, 1331)
/*-----
* ASSIGNMENT dataInd... := ...
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),3146(55,245),5)
------*/
yAssF_SDL_Octet(yVarP->z46H_dataInd.SourceAddress.ChannelID, yVarP->
z46N_channelID, XASS);
#ifdef XTRACE
xTraceAssign("dataInd... := ");
#endif
XBETWEEN_STMTS(81, 5442, 1342)
/*-----
* ASSIGNMENT dataInd... := ...
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),3146(55,245),6)
------*/
yAssF_SDL_Octet(yVarP->z46H_dataInd.DestinationAddress.ChannelID,
yVarP->z46O_newChannelID, XASS);
#ifdef XTRACE
xTraceAssign("dataInd... := ");
#endif
XBETWEEN_SYMBOLS(82, 5443, 1353)
/*-----
* TASK log internal
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),3170(55,275),1)
------*/
#ifdef XTRACE
xTraceTask("log internal");
#endif
#if defined LOG_INTERNAL
{
char *logstr1, *logstr2, *logstr3;
char *strPDU;
char *strparam1;
logstr1 = OctetString2HexString (yVarP->
z46H_dataInd.SourceAddress.Address.data, yVarP->
z46H_dataInd.SourceAddress.Address.length);
logstr2 = OctetString2HexString (yVarP->
z46H_dataInd.SourceAddress. SecondAddress.data, yVarP->
z46H_dataInd.SourceAddress. SecondAddress.length);
logstr3 = OctetString2HexString (yVarP->
z46H_dataInd.DestinationAddress.Address.data, yVarP->
z46H_dataInd.DestinationAddress.Address.length);
CLNTa_log(0, 0, "WDP Send TDUnitDataInd:\n"
"\tSource Address = %s\n"
"\tSource SecondAddress = %s\n"
"\tSource SecondAddressFormat = %d\n"
"\tSource Bearer = %d\n"
"\tSource PortNumber = %d\n"
"\tDestination Address = %s\n"
"\tDestination Bearer = %d\n"
"\tDestination PortNumber = %d\n"
"\tDestination View ID = %d\n"
"\tDestination Channel ID = %d\n"
"\tStackConfig = %d\n",
logstr1, logstr2, yVarP->
z46H_dataInd.SourceAddress.SecondAddressFormat,
yVarP->z46H_dataInd.SourceAddress.Bearer, yVarP->
z46H_dataInd.SourceAddress.PortNumber,
logstr3, yVarP->z46H_dataInd.DestinationAddress.Bearer,
yVarP->z46H_dataInd.DestinationAddress.PortNumber,
yVarP->z46H_dataInd.DestinationAddress.ViewID,
yVarP->z46H_dataInd.DestinationAddress.ChannelID,
yVarP->z46K_stackconfig);
OSConnectorFree (logstr1);
OSConnectorFree (logstr2);
OSConnectorFree (logstr3);
strPDU = pdubuf_getStart (yVarP->z46H_dataInd.UserData);
strparam1 = OctetString2HexString ((CHAR*)strPDU, pdubuf_getLength (yVarP->
z46H_dataInd.UserData));
CLNTa_log (0, 0, "WDP data %s\n", strparam1 ? strparam1 : "");
DEALLOC (&strparam1);
}
#endif
XBETWEEN_SYMBOLS(83, 5444, 1412)
/*-----
* OUTPUT TDUnitDataInd
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),2285(55,290),1)
------*/
ALLOC_SIGNAL_PAR(TDUnitDataInd, z_WDP_UpperLayer_2_TDUnitDataInd,
yPDef_z_WDP_UpperLayer_2_TDUnitDataInd)
yAssF_TDUnitdataIndType(((yPDef_z_WDP_UpperLayer_2_TDUnitDataInd *)OUTSIGNAL_DATA_PTR)->Param1,
yVarP->z46H_dataInd, XASSPARA);
yAssF_SDL_Natural(((yPDef_z_WDP_UpperLayer_2_TDUnitDataInd *)OUTSIGNAL_DATA_PTR)->Param2,
yTstA_SDL_Natural(yVarP->z46K_stackconfig), XASSPARA);
SDL_OUTP_PAR(xDefaultPrioSignal, TDUnitDataInd,
z_WDP_UpperLayer_2_TDUnitDataInd, yVarP->z46J_upperlayerPId,
yPDef_z_WDP_UpperLayer_2_TDUnitDataInd, "TDUnitDataInd")
XBETWEEN_SYMBOLS(84, 5445, 1427)
/*-----
* NEXTSTATE -
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),2288(55,305),1)
------*/
XAT_LAST_SYMBOL
SDL_DASH_NEXTSTATE
}
} else {
#ifdef XTRACE
xTraceDecision("FALSE");
#endif
/* Null transition */
}
XBETWEEN_SYMBOLS(85, 5446, 1442)
/*-----
* TASK error
* #SDTREF(SDL,D:\WIP\Maintenance\4.x\System\SystemConfigurations\base_co\sdl\wdp\wdphandler.spr(5),2780(115,175),1)
------*/
#ifdef XTRACE
xTraceTask("error");
#endif
CLNTa_error (0, ERR_WDP_UDPBigBuffer, ERRTYPE_INFORMATION);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -