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

📄 sendpacket.h

📁 开发了一款模拟802.1x协议的网络编程.是在vc6.0下运行的.
💻 H
字号:
#include <string.h>#include <sys/types.h>#include <libnet.h>void InitBuf(u_char *buf);
/**********************************************************************************************  Those 5 functions below return 0 if ok, -1 if fail. However they should never fail normally,  so we usually ignore the return values JUST FOR CONVENIENCE.  If detecting the errors,which might happen, is very important to your program, don't ingore it.**********************************************************************************************/int SendLoginPacket(libnet_t *l);
int SendNamePacket(libnet_t *l, const u_char *pkt_data);int SendPasswordPacket(libnet_t *l,const u_char *pkt_data);int SendKeeponlinePacket(libnet_t *l,const u_char *pkt_data);int SendLogoutPacket(libnet_t *l);

⌨️ 快捷键说明

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