On Wed, 20 Apr 2011 11:02:27 +0800, cc wrote:
Amos Jeffries wrote:
On Wed, 20 Apr 2011 10:45:00 +0800, cc wrote:
Amos Jeffries wrote:
struct icmphdr
{
u_int8_t type; /* message type */
u_int8_t code; /* type sub-code */
u_int16_t checksum;
union
{
struct
{
u_int16_t id;
u_int16_t sequence;
} echo; /* echo datagram */
u_int32_t gateway; /* gateway address */
struct
{
u_int16_t __unused;
u_int16_t mtu;
} frag; /* path mtu discovery */
} un;
};
WTF? "incomplete type" really. GCC 3.3 must have been screwed. I was
expecting to see frag or echo as just a stub name we would have to
locate elsewhere.
Hi Amos,
Thanks for the quick response. what exactly is the
struct supposed to look like? or better yet, where
might I find the correct one?
That appears to be the correct one as far as I can see. GCC 3.3 was
complaining about something which apparently does not exist -> screwed.
(Anyone in Slackware land that knows of where these
headers are found? i.e. which package?)
kernel-headers or such.
Amos