summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/netinet/ip_var.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-05-27 15:21:48 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-05-27 15:21:48 +0000
commitfd65489a887c98a34ab65e57f2f20fcfeb44b027 (patch)
treef5442732ce926ff114bfead4de28997e4475482d /cpukit/libnetworking/netinet/ip_var.h
parent2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-fd65489a887c98a34ab65e57f2f20fcfeb44b027.tar.bz2
Remove BYTE_PACK.
Diffstat (limited to 'cpukit/libnetworking/netinet/ip_var.h')
-rw-r--r--cpukit/libnetworking/netinet/ip_var.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/cpukit/libnetworking/netinet/ip_var.h b/cpukit/libnetworking/netinet/ip_var.h
index a8ebc6a75f..b5d4a95251 100644
--- a/cpukit/libnetworking/netinet/ip_var.h
+++ b/cpukit/libnetworking/netinet/ip_var.h
@@ -37,10 +37,6 @@
#ifndef _NETINET_IP_VAR_H_
#define _NETINET_IP_VAR_H_
-#ifndef BYTE_PACK
-#define BYTE_PACK __attribute__((packed))
-#endif
-
/*
* Overlay for ip header used by other protocols (tcp, udp).
*/
@@ -90,12 +86,12 @@ struct ipasfrag {
u_char ipf_mff; /* XXX overlays ip_tos: use low bit
* to avoid destroying tos;
* copied from (ip_off&IP_MF) */
- u_short ip_len BYTE_PACK;
- u_short ip_id BYTE_PACK;
- u_short ip_off BYTE_PACK;
+ u_short ip_len;
+ u_short ip_id;
+ u_short ip_off;
u_char ip_ttl;
u_char ip_p;
- u_short ip_sum BYTE_PACK;
+ u_short ip_sum;
struct ipasfrag *ipf_next; /* next fragment */
struct ipasfrag *ipf_prev; /* previous fragment */
};
@@ -162,8 +158,11 @@ struct ipstat {
#define IP_ROUTETOIF SO_DONTROUTE /* bypass routing tables */
#define IP_ALLOWBROADCAST SO_BROADCAST /* can send broadcast packets */
+struct ip;
struct inpcb;
struct route;
+struct sockopt;
+struct mbuf;
extern struct ipstat ipstat;
extern u_short ip_id; /* ip packet ctr, for ids */