sendpacket.h
来自「开发了一款模拟802.1x协议的网络编程.是在vc6.0下运行的.」· C头文件 代码 · 共 18 行
H
18 行
#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 + =
减小字号Ctrl + -
显示快捷键?