LDK_D

/#include <stdio.h>
//int main()
//{
//    printf("好好学习\n");
//    int study = 0; 
//
//    while (study <1000)
//    {
//        printf("好好学习:%d\n", study);
//        study++;
//    }
//    if (study >= 1000)
//    {
//        printf("未来光明,前途无量\n");
//    }
//    while (study<1000)
//    {
//        printf("继续努力:%d\n", study);
//        study++;
//    }
//    if (study >= 1000)
//    {
//        printf("恭喜你,坚持到了第1000天,祝你未来光明,前途无量");
//    }
//    return 0;
//}

In file included from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainExtUtils/h/extUtils/trafficEngine/tgfTrafficGenerator.h:31:0, from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainUT/utfTraffic/h/common/tgfMirror.h:30, from hi/marvell/hiEnhancedSflow.c:5: /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainExtUtils/h/extUtils/trafficEngine/tgfTrafficEngine.h:100:45: error: conflicting types for 'CPSS_NET_RX_CPU_CODE_ENT' typedef enum { CPSS_NET_RX_CPU_CODE_ENT_E } CPSS_NET_RX_CPU_CODE_ENT; ^ In file included from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/pha/cpssDxChPha.h:42:0, from hi/marvell/hiEnhancedSflow.c:1: /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/networkIf/cpssGenNetIfTypes.h:1373:3: note: previous declaration of 'CPSS_NET_RX_CPU_CODE_ENT' was here } CPSS_NET_RX_CPU_CODE_ENT; ^ In file included from hi/marvell/hiEnhancedSflow.c:5:0: /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainUT/utfTraffic/h/common/tgfMirror.h:727:8: error: unknown type name 'CPSS_DXCH_MIRROR_ON_DROP_STC' IN CPSS_DXCH_MIRROR_ON_DROP_STC *configPtr ^ /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainUT/utfTraffic/h/common/tgfMirror.h:751:9: error: unknown type name 'CPSS_DXCH_MIRROR_ON_DROP_STC' OUT CPSS_DXCH_MIRROR_ON_DROP_STC *configPtr ^ In file included from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/bridge/cpssDxChBrgVlan.h:29:0, from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/networkIf/cpssDxChNetIfTypes.h:29, from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/port/cpssDxChPortStat.h:32, from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/extMac/cpssExtMacDrv.h:65, from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/cpssHwInit/cpssHwInit.h:28, from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/pcl/cpssDxChPcl.h:23, from hi/marvell/hiEnhancedSflow.c:9: /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/bridge/cpssGenBrgVlanTypes.h:132:3: error: conflicting types for 'CPSS_ETHER_MODE_ENT' } CPSS_ETHER_MODE_ENT; ^ In file included from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainUT/utfTraffic/h/common/tgfMirror.h:30:0, from hi/marvell/hiEnhancedSflow.c:5: /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainExtUtils/h/extUtils/trafficEngine/tgfTrafficGenerator.h:41:40: note: previous declaration of 'CPSS_ETHER_MODE_ENT' was here typedef enum { CPSS_ETHER_MODE_ENT_E } CPSS_ETHER_MODE_ENT; ^ In file included from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/extMac/cpssExtMacDrv.h:66:0, from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/cpssHwInit/cpssHwInit.h:28, from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/pcl/cpssDxChPcl.h:23, from hi/marvell/hiEnhancedSflow.c:9: /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/cscd/cpssGenCscd.h:87:3: error: conflicting types for 'CPSS_CSCD_PORT_TYPE_ENT' } CPSS_CSCD_PORT_TYPE_ENT; ^ In file included from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainUT/utfTraffic/h/common/tgfMirror.h:30:0, from hi/marvell/hiEnhancedSflow.c:5: /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainExtUtils/h/extUtils/trafficEngine/tgfTrafficGenerator.h:39:44: note: previous declaration of 'CPSS_CSCD_PORT_TYPE_ENT' was here typedef enum { CPSS_CSCD_PORT_TYPE_ENT_E } CPSS_CSCD_PORT_TYPE_ENT; ^ hi/marvell/hiEnhancedSflow.c:105:2: error: unknown type name 'PRV_TGF_BRG_EGRESS_PORT_INFO_STC' PRV_TGF_BRG_EGRESS_PORT_INFO_STC egressInfo; ^ hi/marvell/hiEnhancedSflow.c:106:5: error: unknown type name 'PRV_TGF_BRG_EGRESS_PORT_INFO_STC' PRV_TGF_BRG_EGRESS_PORT_INFO_STC egressInfo2; ^ hi/marvell/hiEnhancedSflow.c:128:11: error: 'PRV_TGF_VLANID_CNS' undeclared here (not in a function) 0, 0, PRV_TGF_VLANID_CNS /* pri, cfi, VlanId */ ^ In file included from hi/marvell/hiEnhancedSflow.c:13:0: hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowEpcl1config': ../fep/application/common/applError.h:241:12: error: 'return' with a value, in function returning void [-Werror] return __rv;\ ^ hi/marvell/hiEnhancedSflow.c:247:5: note: in expansion of macro 'APPL_IF_ERR_RET' APPL_IF_ERR_RET(hiTpclRuleAdd(appId, ruleId, &match, &action, &attr)); ^ hi/marvell/hiEnhancedSflow.c:249:12: error: 'return' with a value, in function returning void [-Werror] return ERR_NO_ERROR; ^ In file included from hi/marvell/hiEnhancedSflow.c:13:0: hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowEpcl2config': ../fep/application/common/applError.h:241:12: error: 'return' with a value, in function returning void [-Werror] return __rv;\ ^ hi/marvell/hiEnhancedSflow.c:291:2: note: in expansion of macro 'APPL_IF_ERR_RET' APPL_IF_ERR_RET(hiTpclRuleAdd(appId, ruleId, &match, &action, &attr)); ^ hi/marvell/hiEnhancedSflow.c:293:12: error: 'return' with a value, in function returning void [-Werror] return ERR_NO_ERROR; ^ hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowEpcl3config': hi/marvell/hiEnhancedSflow.c:315:44: error: expected expression before '=' token match.match[HI_TPCL_MAT_EGR_LOCAL_UP_E] = = TRUE; ^ hi/marvell/hiEnhancedSflow.c:325:55: error: 'PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_IPV4_CNS' undeclared (first use in this function) PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_IPV4_CNS : ^ hi/marvell/hiEnhancedSflow.c:325:55: note: each undeclared identifier is reported only once for each function it appears in hi/marvell/hiEnhancedSflow.c:326:55: error: 'PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_IPV6_CNS' undeclared (first use in this function) PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_IPV6_CNS ; ^ In file included from hi/marvell/hiEnhancedSflow.c:13:0: ../fep/application/common/applError.h:241:12: error: 'return' with a value, in function returning void [-Werror] return __rv;\ ^ hi/marvell/hiEnhancedSflow.c:338:2: note: in expansion of macro 'APPL_IF_ERR_RET' APPL_IF_ERR_RET(hiTpclRuleAdd(appId, ruleId, &match, &action, &attr)); ^ hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowPhaConfig': hi/marvell/hiEnhancedSflow.c:359:5: error: implicit declaration of function 'UTF_VERIFY_EQUAL0_STRING_MAC' [-Werror=implicit-function-declaration] UTF_VERIFY_EQUAL0_STRING_MAC(GT_OK, rc, "Failure in cpssDxChPhaFwImageIdGet"); ^ hi/marvell/hiEnhancedSflow.c:381:62: error: 'PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_IPV6_CNS' undeclared (first use in this function) rc = cpssDxChPhaThreadIdEntrySet(ENHANCED_SFLOW_DEV_CNS, PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_IPV6_CNS, &commonInfo, ^ hi/marvell/hiEnhancedSflow.c:387:62: error: 'PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_CNS' undeclared (first use in this function) rc = cpssDxChPhaThreadIdEntrySet(ENHANCED_SFLOW_DEV_CNS, PRV_TGF_PHA_THREAD_ID_ENHANCED_SFLOW_CNS, &commonInfo, ^ hi/marvell/hiEnhancedSflow.c: In function 'EnhancedSflowIngressMirrorConfig': hi/marvell/hiEnhancedSflow.c:419:5: error: implicit declaration of function 'UTF_VERIFY_EQUAL1_STRING_MAC' [-Werror=implicit-function-declaration] UTF_VERIFY_EQUAL1_STRING_MAC(GT_OK, rc, "prvTgfMirrorAnalyzerInterfaceGet: %d", ENHANCED_SFLOW_DEV_CNS); ^ hi/marvell/hiEnhancedSflow.c:430:7: error: implicit declaration of function 'prvTgfBrgEportToPhysicalPortTargetMappingTableGet' [-Werror=implicit-function-declaration] rc = prvTgfBrgEportToPhysicalPortTargetMappingTableGet(ENHANCED_SFLOW_DEV_CNS, DEFAULT_EPORT_CNS, ^ hi/marvell/hiEnhancedSflow.c:436:5: error: implicit declaration of function 'prvTgfBrgEportToPhysicalPortTargetMappingTableSet' [-Werror=implicit-function-declaration] prvTgfBrgEportToPhysicalPortTargetMappingTableSet(ENHANCED_SFLOW_DEV_CNS, DEFAULT_EPORT_CNS, &phyPortInfo); ^ hi/marvell/hiEnhancedSflow.c:443:7: error: too many arguments to function 'cpssDxChMirrorTxStatMirrorToAnalyzerIndexRatioSet' rc = cpssDxChMirrorTxStatMirrorToAnalyzerIndexRatioSet(ENHANCED_SFLOW_DEV_CNS, SFLOW_ANALYZER_CNS, GT_TRUE, egRate); ^ In file included from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/tunnel/cpssDxChTunnelTypes.h:32:0, from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/cpssDxChTypes.h:30, from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/bridge/cpssDxChBrgVlan.h:33, from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/networkIf/cpssDxChNetIfTypes.h:29, from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/port/cpssDxChPortStat.h:32, from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/extMac/cpssExtMacDrv.h:65, from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/generic/cpssHwInit/cpssHwInit.h:28, from /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/pcl/cpssDxChPcl.h:23, from hi/marvell/hiEnhancedSflow.c:9: /project/fep_switch/tplink/buildroot/../../ldk_marvell/cpss_work_4.3.18//cpss/mainPpDrv/h/cpss/dxCh/dxChxGen/mirror/cpssDxChMirror.h:1116:11: note: declared here GT_STATUS cpssDxChMirrorTxStatMirrorToAnalyzerIndexRatioSet ^ hi/marvell/hiEnhancedSflow.c: In function 'EnhancedSflowMirrorConfig': hi/marvell/hiEnhancedSflow.c:458:5: error: unknown type name 'PRV_TGF_BRG_EGRESS_PORT_INFO_STC' PRV_TGF_BRG_EGRESS_PORT_INFO_STC egressInfo; ^ hi/marvell/hiEnhancedSflow.c:471:10: error: implicit declaration of function 'prvTgfBrgEportToPhysicalPortEgressPortInfoGet' [-Werror=implicit-function-declaration] rc = prvTgfBrgEportToPhysicalPortEgressPortInfoGet(ENHANCED_SFLOW_DEV_CNS, PASS2_EPORT_CNS, ^ hi/marvell/hiEnhancedSflow.c:476:15: error: request for member 'tunnelStart' in something not a structure or union egressInfo.tunnelStart = GT_TRUE; ^ hi/marvell/hiEnhancedSflow.c:477:15: error: request for member 'tunnelStartPtr' in something not a structure or union egressInfo.tunnelStartPtr = protocol == CPSS_IP_PROTOCOL_IPV4_E? TUNNEL_START_IPV4_CNS : TUNNEL_START_IPV6_CNS; ^ hi/marvell/hiEnhancedSflow.c:478:15: error: request for member 'tsPassengerPacketType' in something not a structure or union egressInfo.tsPassengerPacketType = PRV_TGF_TUNNEL_PASSENGER_ETHERNET_E; ^ hi/marvell/hiEnhancedSflow.c:478:41: error: 'PRV_TGF_TUNNEL_PASSENGER_ETHERNET_E' undeclared (first use in this function) egressInfo.tsPassengerPacketType = PRV_TGF_TUNNEL_PASSENGER_ETHERNET_E; ^ hi/marvell/hiEnhancedSflow.c:479:10: error: implicit declaration of function 'prvTgfBrgEportToPhysicalPortEgressPortInfoSet' [-Werror=implicit-function-declaration] rc = prvTgfBrgEportToPhysicalPortEgressPortInfoSet(ENHANCED_SFLOW_DEV_CNS, PASS2_EPORT_CNS, &egressInfo); ^ hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowIpclConfig': hi/marvell/hiEnhancedSflow.c:501:45: error: 'PRV_TGF_TUNNEL_PASSENGER_ETHERNET_E' undeclared (first use in this function) pclAction.redirect.data.outIf.tunnelType = PRV_TGF_TUNNEL_PASSENGER_ETHERNET_E; ^ In file included from hi/marvell/hiEnhancedSflow.c:13:0: ../fep/application/common/applError.h:241:12: error: 'return' with a value, in function returning void [-Werror] return __rv;\ ^ hi/marvell/hiEnhancedSflow.c:510:2: note: in expansion of macro 'APPL_IF_ERR_RET' APPL_IF_ERR_RET(hiTpclRuleAdd(appId, ruleId, &match, &action, &attr)); ^ hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowLBConfig': hi/marvell/hiEnhancedSflow.c:535:5: error: implicit declaration of function 'cpssOsTimerWkAfter' [-Werror=implicit-function-declaration] cpssOsTimerWkAfter(10); ^ hi/marvell/hiEnhancedSflow.c: In function 'EnhancedSflowIpTsConfig': hi/marvell/hiEnhancedSflow.c:552:5: error: unknown type name 'PRV_TGF_TUNNEL_START_ENTRY_UNT' PRV_TGF_TUNNEL_START_ENTRY_UNT tunnelEntry; ^ hi/marvell/hiEnhancedSflow.c:557:20: error: request for member 'ipv4Cfg' in something not a structure or union tunnelEntry.ipv4Cfg.tagEnable = GT_TRUE; ^ hi/marvell/hiEnhancedSflow.c:558:20: error: request for member 'ipv4Cfg' in something not a structure or union tunnelEntry.ipv4Cfg.vlanId = VLANID_CNS; ^ hi/marvell/hiEnhancedSflow.c:559:20: error: request for member 'ipv4Cfg' in something not a structure or union tunnelEntry.ipv4Cfg.ttl = 20; ^ hi/marvell/hiEnhancedSflow.c:560:20: error: request for member 'ipv4Cfg' in something not a structure or union tunnelEntry.ipv4Cfg.ipHeaderProtocol = PRV_TGF_TUNNEL_START_IP_HEADER_PROTOCOL_UDP_E; ^ hi/marvell/hiEnhancedSflow.c:560:54: error: 'PRV_TGF_TUNNEL_START_IP_HEADER_PROTOCOL_UDP_E' undeclared (first use in this function) tunnelEntry.ipv4Cfg.ipHeaderProtocol = PRV_TGF_TUNNEL_START_IP_HEADER_PROTOCOL_UDP_E; ^ hi/marvell/hiEnhancedSflow.c:561:20: error: request for member 'ipv4Cfg' in something not a structure or union tunnelEntry.ipv4Cfg.udpDstPort = SFLOW_V5_UDP_PORT_CNS; ^ hi/marvell/hiEnhancedSflow.c:562:20: error: request for member 'ipv4Cfg' in something not a structure or union tunnelEntry.ipv4Cfg.udpSrcPort = SFLOW_V5_UDP_PORT_CNS; ^ hi/marvell/hiEnhancedSflow.c:563:27: error: request for member 'ipv4Cfg' in something not a structure or union memcpy(tunnelEntry.ipv4Cfg.macDa.arEther, MirroredPacketTunnelL2Part.daMac, sizeof(TGF_MAC_ADDR)); ^ hi/marvell/hiEnhancedSflow.c:564:27: error: request for member 'ipv4Cfg' in something not a structure or union memcpy(tunnelEntry.ipv4Cfg.destIp.arIP, colIpAddr, sizeof(TGF_IPV4_ADDR)); ^ hi/marvell/hiEnhancedSflow.c:565:27: error: request for member 'ipv4Cfg' in something not a structure or union memcpy(tunnelEntry.ipv4Cfg.srcIp.arIP, MirroredPacketTunnelIpv4Part.srcAddr, sizeof(TGF_IPV4_ADDR)); ^ hi/marvell/hiEnhancedSflow.c:566:14: error: implicit declaration of function 'prvTgfTunnelStartEntrySet' [-Werror=implicit-function-declaration] rc = prvTgfTunnelStartEntrySet(TUNNEL_START_IPV4_CNS, CPSS_TUNNEL_GENERIC_IPV4_E, &tunnelEntry); ^ hi/marvell/hiEnhancedSflow.c:570:20: error: request for member 'ipv6Cfg' in something not a structure or union tunnelEntry.ipv6Cfg.tagEnable = GT_TRUE; ^ hi/marvell/hiEnhancedSflow.c:571:20: error: request for member 'ipv6Cfg' in something not a structure or union tunnelEntry.ipv6Cfg.vlanId = VLANID_CNS; ^ hi/marvell/hiEnhancedSflow.c:572:20: error: request for member 'ipv6Cfg' in something not a structure or union tunnelEntry.ipv6Cfg.ttl = 20; ^ hi/marvell/hiEnhancedSflow.c:573:20: error: request for member 'ipv6Cfg' in something not a structure or union tunnelEntry.ipv6Cfg.ipHeaderProtocol = PRV_TGF_TUNNEL_START_IP_HEADER_PROTOCOL_UDP_E; ^ hi/marvell/hiEnhancedSflow.c:574:20: error: request for member 'ipv6Cfg' in something not a structure or union tunnelEntry.ipv6Cfg.udpDstPort = SFLOW_V5_UDP_PORT_CNS; ^ hi/marvell/hiEnhancedSflow.c:575:20: error: request for member 'ipv6Cfg' in something not a structure or union tunnelEntry.ipv6Cfg.udpSrcPort = SFLOW_V5_UDP_PORT_CNS; ^ hi/marvell/hiEnhancedSflow.c:576:27: error: request for member 'ipv6Cfg' in something not a structure or union memcpy(tunnelEntry.ipv6Cfg.macDa.arEther, MirroredPacketTunnelL2Part.daMac, sizeof(TGF_MAC_ADDR)); ^ hi/marvell/hiEnhancedSflow.c:577:27: error: request for member 'ipv6Cfg' in something not a structure or union memcpy(tunnelEntry.ipv6Cfg.destIp.arIP, colIpAddr, sizeof(TGF_IPV6_ADDR)); ^ hi/marvell/hiEnhancedSflow.c:578:27: error: request for member 'ipv6Cfg' in something not a structure or union memcpy(tunnelEntry.ipv6Cfg.srcIp.arIP, MirroredPacketTunnelIpv6Part.srcAddr, sizeof(TGF_IPV6_ADDR)); ^ hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowBridgeConfig': hi/marvell/hiEnhancedSflow.c:587:2: error: unknown type name 'PRV_TGF_BRG_MAC_ENTRY_STC' PRV_TGF_BRG_MAC_ENTRY_STC prvTgfMacEntry; ^ hi/marvell/hiEnhancedSflow.c:590:10: error: implicit declaration of function 'prvTgfBrgDefVlanEntryWriteWithTaggingCmd' [-Werror=implicit-function-declaration] rc = prvTgfBrgDefVlanEntryWriteWithTaggingCmd(ENHANCED_SFLOW_VLANID_CNS, PRV_TGF_BRG_VLAN_PORT_TAG0_CMD_E); ^ hi/marvell/hiEnhancedSflow.c:592:5: error: implicit declaration of function 'prvTgfBrgVlanMemberRemove' [-Werror=implicit-function-declaration] prvTgfBrgVlanMemberRemove(ENHANCED_SFLOW_DEV_CNS, ENHANCED_SFLOW_VLANID_CNS, ANALYZER_PORT_CNS); ^ hi/marvell/hiEnhancedSflow.c:596:19: error: request for member 'key' in something not a structure or union prvTgfMacEntry.key.entryType = PRV_TGF_FDB_ENTRY_TYPE_MAC_ADDR_E; ^ hi/marvell/hiEnhancedSflow.c:596:51: error: 'PRV_TGF_FDB_ENTRY_TYPE_MAC_ADDR_E' undeclared (first use in this function) prvTgfMacEntry.key.entryType = PRV_TGF_FDB_ENTRY_TYPE_MAC_ADDR_E; ^ hi/marvell/hiEnhancedSflow.c:597:19: error: request for member 'key' in something not a structure or union prvTgfMacEntry.key.key.macVlan.vlanId = ENHANCED_SFLOW_VLANID_CNS; ^ hi/marvell/hiEnhancedSflow.c:598:19: error: request for member 'dstInterface' in something not a structure or union prvTgfMacEntry.dstInterface.type = CPSS_INTERFACE_PORT_E; ^ hi/marvell/hiEnhancedSflow.c:599:19: error: request for member 'dstInterface' in something not a structure or union prvTgfMacEntry.dstInterface.devPort.hwDevNum = ENHANCED_SFLOW_DEV_CNS; ^ hi/marvell/hiEnhancedSflow.c:600:19: error: request for member 'dstInterface' in something not a structure or union prvTgfMacEntry.dstInterface.devPort.portNum = TX_PORT_CNS; /*the sender*/ ^ hi/marvell/hiEnhancedSflow.c:601:19: error: request for member 'isStatic' in something not a structure or union prvTgfMacEntry.isStatic = GT_FALSE; ^ hi/marvell/hiEnhancedSflow.c:602:19: error: request for member 'daCommand' in something not a structure or union prvTgfMacEntry.daCommand = PRV_TGF_PACKET_CMD_FORWARD_E; ^ hi/marvell/hiEnhancedSflow.c:602:51: error: 'PRV_TGF_PACKET_CMD_FORWARD_E' undeclared (first use in this function) prvTgfMacEntry.daCommand = PRV_TGF_PACKET_CMD_FORWARD_E; ^ hi/marvell/hiEnhancedSflow.c:603:19: error: request for member 'saCommand' in something not a structure or union prvTgfMacEntry.saCommand = PRV_TGF_PACKET_CMD_FORWARD_E; ^ hi/marvell/hiEnhancedSflow.c:605:26: error: request for member 'key' in something not a structure or union memcpy(prvTgfMacEntry.key.key.macVlan.macAddr.arEther, OriginalPacketL2Part.daMac, sizeof(TGF_MAC_ADDR)); ^ hi/marvell/hiEnhancedSflow.c:608:10: error: implicit declaration of function 'prvTgfBrgFdbMacEntrySet' [-Werror=implicit-function-declaration] rc = prvTgfBrgFdbMacEntrySet(&prvTgfMacEntry); ^ hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowTrafficSend': hi/marvell/hiEnhancedSflow.c:698:5: error: implicit declaration of function 'PRV_UTF_LOG0_MAC' [-Werror=implicit-function-declaration] PRV_UTF_LOG0_MAC("======= Send first packet =======\n"); ^ hi/marvell/hiEnhancedSflow.c:700:60: error: 'TX_PORT_IDX_CNS' undeclared (first use in this function) rc = prvTgfStartTransmitingEth(ENHANCED_SFLOW_DEV_CNS, TX_PORT_IDX_CNS); ^ hi/marvell/hiEnhancedSflow.c:714:5: error: implicit declaration of function 'tgfTrafficTableRxPcktTblClear' [-Werror=implicit-function-declaration] tgfTrafficTableRxPcktTblClear(); ^ hi/marvell/hiEnhancedSflow.c:717:5: error: implicit declaration of function 'prvTgfMirrorEgressEnhancedSflowValidatePacket' [-Werror=implicit-function-declaration] prvTgfMirrorEgressEnhancedSflowValidatePacket(packetBuf, protocol); ^ hi/marvell/hiEnhancedSflow.c: In function 'MirrorEgressEnhancedSflowValidatePacket': hi/marvell/hiEnhancedSflow.c:756:35: error: 'TX_PORT_IDX_CNS' undeclared (first use in this function) UTF_VERIFY_EQUAL0_STRING_MAC((TX_PORT_IDX_CNS & 0XFF), value, "source port mismatch"); ^ hi/marvell/hiEnhancedSflow.c:758:10: error: implicit declaration of function 'cpssDxChCfgHwDevNumGet' [-Werror=implicit-function-declaration] rc = cpssDxChCfgHwDevNumGet(ENHANCED_SFLOW_DEV_CNS, &localDevNum); 以上是报错信息,下面是我代码包含的头文件,请给出具体的解决方案 #include <cpss/dxCh/dxChxGen/pha/cpssDxChPha.h> #include <cpss/common/cpssTypes.h> #include <common/tgfBridgeGen.h> #include <common/tgfMirror.h> #include <common/tgfTunnelGen.h> #include <common/tgfCommon.h> #include <cpss/dxCh/dxChxGen/pcl/cpssDxChPcl.h> #include <cpss/dxCh/dxChxGen/pha/cpssDxChPha.h> #include <cpss/dxCh/dxChxGen/mirror/cpssDxChMirror.h> #include "common/applError.h" #include "tpDbg/tpdebug.h" #include "hi/hiTpcl.h" #include "hi/hiEnhancedSflow.h"
10-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值