Define BYTE_PACK.

This commit is contained in:
Ralf Corsepius
2005-05-12 03:42:44 +00:00
parent a67e01e325
commit 954e959146
5 changed files with 17 additions and 1 deletions

View File

@@ -33,7 +33,7 @@
#ifndef _NET_IF_ARP_H_
#define _NET_IF_ARP_H_
#ifdef __rtems__
#ifndef BYTE_PACK
#define BYTE_PACK __attribute__((packed))
#endif

View File

@@ -40,6 +40,10 @@
#include <net/ethernet.h>
#include <net/if_arp.h>
#ifndef BYTE_PACK
#define BYTE_PACK __attribute__((packed))
#endif
#ifdef _KERNEL
/*
* Macro to map an IP multicast address to an Ethernet multicast address.

View File

@@ -37,6 +37,10 @@
#ifndef _NETINET_IP_ICMP_H_
#define _NETINET_IP_ICMP_H_
#ifndef BYTE_PACK
#define BYTE_PACK __attribute__((packed))
#endif
/*
* Interface Control Message Protocol Definitions.
* Per RFC 792, September 1981.

View File

@@ -37,6 +37,10 @@
#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).
*/

View File

@@ -37,6 +37,10 @@
#ifndef _NETINET_TCP_H_
#define _NETINET_TCP_H_
#ifndef BYTE_PACK
#define BYTE_PACK __attribute__((packed))
#endif
typedef u_long tcp_seq;
typedef u_long tcp_cc; /* connection count per rfc1644 */