关于截获ip数据包的问题
我在定义部定义ip结构如下(在delphi中用winsock编程)
IP=Record
ip_verlen :char;
ip_tos :char;
ip_len :smallint;
ip_id :smallint;
ip_fragoff :smallint;
ip_ttl :char;
ip_proto :char;
ip_cksum :smallint;
ip_src :array [0..3] of char;
ip_dst :array [0..3] of char
ip_data :char;{此处不知在delphi中如何定义}
{在c语言中定义为}
char ip_data[1]
}
End;
另外在recv函数中bufferlen应如何设置
请高手指点!!!!