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

📄 nic_device.cpp

📁 一个非常漂亮的802.1x客户端源代码
💻 CPP
字号:
// NIC_Device.cpp: implementation of the NIC_Device class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Mento Supplicant.h"
#include "NIC_Device.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

NIC_Device::NIC_Device(CString SName, pcap_t* PHandle,
					   CString SDescription, CString SIP, byte BIP[4])
{
	m_sName = SName;
	m_pHandle = PHandle;
	m_sDescription = SDescription;
	m_sIP = SIP;
	m_pNext = NULL;
	for ( int i=0 ; i<4 ; i++ )
		m_bIP[i] = BIP[i];
}

NIC_Device::~NIC_Device()
{
	if ( m_pNext )
		delete m_pNext;
}

void NIC_Device::AddNext(NIC_Device *PNextNIC)
{
	if ( m_pNext == NULL )
		m_pNext = PNextNIC;
	else
		m_pNext->AddNext( PNextNIC );
}

⌨️ 快捷键说明

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