#include <sys/time.h>
#include <sys/types.h>

#define _PACKED_ __attribute__ ((__packed__))
int func(int levels) 
{
	struct foo {
		u_char		a;
		int32_t		b[levels];
		struct timeval _PACKED_ c[levels];
		u_int		d[4];
	}_PACKED_ pkt;

	struct bar {
		u_char		a;
		int32_t		b[levels];
		struct timeval  c[levels];
		u_int		d[4];
	}_PACKED_ pktII;

	printf("pkt %d, foo %d\n", sizeof(pkt), sizeof(struct foo));
	printf("pktII %d, bar %d\n", sizeof(pktII), sizeof(struct bar));
}

int main()
{
	func(4);
}
