ive been trying to solve this now for at least 2 hours.
gcc tells me that there is a parse error before '.'Code:
struct sizes
{
int e_size;
};
struct sizes headersizes;
headersizes.e_size = sizeof(struct ethhdr);
....
int main...
in this line
why is this happening? cant i declare structure members as globals? or outside of a function?Code:headersizes.e_size = sizeof(struct ethhdr);
thanks