you will want to do something like:
for(i = 0; i < sk_buff->data_length; i++)
printf("%c", sk_buff->data[i]);
but sk_buff->data_length is probably not the exact variable name, you have to look for the data length in the header, i'm not sure its explicit though, data length might be packet size - header size
|