[Pkg-ulog-acctd-general] Accessing ulog_packet_msg->payload

Alan Stead alan@stead.com
Fri, 1 Apr 2005 10:25:05 -0800


Hello,
I cant seem to access the ulog_packet_msg->payload members.
I want to send some of the socket info to another user process and would
like to send over src, dst, etc, but cant get them from the payload
member...

I have the following code:
recv(new_socket, buffer, sizeof(struct ulog_packet_msg), 0);
ulog_packet =(struct ulog_packet_msg *) buffer;
tmp_iphdr = (struct iphdr *) ulog_packet->payload;

This works fine, but as soon as I try and access any member of the
tmp_iphdr, I get a compile error, "error dereferencing pointer to incomplete
type"

Any help would be appreciated!
Thanks
Alan Stead