diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-07-17 17:08:48 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-07-17 17:08:48 +0000 |
commit | 74c402a2a3899028bd010ca79461f68fac80d293 (patch) | |
tree | f98755dae7dae783e1740e9f3fa08a0d9bb05d77 /c/src/exec/libnetworking/netinet/ip.h | |
parent | 2002-07-16 Eric Norum <eric.norum@usask.ca> (diff) | |
download | rtems-74c402a2a3899028bd010ca79461f68fac80d293.tar.bz2 |
2002-07-17 Jay Monkman <jtm@smoothsmoothie.com>
* netinet/in.h, netinet/ip.h, netinet/ip_var.h, netinet/tcp.h:
Modified to added packed attribute.o
Diffstat (limited to 'c/src/exec/libnetworking/netinet/ip.h')
-rw-r--r-- | c/src/exec/libnetworking/netinet/ip.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/c/src/exec/libnetworking/netinet/ip.h b/c/src/exec/libnetworking/netinet/ip.h index e7f824ca6f..e6be7d305d 100644 --- a/c/src/exec/libnetworking/netinet/ip.h +++ b/c/src/exec/libnetworking/netinet/ip.h @@ -64,17 +64,18 @@ struct ip { #endif #endif /* not _IP_VHL */ u_char ip_tos; /* type of service */ - u_short ip_len; /* total length */ - u_short ip_id; /* identification */ - u_short ip_off; /* fragment offset field */ + u_short ip_len BYTE_PACK; /* total length */ + u_short ip_id BYTE_PACK; /* identification */ + u_short ip_off BYTE_PACK; /* fragment offset field */ #define IP_RF 0x8000 /* reserved fragment flag */ #define IP_DF 0x4000 /* dont fragment flag */ #define IP_MF 0x2000 /* more fragments flag */ #define IP_OFFMASK 0x1fff /* mask for fragmenting bits */ u_char ip_ttl; /* time to live */ u_char ip_p; /* protocol */ - u_short ip_sum; /* checksum */ - struct in_addr ip_src,ip_dst; /* source and dest address */ + u_short ip_sum BYTE_PACK; /* checksum */ + struct in_addr ip_src BYTE_PACK; /* source address */ + struct in_addr ip_dst BYTE_PACK; /* dest address */ }; #ifdef _IP_VHL |