⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 common.~h

📁 wimax bs simulator对应的GUI程序
💻 ~H
字号:
//---------------------------------------------------------------------------
#ifndef CommonH
#define CommonH

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "global.h"
#include "r64_message.h"
#include "r64_message_ie.h"
#include "Main.h"
//---------------------------------------------------------------------------
#define GW_UDP_SAP                0x10
#define BS_UDP_SAP                 0x20
#define BS_TIMER_SAP		 0x21
#define BS_HO_DREG_TIMER_SAP	0x22
#define BS_ACTION_SAP		0x23
#define BS_UDP_DHCP_SAP	        0x40

#define GW_R6_UDP_PORT          6021
#define BS_R6_UDP_PORT          6031
#define DHCP_UDP_PORT		68
#define ACTION_UDP_PORT         6041
#define HOST_BS_UDP_PORT	6051
#define HOST_GW_UDP_PORT	6061

typedef struct _BS_ACTION
{
	BYTE			purpose;
	union
	{
		struct
		{		
			DWORD gSourceIp;
			DWORD gDestinationIp;
		}initConfig;
		struct
		{
			R64_MS_ID_S msId;
			R64_BS_ID_S targetBsId;
		}hoConfig;
		unsigned int msNum;
		R64_MS_ID_S msId;
		unsigned short ueId;
	}u;
}BS_ACTION_S;

typedef enum _BS_ACTION_PURPOSE
{
	BS_SIM_CONFIG = 0,
	BS_CALL_INIT,
	BS_HO_INIT,
	BS_MS_DEREG_MSID,
	BS_MS_DEREG_UEID
}BS_ACTION_PURPOSE_E;

typedef struct _BSSIM_FONFIG
{
        char sourceIp[16];
        char destinationIp[16];
}BSSIM_CONFIG_S;

void getFuncMsgType(R64_MSG_S *,char *,char *);
void msIdTrans(BYTE *,char *);
void bsIdTrans(BYTE *,char *);
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -