dereferencing pointer to incomplete type

dereferencing pointer to incomplete type

am 16.06.2004 20:29:29 von Anshuman Rawat

Hi,
This might be the wrong question for this list, but I am giving it a shot.

I got the following error while compiling some module -

Arping.xs:153: dereferencing pointer to incomplete type
make: *** [Arping.o] Error 1


Now line 153 in the source is -

memcpy(enet_src, src_mac->ether_addr_octet,6);

where

u_char enet_src[6] = {0x00, 0x00, 0x00, 0x00, 0x00,0x00};

struct ether_addr *src_mac;


struct ether_addr
{
u_char ether_addr_octet[6];
};

are the definitions.

I haven't been able to figure out what the problem is.
Can anyone help me with this ?

Thanks.
Anshuman

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: dereferencing pointer to incomplete type

am 16.06.2004 21:07:26 von Flemming Greve Skovengaard

Anshuman Singh Rawat wrote:
> Hi,
> This might be the wrong question for this list, but I am giving it a shot.
>
> I got the following error while compiling some module -
>
> Arping.xs:153: dereferencing pointer to incomplete type
> make: *** [Arping.o] Error 1
>
>
> Now line 153 in the source is -
>
> memcpy(enet_src, src_mac->ether_addr_octet,6);
>
> where
>
> u_char enet_src[6] = {0x00, 0x00, 0x00, 0x00, 0x00,0x00};
>
> struct ether_addr *src_mac;
>
>
> struct ether_addr
> {
> u_char ether_addr_octet[6];
> };
>
> are the definitions.
>
> I haven't been able to figure out what the problem is.
> Can anyone help me with this ?
>
> Thanks.
> Anshuman
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
> .
>

Subscribe to and try:

linux-c-programming@vger.kernel.org

You may get a better responce.

--
Flemming Greve Skovengaard Just a few small tears between
a.k.a Greven, TuxPower Someone happy and one sad
Just a thin line drawn between
4112.38 BogoMIPS Being a genius or insane
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs