M
Mark
Hello,
I have a legacy code using 'struct hack' in many places, and I need to
update one of the structures with 'next' pointer creating linked list:
Was:
struct nhlfe_entry
{
u_int32_t nhlfe_ix;
owner_t owner;
u_char opcode;
u_int32_t refcount;
u_char flags;
enum entry_type type;
u_char nkey [1];
};
Will be:
struct nhlfe_entry
{
u_int32_t nhlfe_ix;
owner_t owner;
u_char opcode;
u_int32_t refcount;
u_char flags;
struct nhlfe_entry *next;
enum entry_type type;
u_char nkey [1];
};
I'm wondering if this might have any impact, such as alignment issues,
except that memory allocation for 'struct nhlfe_entry' may need to be
changed to accomodate 'next' pointer.
Thanks in advnce for any comments.
Mark.
I have a legacy code using 'struct hack' in many places, and I need to
update one of the structures with 'next' pointer creating linked list:
Was:
struct nhlfe_entry
{
u_int32_t nhlfe_ix;
owner_t owner;
u_char opcode;
u_int32_t refcount;
u_char flags;
enum entry_type type;
u_char nkey [1];
};
Will be:
struct nhlfe_entry
{
u_int32_t nhlfe_ix;
owner_t owner;
u_char opcode;
u_int32_t refcount;
u_char flags;
struct nhlfe_entry *next;
enum entry_type type;
u_char nkey [1];
};
I'm wondering if this might have any impact, such as alignment issues,
except that memory allocation for 'struct nhlfe_entry' may need to be
changed to accomodate 'next' pointer.
Thanks in advnce for any comments.
Mark.