*/
struct ether_addr {
u_char ether_addr_octet[6];
-};
+} __attribute__ ((packed));
/*
* Structure of a 10Mb/s Ethernet header.
u_char ether_dhost[6];
u_char ether_shost[6];
u_short ether_type;
-};
+} __attribute__ ((packed));
#define ETHERTYPE_PUP 0x0200 /* PUP protocol */
#define ETHERTYPE_IP 0x0800 /* IP protocol */
u_char arp_spa[4]; /* sender protocol address */
u_char arp_tha[6]; /* target hardware address */
u_char arp_tpa[4]; /* target protocol address */
-};
+} __attribute__ ((packed));
#define arp_hrd ea_hdr.ar_hrd
#define arp_pro ea_hdr.ar_pro
#define arp_hln ea_hdr.ar_hln
short ih_len; /* protocol length */
struct in_addr ih_src; /* source internet address */
struct in_addr ih_dst; /* destination internet address */
-};
+} __attribute__ ((packed));
/*
* Ip reassembly queue structure. Each fragment
struct ipasfrag *ipq_next,*ipq_prev;
/* to ip headers of fragments */
struct in_addr ipq_src,ipq_dst;
-};
+} __attribute__ ((packed));
/*
* Ip header, when holding a fragment.
u_short ip_sum;
struct ipasfrag *ipf_next; /* next fragment */
struct ipasfrag *ipf_prev; /* previous fragment */
-};
+} __attribute__ ((packed));
/*
* Structure stored in mbuf in inpcb.ip_options