summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/netinet/ip_icmp.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-04 14:47:11 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-04 14:47:11 +0000
commit3fb76805139ef1cc04a8ed234febf335c50f5a02 (patch)
treeb3d82e925ff5c475ec1d53f42478a591399ce559 /cpukit/libnetworking/netinet/ip_icmp.h
parent2002-10-02 Chris Johns <cjohns@cybertec.com.au> (diff)
downloadrtems-3fb76805139ef1cc04a8ed234febf335c50f5a02.tar.bz2
2002-10-04 Jay Monkman <jtm@smoothsmoothie.com>
* netinet/in_cksum.c, netinet/ip_icmp.h, netinet/ip_input.c, netinet/tcp_input.c, netinet/tcp_subr.c, netinet/tcp_var.h, sys/queue.h: Address alignment requirements for the ARM.
Diffstat (limited to 'cpukit/libnetworking/netinet/ip_icmp.h')
-rw-r--r--cpukit/libnetworking/netinet/ip_icmp.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/cpukit/libnetworking/netinet/ip_icmp.h b/cpukit/libnetworking/netinet/ip_icmp.h
index 9d07a682de..8fd20abb2b 100644
--- a/cpukit/libnetworking/netinet/ip_icmp.h
+++ b/cpukit/libnetworking/netinet/ip_icmp.h
@@ -54,28 +54,28 @@ struct icmp_ra_addr {
* Structure of an icmp header.
*/
struct icmp {
- u_char icmp_type; /* type of message, see below */
- u_char icmp_code; /* type sub code */
- u_short icmp_cksum; /* ones complement cksum of struct */
+ u_char icmp_type BYTE_PACK; /* type of message, see below */
+ u_char icmp_code BYTE_PACK; /* type sub code */
+ u_short icmp_cksum BYTE_PACK; /* ones complement cksum of struct */
union {
- u_char ih_pptr; /* ICMP_PARAMPROB */
- struct in_addr ih_gwaddr; /* ICMP_REDIRECT */
+ u_char ih_pptr BYTE_PACK; /* ICMP_PARAMPROB */
+ struct in_addr ih_gwaddr BYTE_PACK; /* ICMP_REDIRECT */
struct ih_idseq {
- n_short icd_id;
- n_short icd_seq;
+ n_short icd_id BYTE_PACK;
+ n_short icd_seq BYTE_PACK;
} ih_idseq;
- int ih_void;
+ int ih_void BYTE_PACK;
/* ICMP_UNREACH_NEEDFRAG -- Path MTU Discovery (RFC1191) */
struct ih_pmtu {
- n_short ipm_void;
- n_short ipm_nextmtu;
+ n_short ipm_void BYTE_PACK;
+ n_short ipm_nextmtu BYTE_PACK;
} ih_pmtu;
struct ih_rtradv {
- u_char irt_num_addrs;
- u_char irt_wpa;
- u_int16_t irt_lifetime;
+ u_char irt_num_addrs BYTE_PACK;
+ u_char irt_wpa BYTE_PACK;
+ u_int16_t irt_lifetime BYTE_PACK;
} ih_rtradv;
} icmp_hun;
#define icmp_pptr icmp_hun.ih_pptr
@@ -90,16 +90,16 @@ struct icmp {
#define icmp_lifetime icmp_hun.ih_rtradv.irt_lifetime
union {
struct id_ts {
- n_time its_otime;
- n_time its_rtime;
- n_time its_ttime;
+ n_time its_otime BYTE_PACK;
+ n_time its_rtime BYTE_PACK;
+ n_time its_ttime BYTE_PACK;
} id_ts;
struct id_ip {
- struct ip idi_ip;
+ struct ip idi_ip BYTE_PACK;
/* options and then 64 bits of data */
} id_ip;
- struct icmp_ra_addr id_radv;
- u_long id_mask;
+ struct icmp_ra_addr id_radv BYTE_PACK;
+ u_long id_mask BYTE_PACK;
char id_data[1];
} icmp_dun;
#define icmp_otime icmp_dun.id_ts.its_otime