summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/netinet/if_ether.h
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2003-09-15 14:28:11 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2003-09-15 14:28:11 +0000
commit4e0576c023ac197944b4ce166c449f7fca25d023 (patch)
tree7ea024a3188d02a45f5c4556ae037425f731ebda /cpukit/libnetworking/netinet/if_ether.h
parent2003-09-15 Jay Monkman <jtm@smoothsmoothie.com> (diff)
downloadrtems-4e0576c023ac197944b4ce166c449f7fca25d023.tar.bz2
2003-09-15 Jennifer Averett <jennifer@OARcorp.com>
PR 481/networking * net/ethernet.h, net/if_arp.h, netinet/if_ether.h: Network structs should be packed
Diffstat (limited to '')
-rw-r--r--cpukit/libnetworking/netinet/if_ether.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libnetworking/netinet/if_ether.h b/cpukit/libnetworking/netinet/if_ether.h
index 22c8e97187..41c0bbe220 100644
--- a/cpukit/libnetworking/netinet/if_ether.h
+++ b/cpukit/libnetworking/netinet/if_ether.h
@@ -37,6 +37,7 @@
#ifndef _NETINET_IF_ETHER_H_
#define _NETINET_IF_ETHER_H_
+#include <netinet/in.h>
#include <net/ethernet.h>
#define ETHERTYPE_PUP 0x0200 /* PUP protocol */
@@ -82,7 +83,7 @@
* RFC 826.
*/
struct ether_arp {
- struct arphdr ea_hdr; /* fixed-size header */
+ struct arphdr ea_hdr BYTE_PACK; /* fixed-size header */
u_char arp_sha[ETHER_ADDR_LEN]; /* sender hardware address */
u_char arp_spa[4]; /* sender protocol address */
u_char arp_tha[ETHER_ADDR_LEN]; /* target hardware address */