diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2003-09-15 14:28:11 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2003-09-15 14:28:11 +0000 |
commit | 4e0576c023ac197944b4ce166c449f7fca25d023 (patch) | |
tree | 7ea024a3188d02a45f5c4556ae037425f731ebda /cpukit/libnetworking/net/if_arp.h | |
parent | 2003-09-15 Jay Monkman <jtm@smoothsmoothie.com> (diff) | |
download | rtems-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 'cpukit/libnetworking/net/if_arp.h')
-rw-r--r-- | cpukit/libnetworking/net/if_arp.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cpukit/libnetworking/net/if_arp.h b/cpukit/libnetworking/net/if_arp.h index dd726bf856..a581c21558 100644 --- a/cpukit/libnetworking/net/if_arp.h +++ b/cpukit/libnetworking/net/if_arp.h @@ -37,6 +37,7 @@ #ifndef _NET_IF_ARP_H_ #define _NET_IF_ARP_H_ +#include <netinet/in.h> /* * Address Resolution Protocol. * @@ -48,13 +49,13 @@ * specified. Field names used correspond to RFC 826. */ struct arphdr { - u_short ar_hrd; /* format of hardware address */ + u_short ar_hrd BYTE_PACK; /* format of hardware address */ #define ARPHRD_ETHER 1 /* ethernet hardware format */ #define ARPHRD_FRELAY 15 /* frame relay hardware format */ - u_short ar_pro; /* format of protocol address */ - u_char ar_hln; /* length of hardware address */ - u_char ar_pln; /* length of protocol address */ - u_short ar_op; /* one of: */ + u_short ar_pro BYTE_PACK; /* format of protocol address */ + u_char ar_hln BYTE_PACK; /* length of hardware address */ + u_char ar_pln BYTE_PACK; /* length of protocol address */ + u_short ar_op BYTE_PACK; /* one of: */ #define ARPOP_REQUEST 1 /* request to resolve address */ #define ARPOP_REPLY 2 /* response to previous request */ #define ARPOP_REVREQUEST 3 /* request protocol address given hardware */ |