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

📄 vlan.h

📁 ks8995m5口交换机启动eeprom配置源码
💻 H
字号:
#if !defined(AFX_VLAN_H__61631EBD_AA18_46C8_B892_E53353733CEA__INCLUDED_)
#define AFX_VLAN_H__61631EBD_AA18_46C8_B892_E53353733CEA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Vlan.h : header file
//

#include "ks95mspi.h"

/////////////////////////////////////////////////////////////////////////////
// CVlan dialog

class CVlan : public CPropertyPage
{
	DECLARE_DYNCREATE(CVlan)

// Construction
public:
	CVlan();
	~CVlan();
    void GetVLANBytes ( BYTE bEntry, BYTE *bByte0, BYTE *bByte1, BYTE *bByte2 );
    void WriteToVLANTable ( DWORD elem1, DWORD elem2 );
	void UpdateVLANTab ( WORD wEntry, WORD wVidValue, WORD wMbrValue, BOOL bValid );
// Dialog Data
	//{{AFX_DATA(CVlan)
	enum { IDD = IDD_VLAN_DIALOG };

    CEdit   m_cDefaultVLANID [PORTCOUNT];
    CString m_sDefaultVLANID [PORTCOUNT];
    WORD    m_wDefaultVLANID [PORTCOUNT];
	BOOL	m_bTagRemoval[PORTCOUNT];
	BOOL	m_bTagInsertion[PORTCOUNT];
	BOOL	m_bEnableIngressFiltering[PORTCOUNT];
	BOOL	m_bDiscardNonPVIDPackets[PORTCOUNT];

	BOOL	m_bActivate[VLANCOUNT];
    CEdit   m_cVLANID [VLANCOUNT];
    CString m_sVLANID [VLANCOUNT];
    WORD    m_wVLANID [VLANCOUNT];

    BOOL	m_VLAN[VLANCOUNT * PORTCOUNT];

    BOOL    m_bEnableVLAN;

       // NOTE - ClassWizard will add data members here.
		//    DO NOT EDIT what you see in these blocks of generated code !

	//}}AFX_DATA

// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CVlan)
    public:
	virtual BOOL OnSetActive();
	virtual BOOL OnApply();

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CVlan)
		// NOTE: the ClassWizard will add member functions here
	virtual BOOL OnInitDialog();
    afx_msg void OnUpdate();
    //}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_VLAN_H__61631EBD_AA18_46C8_B892_E53353733CEA__INCLUDED_)

⌨️ 快捷键说明

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