This commit is contained in:
Arnout Engelen
2004-09-17 19:22:17 +00:00
parent cd3fce3e54
commit 45e3157f67
7 changed files with 73 additions and 286 deletions

View File

@@ -44,8 +44,8 @@ void dp_addcb (struct dp_handle * handle, enum dp_packet_type type, dp_callback
void dp_parse_tcp (struct dp_handle * handle, const dp_header * header, const u_char * packet)
{
const struct tcphdr * tcp = (struct tcphdr *) packet;
u_char * payload = (u_char *) packet + sizeof (struct tcphdr);
//const struct tcphdr * tcp = (struct tcphdr *) packet;
//u_char * payload = (u_char *) packet + sizeof (struct tcphdr);
if (handle->callback[dp_packet_tcp] != NULL)
{