common.~h

来自「wimax bs simulator对应的GUI程序」· ~H 代码 · 共 67 行

~H
67
字号
//---------------------------------------------------------------------------
#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 + =
减小字号Ctrl + -
显示快捷键?