Changeset ef0b69d1 in rtems


Ignore:
Timestamp:
Mar 29, 2007, 2:28:49 PM (13 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
491f63a
Parents:
6209041
Message:

2007-03-29 Ralf Corsépius <ralf.corsepius@…>

  • libnetworking/netinet/ip.h: Add FreeBSD's alignement macros.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r6209041 ref0b69d1  
    112007-03-29      Ralf Corsépius <ralf.corsepius@rtems.org>
    22
     3        * libnetworking/netinet/ip.h: Add FreeBSD's alignement macros.
    34        * libnetworking/net/netisr.h: Partial update from FreeBSD.
    45        * libcsupport/src/getpwent.c: Remove bogus cast to long.
  • cpukit/libnetworking/netinet/ip.h

    r6209041 ref0b69d1  
    4949#if defined(__GNUC__)
    5050#define __packed __attribute__((packed))
     51#define __aligned(x) __attribute__((aligned(x)))
    5152#else
    5253#define __packed
     54#define __aligned(x)
    5355#endif
    5456#endif
     
    8284        u_short ip_sum;                 /* checksum */
    8385        struct  in_addr ip_src,ip_dst;  /* source and dest address */
    84 } __packed;
     86} __packed __aligned(4);
    8587
    8688#ifdef _IP_VHL
Note: See TracChangeset for help on using the changeset viewer.