mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-27 15:00:16 +00:00
Define BYTE_PACK.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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).
|
||||
*/
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user