[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with "struct m_hdr"



Hi all:
  Is anybody found that there maybe problem with "struct m_hdr" in rtems
4.9.

struct m_hdr {
 struct mbuf *mh_next;  /* next buffer in chain */
 struct mbuf *mh_nextpkt; /* next chain in queue/record */
 caddr_t mh_data;  /* location of data */
 int mh_len;   /* amount of data in this mbuf */
 int mh_flags;  /* flags; see below */
 short mh_type;  /* type of data in this mbuf */
};

"int mh_flags" should changed to "short mh_flags". Because sizeof(struct
m_hdr) should be 20Bytes in FreeBSD. however  sizeof(struct m_hdr) are
24Bytes in Rtems. I don't know wheather it is a bug. but this indeed a
question. thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rtems.rtems.org/pipermail/rtems-users/attachments/20090221/f0d457bf/attachment.html