All of lore.kernel.org
 help / color / mirror / Atom feed
* dereferencing pointer to incomplete type
@ 2004-06-16 19:56 Anshuman S. Rawat
  2004-06-16 20:14 ` Christoph Bussenius
  2004-06-16 22:01 ` Micha Feigin
  0 siblings, 2 replies; 12+ messages in thread
From: Anshuman S. Rawat @ 2004-06-16 19:56 UTC (permalink / raw)
  To: linux-c-programming

Hi,
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.
Any help will be appreciated.
 
 Thanks.
Anshuman
 


^ permalink raw reply	[flat|nested] 12+ messages in thread
* dereferencing pointer to incomplete type
@ 2004-06-16 18:29 Anshuman Singh Rawat
  2004-06-16 19:07 ` Flemming Greve Skovengaard
  0 siblings, 1 reply; 12+ messages in thread
From: Anshuman Singh Rawat @ 2004-06-16 18:29 UTC (permalink / raw)
  To: linux-newbie

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-06-17 17:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-16 19:56 dereferencing pointer to incomplete type Anshuman S. Rawat
2004-06-16 20:14 ` Christoph Bussenius
2004-06-16 20:13   ` Anshuman S. Rawat
2004-06-16 21:04     ` Glynn Clements
2004-06-16 22:01 ` Micha Feigin
2004-06-16 23:02   ` Anshuman S. Rawat
2004-06-17  4:21     ` Micha Feigin
2004-06-17  8:46       ` Christoph Bussenius
2004-06-17 10:24       ` Glynn Clements
2004-06-17 17:03         ` Micha Feigin
  -- strict thread matches above, loose matches on Subject: below --
2004-06-16 18:29 Anshuman Singh Rawat
2004-06-16 19:07 ` Flemming Greve Skovengaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.