[ofa-general] Issues with _osm_lin_fwd_tbl

Sasha Khapyorsky sashak at voltaire.com
Thu Jun 12 03:00:51 PDT 2008


On 16:51 Wed 11 Jun     , Vincent Ficet wrote:
>
> Also, could anyone explain why the osm_lin_fwd_tbl_t is declared as 
> follows:
>
> typedef struct _osm_lin_fwd_tbl {
>    uint16_t size;
>    uint8_t port_tbl[1];
> } osm_lin_fwd_tbl_t;

AFAIR the reason is a poor windows compiler which doesn't support
array[0] like definitions in structures.

Sasha



More information about the general mailing list