1 /* { dg-do compile } */
13 unsigned HeaderFields
;
14 unsigned short *HeaderFormat
;
16 static struct NetFlow
*netflow
;
17 static struct Time start_time
;
18 static unsigned char emit_packet
[1500];
19 inline long int cmpmtime(struct Time
*t1
, struct Time
*t2
)
21 return (t1
->sec
- t2
->sec
) * 1000 + (t1
->usec
- t2
->usec
) / 1000;
23 static void fill(int fields
, unsigned short *format
,
24 struct Flow
*flow
, void *p
)
27 for (i
= 0; i
< fields
; i
++)
31 __v
= cmpmtime(&flow
->mtime
, &start_time
);
32 *((unsigned int *) p
) = __v
;
37 fill(netflow
->HeaderFields
, netflow
->HeaderFormat
, 0, &emit_packet
);