structre object question

From: kernel.lover (cranium.2003_at_gmail.com)
Date: 01/31/05


Date: 31 Jan 2005 02:50:16 -0800

Hello,
  In linux kernel source etheernet header is defined as structure as
struct ethhdr
{
        unsigned char h_dest[ETH_ALEN]; /* destination eth addr */
        unsigned char h_source[ETH_ALEN]; /* source ether addr */
        unsigned short h_proto; /* packet type ID field */
} __attribute__((packed));
I want to know what __attribute__((packed)) meance?
       It is not looking as a structure object then what is thati?
regards,
cranium



Relevant Pages

  • structre object question
    ... In linux kernel source etheernet header is defined as structure as ... I want to know what __attribute__) meance? ...
    (comp.os.linux.networking)
  • Re: structre object question
    ... If your ethhdr is 15 bytes, if you do not use the flag, local machine ... space and the package only be sent with 15 bytes. ...
    (comp.os.linux.networking)
  • Re: structre object question
    ... Sometimes google is your friend. ...
    (comp.os.linux.networking)